Tool calls to a remembered MCP server could dial it on demand, but the cache behind it is off.
Lazy connect and re-auth cache clearing both require the MCP discovery cache, enabled only by setting MCP_DISCOVERY_CACHE to true.
What's wrong with this entry?
A tool call to a server that exists only as a cached discovery entry can now dial it on demand rather than failing, and /mcp re-authentication clears the cached entry before reconnecting. Both depend on the MCP discovery cache, enabled only by setting MCP_DISCOVERY_CACHE to true or by a server value, and off otherwise.
- Client-state updates carry an attempt counter and are discarded, with remote connections detached and closed, when the signed-in account moved underneath them.
- Reconnect callbacks, tool-list-changed handlers and initial-connect retries all re-check that counter before applying anything.
- The
cachedclient type itself only exists when the cache is on.
mcp_call lazy connect
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.221
MCP servers can start from a discovery cache and connect lazily
Both mention discovery cache
-
v2.1.221
MCP servers can start in a new "cached" state instead of blocking on connect
Both mention discovery cache