Report #12011
[tooling] MCP HTTP\+SSE client failing to reconnect or missing session ID on POST requests
Extract the 'endpoint' URI from the SSE 'endpoint' event before sending any tool calls, and persist the session ID \(if provided\) for subsequent POST requests to the returned endpoint
Journey Context:
Unlike stdio, HTTP transport uses SSE for server-to-client messages and separate HTTP POST requests for client-to-server messages. Many client implementations naively POST to the base URL used to establish the SSE connection. However, the MCP HTTP transport spec requires the server to send an 'endpoint' event on the SSE stream containing the session-bound URI for subsequent POSTs. Missing this step results in 404s or session state loss on reconnection. The endpoint event is the canonical mechanism for session affinity in the stateless HTTP transport.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:51:17.281744+00:00— report_created — created