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
Embedded auth server: PRM and AS metadata advertise inconsistent scopes #3776
When using the embedded auth server, the Protected Resource Metadata (PRM) endpoint and the Authorization Server (AS) metadata endpoint advertise different default scopes:
AS metadata (/.well-known/oauth-authorization-server): ["openid", "profile", "email", "offline_access"]
MCP clients use PRM scopes_supported (per MCP 2025-11-25 Scope Selection Strategy) to determine what scopes to request. With only openid in PRM, clients never request offline_access, so no refresh token is issued.
Expected behavior
PRM and AS metadata should advertise consistent scopes when using the embedded auth server. The PRM default should include offline_access so clients can obtain refresh tokens out of the box.
Impact
Clients must re-authenticate (full OAuth flow with consent screen) every time the access token expires.
Activity
Add offline_access to default scopes and fix PRM scope discovery
Add offline_access to default scopes and fix PRM scope discovery
Add offline_access to default scopes and fix PRM scope discovery