Ignore pre-2026 protocol_version pins at the StreamableHTTP transport (#2923)

This commit is contained in:
Max 2026-06-20 16:29:57 +01:00 • committed by GitHub
commit 5a3412ddc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,9 @@ class Client:
Pinning to ``2026-07-28`` or later selects the stateless transport era: no initialize
handshake is sent on the wire (the session synthesizes its `InitializeResult` locally),
and for HTTP the ``MCP-Protocol-Version`` header is set from the first request.
and for HTTP the ``MCP-Protocol-Version`` header is set from the first request. A modern
pin currently requires a URL or `Transport`; the in-memory `Server`/`MCPServer` path
does not yet have a modern entry point.
Leave as ``None`` to negotiate the version via the initialize handshake.
"""