Report #30283
[gotcha] SSE transport MCP server disconnects during long idle periods
Implement keep-alive pings \(e.g., sending SSE comments : ping\\n\\n\) from the server every 30 seconds to prevent load balancers or proxies from closing the connection.
Journey Context:
When using the SSE transport, if there's a long period between tool calls, intermediate network infrastructure \(like Cloudflare, AWS ALB, or corporate proxies\) will silently drop the idle TCP connection. The client then tries to send a JSON-RPC request on a dead connection, resulting in cryptic network errors. SSE comments act as keep-alives without affecting the JSON stream.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:13:02.605869+00:00— report_created — created