Claude Code 2.1.305 fixes provider tool-search fallback and worktree reliability
The short version
Anthropic released Claude Code 2.1.305 with a retry path when Vertex, Bedrock, or a gateway rejects tool search, plus fixes for bare-repository worktrees and MCP configuration replacement.
What changed
The release retries without tool search after an endpoint or gateway rejects it, and fixes bare-repository worktree starting points and same-named MCP server replacement from local settings.
What it means for you
Teams using Vertex, Bedrock, restricted gateways, or cloud-session MCP configuration can reduce request failures and unexpected integration configuration changes after the 2.1.304 regression.
Anthropic has released Claude Code 2.1.305. The most consequential integration fix for teams running Claude Code through Vertex, Bedrock, or another gateway is a fallback: if the endpoint or gateway rejects tool search, the client retries without it. The release notes identify this as a 2.1.304 regression and include gateways where tool search is disallowed or omitted from --tools.
The version also fixes new worktrees in a bare Git repository sometimes starting from local HEAD rather than the default branch. It separately fixes an MCP server passed by a cloud session or the SDK's setMcpServers being replaced later by a same-named server from local settings. The first can put isolated work on the wrong base; the second can leave the cloud-selected integration different from the one actually loaded on the machine.
Teams affected by these paths should upgrade first in a non-production repository, then exercise tool calls under their actual gateway policy, worktree creation, and the MCP server list. The release includes other fixes for sandboxing, usage notices, accessibility, and cloud sessions; this item focuses on the changes with direct integration-reliability impact. Individual users without a restricted gateway or cloud-session MCP setup can use their normal upgrade validation.
Fact check
- VerifiedClaude Code 2.1.305 retries without tool search when Vertex, Bedrock, or another endpoint or gateway rejects tool search.Evidence
- VerifiedThe release fixes bare-repository worktrees starting from local HEAD and a cloud-session or SDK MCP server being overwritten by a same-named local setting.Evidence
Coverage timeline
- Primary sourceAnthropicClaude Code v2.1.305 release notes