You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add protocol_version pin to ClientSession for stateless 2026-07-28 mode
When ClientSession is constructed with protocol_version="2026-07-28",
each outgoing request carries the io.modelcontextprotocol/* envelope
(protocolVersion, clientInfo, clientCapabilities) in params._meta, and
initialize() raises if called. Capabilities derivation is extracted to
_build_capabilities() so both paths share it.
The streamable-HTTP transport derives MCP-Protocol-Version, Mcp-Method
and (for tools/call) Mcp-Name headers per POST from the body's envelope;
non-header-safe values are Base64-sentinel-encoded per the spec.
Envelope-less bodies get no derived headers, so unpinned behaviour is
unchanged. Session-id capture, the standalone GET stream and DELETE on
close are gated on traffic the pinned mode never produces.
Claude-Session: https://claude.ai/code/session_017S3aJaxEHeMvftp6whnHWK
0 commit comments