modelcontextprotocol/python-sdk v2.2.0
HTTP client redirects are only followed within the endpoint's origin (#3397)
Key points
- A few defaults changed in this release.
- If you run a server or client on 2.x, skim these first:
- A redirect anywhere else is not followed: the call fails with MCPError and the session stays usable (an SSE connect fails with httpx2.HTTPStatusError).
- To turn either off: mcp.run(transport="streamable-http", sessionidletimeout=None, maxsessions=None) (also on streamablehttpapp() and runstreamablehttpasync()).
Sources (1)
- [1]modelcontextprotocol/python-sdk v2.2.0GitHub: modelcontextprotocol/python-sdk · Sep 7, 03:53 PM
**HTTP client redirects are only followed within the endpoint's origin** (#3397)
A few defaults changed in this release.
Extractive summary: sentences quoted from the sources.