{"version":"2.1.172","anchor":"mcp-oauth-token-clearing-preserve-client-registration","canonical_anchor":"mcp-oauth-token-clearing-preserve-client-registration","heading":"MCP OAuth Token Clearing: Preserve Client Registration","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.172\/e\/mcp-oauth-token-clearing-preserve-client-registration","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.172","markdown":"### MCP OAuth Token Clearing: Preserve Client Registration\n\n**What**\n\nWhen clearing MCP OAuth tokens, Claude Code can now optionally preserve the client registration (client ID) while discarding only the access\/refresh tokens. This avoids a full re-registration flow when tokens simply need refreshing.\n\n**Details**\n\n- When `preserveClientRegistration: true` is passed, only `accessToken`, `refreshToken`, `expiresAt`, and `scope` are cleared\n- Log message: \"Cleared stored tokens (preserved client registration)\"\n\n**Evidence**\n\nUpdated token-clear function (search for `\"Cleared stored tokens (preserved client registration)\"`)"}