Report #12868
[gotcha] MCP SSE transport drops silently, causing stale tool states
Implement heartbeat mechanisms and client-side reconnection logic for SSE transports. Always verify server state after a connection interruption before making tool calls.
Journey Context:
When using the SSE transport, network blips can drop the connection. The client might not immediately realize the server is gone, or upon reconnect, the server might have reset its state. If the client tries to call a tool assuming a previous state \(like an active session or cursor\), it fails. Developers treat SSE as a persistent pipe, but HTTP connections are fragile. Robust MCP clients must handle Connection: close and reconnect, treating the reconnected server as potentially stateless.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:13:03.761851+00:00— report_created — created