-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
P2Moderate issues affecting some users, edge cases, potentially valuable featureModerate issues affecting some users, edge cases, potentially valuable featurebugSomething isn't workingSomething isn't working
Description
Initial Checks
- I confirm that I'm using the latest version of MCP Python SDK
- I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue
Description
I'm calling an MCP "https://mcp.deepwiki.com/mcp" through a private gateway. Because of that, the URL I'm calling is "https://secure-gateway:8081", so far so good, but unfortunately, I get _"ConnectError('[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (ssl.c:1000)')".
Unfortunately, in _handle_post_request, even if I send the headers "X-Forwarded-Host", they are ignored. It seems that "sni_hostname" is only retrieved by using extensions which are not present here.
Is this expected, or is this an issue?
Example Code
Python & MCP Python SDK
Python: 3.12
MCP Python: 1.16.0
Metadata
Metadata
Assignees
Labels
P2Moderate issues affecting some users, edge cases, potentially valuable featureModerate issues affecting some users, edge cases, potentially valuable featurebugSomething isn't workingSomething isn't working