MCP OAuth token refresh retries smarter and keeps your saved redirect URI across reconnects.
What's wrong with this entry?
Token-refresh retry decisions are made from OAuth error codes rather than exception classes, and stored client registrations keep more of the discovered configuration.
- Retries on server_error, temporarily_unavailable, too_many_requests, or any code not in the known non-retryable set.
- The analytics branch reads
codeinstead oferrorCode. - Registrations keep the discovered
issuerand reuse the previously stored redirectUri when the client_id matches what is on disk. - Discovery state is cached on the flow object.
mcp_oauth_refresh_unauthorized_client
Strings lifted out of the shipped bundle, so the claim above can be checked against them.