{"version":"2.1.122","anchor":"improved-mcp-oauth-error-recovery","canonical_anchor":"improved-mcp-oauth-error-recovery","heading":"Improved MCP OAuth Error Recovery","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.122\/e\/improved-mcp-oauth-error-recovery","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.122","markdown":"### Improved MCP OAuth Error Recovery\n\nWhen an OAuth `invalid_grant` error is encountered, Claude Code now proactively clears the stale refresh token from both the file-based and config-based credential stores, rather than leaving it to fail on every subsequent request. This should reduce repeated auth failures after token expiration.\n\n**Evidence**\n\nNew `invalid_grant` detection and token clearing (search for `\"invalid_grant\"`, `\"tengu_oauth_refresh_token_cleared_invalid_grant\"`, `\"tengu_wif_user_oauth_refresh_token_cleared\"`)"}