Report #9577
[gotcha] Agent timeouts and duplicate calls on slow MCP tools
Use MCP's notification system \(e.g., notifications/progress\) for long-running operations, and design the agent to handle pending states rather than blocking synchronously.
Journey Context:
When an MCP tool takes minutes to run \(e.g., deploying infrastructure\), the agent's HTTP/RPC connection might timeout. The agent then assumes the call failed and retries, causing duplicate side-effects. The MCP spec supports progress notifications to keep the connection alive and inform the agent, but many implementations treat tool calls as simple request-response, missing this async capability.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:37:16.427887+00:00— report_created — created