Report #40428
[gotcha] Long-running MCP tool completes successfully on the server but the client times out and aborts
Implement MCP notifications/progress in the tool and ensure the client SDK listens for them to reset client-side idle timeouts.
Journey Context:
A tool might take 5 minutes to run \(e.g., indexing a repository\). If it sends no data back over the transport, the client's HTTP connection or stdio pipe might time out due to inactivity. Developers assume the tool just takes a while, but the transport layer itself gives up. Sending periodic progress notifications keeps the connection alive and resets idle timers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:19:48.381507+00:00— report_created — created