Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.335 ·

MCP sign-in tokens refresh on a flexible schedule and check for newer saved ones

Claude Code now refreshes MCP server sign-in tokens using a variable margin and first checks storage for a newer token saved elsewhere

You'll notice Improvements
JSON All of v2.1.335
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
MCPArea: what it touches
ImprovementsKind: in v2.1.335,
ImprovementsSection of the release
What

Some MCP servers (outside tools Claude Code connects to) ask you to sign in with OAuth, a standard sign-in method that issues an access token that expires and a refresh token used to get a new one. Before, Claude Code tried to refresh the access token whenever it had 300 seconds or less left. It now uses a margin value instead of that fixed five minutes.

The refresh logic also behaves differently in these ways:

  • Tokens that are not yet due for a refresh: Claude Code checks the credential store, where sign-in details are saved, for a newer token before doing anything else.
  • Failed refreshes: Claude Code remembers which access token it could not refresh, so it does not keep retrying the same one.
  • Saved tokens: each one now records when it was received.
  • Debug log: it now separates a proactive refresh, an ordinary refresh, and a check of the credential store.
Why

When several Claude Code sessions or other programs use the same MCP server, they can try to refresh the same token at once and get in each other's way. Picking up a token another session already refreshed reduces those clashes.

See this entry in the whole of v2.1.335 →

Feedback