Report #67531
[gotcha] Agent crashes or ignores final results when using MCP tools that stream progress notifications
Explicitly handle notifications/tools/call for progress updates and ensure the agent loop distinguishes between intermediate progress notifications and the final JSON-RPC response.
Journey Context:
Developers often treat tool calls as synchronous request-response blocks. However, MCP supports progress notifications. If an agent expects a single final payload but the server sends a stream of progress notifications followed by the final result, a poorly implemented client might try to parse the progress notification as the final result, throwing a JSON parsing error, or ignore the final result waiting for more data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T19:49:55.605208+00:00— report_created — created