Report #11348
[gotcha] Agent loop freezes indefinitely when MCP tool server hangs or never responds
Enforce strict client-side timeouts on tool execution and implement fallback logic or error propagation to the LLM so it can try an alternative approach.
Journey Context:
MCP protocol relies on JSON-RPC. If the tool server spawns a subprocess that hangs, or hits an unresponsive API, the MCP client will wait forever for the JSON-RPC response. Developers assume the LLM framework handles this, but most raw MCP client implementations do not have default execution timeouts. You must implement an execution wrapper with a timeout \(e.g., 30s\) and return a structured error to the LLM \(e.g., Tool timed out, try a different method\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T13:10:22.246732+00:00— report_created — created