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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-sharepoint-us
3
- Version: 2.0.15
3
+ Version: 2.0.16
4
4
  Summary: SharePoint MCP Server with Microsoft Graph API
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/mdev26/mcp-sharepoint-us
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "mcp-sharepoint-us"
7
- version = "2.0.15"
7
+ version = "2.0.16"
8
8
  description = "SharePoint MCP Server with Microsoft Graph API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -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("\nPossible causes:")
252
- logger.error("1. Firewall is blocking graph.microsoft.us")
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("3. SSL/TLS version mismatch")
255
- logger.error("4. Network instability")
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-sharepoint-us
3
- Version: 2.0.15
3
+ Version: 2.0.16
4
4
  Summary: SharePoint MCP Server with Microsoft Graph API
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/mdev26/mcp-sharepoint-us