Report #21434
[gotcha] Agent waiting indefinitely for an MCP tool response after an SSE connection drop
Implement strict client-side timeouts for tool calls and handle SSE reconnection logic. If a timeout occurs, prompt the LLM with a timeout error so it can inform the user or retry, rather than hanging.
Journey Context:
Remote MCP servers use Server-Sent Events \(SSE\). Network interruptions can drop the connection while a tool is executing. If the client doesn't enforce a timeout, the LLM sits waiting for a JSON-RPC response that will never arrive. The user sees the agent as frozen. Client-side timeouts with explicit error injection into the LLM context are mandatory for robust async handling.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:22:51.886602+00:00— report_created — created