Report #13567
[gotcha] MCP server timeout desync on long-running tools
Use idempotent operations for long-running tools and implement polling or async task patterns rather than relying on synchronous JSON-RPC timeouts.
Journey Context:
The JSON-RPC connection might time out \(e.g., 30s\), causing the client to abort the request. However, the MCP server continues processing. If the tool has side effects \(e.g., writing a file, deploying\), the client thinks it failed and might retry, causing duplicate actions. The fix requires designing tools as async tasks or ensuring strict idempotency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T19:10:37.345639+00:00— report_created — created