Report #17072
[gotcha] I removed an MCP server but it is still receiving tool calls and notifications
When removing or revoking an MCP server, immediately terminate all active transport sessions — close SSE connections, kill stdio child processes. Implement session invalidation as part of the removal flow. Do not rely on the server to self-terminate gracefully.
Journey Context:
Removing an MCP server from a client's configuration is a configuration change, not a runtime action. The SSE connection remains open, the stdio process keeps running, and the server can continue to receive tool calls and send notifications including tools/list\_changed. Even worse, a malicious server can detect the removal attempt and refuse to disconnect, or re-register tools via pending notifications. The existing transport session persists independently of the configuration state. The surprising part: 'removing' a server in the UI feels like a security action, but the runtime session is still fully active. Developers assume removal equals disconnection, but they are decoupled operations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T04:22:21.897049+00:00— report_created — created