A late MCP reconnect can no longer clobber the tools and prompts of the connection you're using.
What's wrong with this entry?
When an MCP server connection is re-established, Claude Code now checks whether a newer connection attempt has started since. If so it closes the connection it just made and publishes nothing, so a late-arriving reconnect cannot replace the tools, prompts and resources of the connection you are actually using.
- The check runs after connecting and again after each
list_changedrefresh. - Stale connections are torn down through
detachAndCloseConnection.
detachAndCloseConnection
Strings lifted out of the shipped bundle, so the claim above can be checked against them.