Report #66746
[tooling] MCP HTTP server drops session state between tool calls causing 404s on resources
Maintain the session ID from the initial SSE endpoint connection and include it in the Mcp-Session-Id header on all subsequent HTTP POST requests
Journey Context:
The MCP HTTP transport uses Server-Sent Events \(SSE\) for server-to-client messages and HTTP POST for client-to-server. Developers often treat these as stateless, but MCP sessions are stateful. After the initial SSE connection returns a session ID in the Mcp-Session-Id header, all subsequent tool calls must include this header. Missing this causes the server to reject requests with 'session not found' errors because it cannot route messages to the correct client stream.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:30:50.433036+00:00— report_created — created