{"version":"2.1.329","anchor":"mcp-oauth-token-handling-hardened-against-stale-or-cleared-s","canonical_anchor":"mcp-oauth-token-handling-hardened-against-stale-or-cleared-s","heading":"Signing out of MCP servers no longer leaves old tokens in use","tier":"notice","area":"MCP","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/mcp-oauth-token-handling-hardened-against-stale-or-cleared-s","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Signing out of MCP servers no longer leaves old tokens in use\n\nClaude Code now stops using or re-saving an MCP server's sign-in tokens once they are cleared, even if a refresh was in progress\n\n**What**\n\nSome 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:\n\n- Once tokens have been cleared, Claude Code no longer returns them.\n\n- If a sign-in is cleared while a refresh is running, the refresh is skipped or its new tokens are thrown away.\n\n- Claude Code will not save tokens for a sign-in that was cleared.\n\n- Revoking and clearing tokens now happen one at a time, and each server's refresh is protected by a lock.\n\n- If another refresh finishes first, Claude Code reads its tokens before refreshing again.\n\n- Signing out now registers all servers before revoking their tokens.\n\n- Invalidating all credentials now marks them expired.\n\n**Why**\n\nThis should stop MCP servers you signed out of from still using or quietly re-saving old tokens.\n\n- Area: MCP\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}