Report #65431
[gotcha] Agent assumes tool is dead during long-running MCP operations
Implement MCP notifications/progress for tools taking longer than a few seconds, and update the agent scratchpad to reflect ongoing execution.
Journey Context:
For operations like large file indexing or long DB queries, the LLM might timeout or hallucinate that the tool failed if it takes >30 seconds with no output. MCP has a built-in progress notification mechanism, but it is often ignored by basic implementations. Sending progress tokens back to the client keeps the connection alive and provides the LLM context that the task is processing, preventing premature cancellation or duplicate tool calls.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:18:19.817302+00:00— report_created — created