You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP OAuth refresh fails for discovered endpoints and dynamically registered clients #1101
Problem:Login discovers TokenEndpoint (RFC 9728 / 8414) and obtains ClientID/ClientSecret through dynamic registration, but none of it is persisted. On a 401, Refresh reads only the config-file OAuthConfig, whose TokenEndpoint is empty for the standard auth: oauth setup, giving "no token endpoint configured for refresh". Users must re-run zero mcp oauth login each time the access token expires. No test covers refresh after a discovery-based login.
Suggested fix: add TokenEndpoint, ClientID, ClientSecret to StoredToken, fall back to them in Refresh, and re-validate the stored endpoint with ValidateEndpointURL / validateProtectedDiscoveredEndpoints before use.
Activity
fix(mcp): refresh OAuth tokens for discovered endpoints and registere…