What
Some MCP servers, add-ons that give Claude extra tools, need you to sign in. Claude Code keeps the resulting tokens, the saved proof of your sign-in, and refreshes them when they expire. Several things changed in how it handles them:
- Once tokens have been cleared, Claude Code no longer returns them.
- If a sign-in is cleared while a refresh is running, the refresh is skipped or its new tokens are thrown away.
- Claude Code will not save tokens for a sign-in that was cleared.
- Revoking and clearing tokens now happen one at a time, and each server's refresh is protected by a lock.
- If another refresh finishes first, Claude Code reads its tokens before refreshing again.
- Signing out now registers all servers before revoking their tokens.
- Invalidating all credentials now marks them expired.
Why
This should stop MCP servers you signed out of from still using or quietly re-saving old tokens.