Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.41 Home All releases olderv2.1.40 v2.1.42newer
Claude Code v2.1.41

MCP Session Recovery with Automatic Retry

What

When an MCP server session expires, Claude Code now automatically reconnects and retries the failed tool call.

Details
  • Detects session expiration via 404 status with error code -32001 or connection close
  • Clears connection cache and triggers re-initialization
  • Automatically retries the tool call that failed due to session expiration
  • New McpSessionExpiredError error type for proper error handling
Evidence

MCP session recovery (search for "MCP session expired during tool call" and "Retrying tool")

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.41 →