Claude Code v2.1.221 ·
Disabling an MCP server mid-session unloads its tools, commands and resources
Disabling an MCP server mid-session now actually removes its tools, commands and resources.
You'll noticeTier: how much it should matter to you
4Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
MCPArea: what it touches
Bug FixesKind: in v2.1.221,
What probably matters to youSection of the release
What
A server that becomes disabled while Claude Code is running is now fully torn down instead of leaving its capabilities loaded.
Details
- New branch in the MCP state reducer for servers that have become disabled.
- It tears down the connection, drops the per-server refresh subscriptions, and rewrites the client entry to
type: "disabled". - That server's tools, commands, resources and resource templates are filtered out of app state.
- Policy-blocked servers are handled on a separate path, which now also covers cache-backed clients.
Evidence
{ name: z.name, type: "disabled", config: z.config }
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.221 →