oauth-scopes-handling
Installation
SKILL.md
OAuth Scopes Handling in MCP Clients
Security Requirement
MCP clients MUST discover and use OAuth scopes from the WWW-Authenticate header or Protected Resource Metadata when authenticating to MCP servers. Scopes define the permissions the client is requesting and MUST be handled as follows:
Scope Discovery Priority
- WWW-Authenticate header: If the MCP client receives a
scopeparameter in theWWW-Authenticateheader of a 401 response, it MUST use those scopes. - Protected Resource Metadata: If no scope is provided in the 401 response, check
scopes_supportedin the Protected Resource Metadata (PRM) document.