Reconnecting an MCP server can now throw away its cached tool list and rediscover everything.
What's wrong with this entry?
Claude Code caches the tool and prompt list an MCP server reports so it does not have to ask again. Reconnecting a server can now throw that cache away and rediscover from scratch, which the MCP management screen asks for when the server was not seen fresh. The cache itself is on by default and only turns off if a server-side kill switch value is set.
- A second reconnect path sits next to the normal one and is chosen when the caller asks to discard discovery and the existing connection was not itself a cached or still-pending entry.
- That path also removes the stale cached entry, so the next connection repopulates it.
- No local setting exposes the kill switch; the check reports the cache as live unless a value has been pushed.
reconnectMcpServerDistrusted
Strings lifted out of the shipped bundle, so the claim above can be checked against them.