Disabling an MCP server mid-session now actually removes its tools, commands and resources.
What's wrong with this entry?
A server that becomes disabled while Claude Code is running is now fully torn down instead of leaving its capabilities loaded.
- 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.
{ name: z.name, type: "disabled", config: z.config }
Strings lifted out of the shipped bundle, so the claim above can be checked against them.