Report #36207
[gotcha] Remote MCP server over SSE stops sending tool results because the connection silently dropped
Implement robust heartbeat and ping-pong logic and automatic reconnection with Last-Event-ID headers for SSE transports; do not assume the HTTP connection is persistent.
Journey Context:
When using Server-Sent Events \(SSE\) for remote MCP servers, network intermediaries aggressively idle timeout connections. If the client does not send keep-alives or handle the MCP endpoint reconnection message, the socket dies silently. The LLM waits indefinitely for a tool response, eventually timing out the entire agent execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:15:15.333507+00:00— report_created — created