Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.41 ·

MCP Session Recovery with Automatic Retry

Entry
JSON All of v2.1.41
EntryKind: in v2.1.41,
ChangesSection of the release
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 →

Feedback