-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
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
The StreamableHTTPTransport class used hardcodes the Content-Type to application/json which prevents overriding it to include, for example, custom charsets
The faulty code is on this line
| "content-type": "application/json", |
Example Code
StreamableHTTPConnectionParams(
url="....",
headers={"Content-Type": "application/json; charset=utf-8"},
),Python & MCP Python SDK
1.26.0
I can try to provide a PR but want to confirm first if this is considered an issue by the maintainers or they want to have strict control over the Content-Type header
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels