mcp-sharepoint-us 2.0.15__tar.gz → 2.0.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mcp-sharepoint-us might be problematic. Click here for more details.
- {mcp_sharepoint_us-2.0.15/src/mcp_sharepoint_us.egg-info → mcp_sharepoint_us-2.0.16}/PKG-INFO +1 -1
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/pyproject.toml +1 -1
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint/graph_api.py +39 -7
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16/src/mcp_sharepoint_us.egg-info}/PKG-INFO +1 -1
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/LICENSE +0 -0
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/README.md +0 -0
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/setup.cfg +0 -0
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint/__init__.py +0 -0
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint/__main__.py +0 -0
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint/auth.py +0 -0
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint_us.egg-info/SOURCES.txt +0 -0
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint_us.egg-info/dependency_links.txt +0 -0
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint_us.egg-info/entry_points.txt +0 -0
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint_us.egg-info/requires.txt +0 -0
- {mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint_us.egg-info/top_level.txt +0 -0
|
@@ -105,7 +105,8 @@ class GraphAPIClient:
|
|
|
105
105
|
|
|
106
106
|
# 3. SSL/TLS Test (if HTTPS)
|
|
107
107
|
if parsed.scheme == "https":
|
|
108
|
-
logger.info(f"[TLS] Testing TLS handshake...")
|
|
108
|
+
logger.info(f"[TLS] Testing TLS handshake to {hostname}...")
|
|
109
|
+
logger.info(f"[TLS] This will attempt to establish encrypted HTTPS connection")
|
|
109
110
|
context = ssl.create_default_context()
|
|
110
111
|
try:
|
|
111
112
|
with context.wrap_socket(sock, server_hostname=hostname) as ssock:
|
|
@@ -122,7 +123,22 @@ class GraphAPIClient:
|
|
|
122
123
|
logger.info(f"[TLS] Certificate subject: {subject.get('commonName', 'N/A')}")
|
|
123
124
|
logger.info(f"[TLS] Certificate issuer: {dict(x[0] for x in cert['issuer']).get('organizationName', 'N/A')}")
|
|
124
125
|
except ssl.SSLError as e:
|
|
125
|
-
logger.error(f"[TLS] ✗ TLS handshake failed: {e}")
|
|
126
|
+
logger.error(f"[TLS] ✗ TLS/SSL handshake failed: {e}")
|
|
127
|
+
logger.error(f"[TLS] This could indicate:")
|
|
128
|
+
logger.error(f"[TLS] - Certificate validation failure")
|
|
129
|
+
logger.error(f"[TLS] - TLS version mismatch")
|
|
130
|
+
logger.error(f"[TLS] - Cipher suite incompatibility")
|
|
131
|
+
return
|
|
132
|
+
except ConnectionResetError as e:
|
|
133
|
+
logger.error(f"[TLS] ✗ Connection reset during TLS handshake")
|
|
134
|
+
logger.error(f"[TLS] TCP connection was established BUT connection dropped during TLS negotiation")
|
|
135
|
+
logger.error(f"[TLS] This indicates:")
|
|
136
|
+
logger.error(f"[TLS] - Firewall is doing deep packet inspection (DPI)")
|
|
137
|
+
logger.error(f"[TLS] - Firewall is blocking TLS connections to {hostname}")
|
|
138
|
+
logger.error(f"[TLS] - SNI (Server Name Indication) filtering is active")
|
|
139
|
+
logger.error(f"[TLS]")
|
|
140
|
+
logger.error(f"[TLS] SOLUTION: Ask network team to whitelist {hostname} in firewall")
|
|
141
|
+
logger.error(f"[TLS] The firewall needs to allow TLS/HTTPS traffic to this endpoint")
|
|
126
142
|
return
|
|
127
143
|
except socket.timeout:
|
|
128
144
|
logger.error(f"[TCP] ✗ Connection timeout after 10 seconds")
|
|
@@ -243,16 +259,32 @@ class GraphAPIClient:
|
|
|
243
259
|
except requests.exceptions.ConnectionError as e:
|
|
244
260
|
logger.error(f"✗ ConnectionError getting site ID: {e}", exc_info=True)
|
|
245
261
|
logger.error("This indicates the connection was established but then dropped.")
|
|
246
|
-
logger.error("Running comprehensive diagnostics...")
|
|
262
|
+
logger.error("Running comprehensive diagnostics to identify the exact failure point...")
|
|
263
|
+
logger.error("")
|
|
247
264
|
|
|
248
265
|
# Run diagnostics to help identify the issue
|
|
249
266
|
self._diagnose_connectivity(url)
|
|
250
267
|
|
|
251
|
-
logger.error("
|
|
252
|
-
logger.error("
|
|
268
|
+
logger.error("")
|
|
269
|
+
logger.error("=" * 70)
|
|
270
|
+
logger.error("DIAGNOSIS COMPLETE")
|
|
271
|
+
logger.error("=" * 70)
|
|
272
|
+
logger.error("")
|
|
273
|
+
logger.error("Most common causes of 'Connection reset by peer':")
|
|
274
|
+
logger.error("")
|
|
275
|
+
logger.error("1. ⚠️ FIREWALL BLOCKING HTTPS/TLS (Most likely based on symptoms)")
|
|
276
|
+
logger.error(" - TCP connection succeeds")
|
|
277
|
+
logger.error(" - Connection drops during TLS handshake")
|
|
278
|
+
logger.error(" - Indicates deep packet inspection (DPI) is active")
|
|
279
|
+
logger.error(" - Solution: Ask network team to whitelist graph.microsoft.us")
|
|
280
|
+
logger.error("")
|
|
253
281
|
logger.error("2. Proxy configuration needed")
|
|
254
|
-
logger.error("
|
|
255
|
-
logger.error("
|
|
282
|
+
logger.error(" - Set HTTP_PROXY and HTTPS_PROXY environment variables")
|
|
283
|
+
logger.error("")
|
|
284
|
+
logger.error("3. SSL/TLS version or certificate issue")
|
|
285
|
+
logger.error(" - Less likely if TCP connects successfully")
|
|
286
|
+
logger.error("")
|
|
287
|
+
logger.error("=" * 70)
|
|
256
288
|
raise
|
|
257
289
|
|
|
258
290
|
except requests.exceptions.Timeout:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint_us.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint_us.egg-info/requires.txt
RENAMED
|
File without changes
|
{mcp_sharepoint_us-2.0.15 → mcp_sharepoint_us-2.0.16}/src/mcp_sharepoint_us.egg-info/top_level.txt
RENAMED
|
File without changes
|