Gemini CLI PR fixes MCP-Protocol-Version header not reaching HTTP transport

ayam04 · ghdev · 2026-11-28

A PR (gemini-cli #30504) fixes a bug in McpComplianceTransport: it only forwarded start, send, close and callbacks, so the SDK's setProtocolVersion call after initialize never reached the wrapped StreamableHTTPClientTransport, leaving later requests without the MCP-Protocol-Version header — meaning stateless servers couldn't tell which protocol version was negotiated. The fix additively delegates setProtocolVersion (and sessionId) to the wrapped transport.

Original post →

More from coding & agent

coding & agent channel →