Report #27639
[gotcha] User cancels a request, but the MCP server continues processing the expensive tool call in the background, consuming resources until completion
Implement MCP request cancellation by listening for CancelledNotification from the client, aborting the ongoing operation, and releasing resources immediately.
Journey Context:
The MCP protocol supports cancellation via notifications, but many server implementations ignore this. When a user cancels a request in the client, the client sends a cancellation notification. If the server does not listen for it, it continues the expensive API call or database query. Under high load or with long-running tools, this leads to resource exhaustion and zombie processes, as the server processes requests whose results will never be consumed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:47:23.189272+00:00— report_created — created