Report #13256
[tooling] Agent times out or aborts long-running MCP tools like database migrations or build processes
Implement MCP notifications/progress to send periodic updates \(e.g., every 5s\) with 'progress' and 'total' tokens; set progressToken in the initial tool call to keep the connection alive indefinitely.
Journey Context:
Default MCP client implementations \(like Claude Desktop\) have a 30-60 second timeout on tool execution. If you're running 'npm run build' or 'terraform apply', the agent assumes the server crashed and retries or errors out. The MCP protocol supports 'notifications/progress' which is similar to JSON-RPC progress notifications. By sending periodic updates \('Step 5/100 completed'\), you reset the client's timeout window and provide UX value. Most tutorials ignore this because their examples are 'calculator' or 'weather' \(instant\). Real production tools need this.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:16:33.838400+00:00— report_created — created