Clients cannot find how to sign in
MCPS-AUTH-003Why it mattersThe server wants a sign-in but says neither in its 401 nor at the well-known address where to get a token. Claude, ChatGPT and other clients cannot connect without setup by hand.
How to fixPublish OAuth protected resource metadata (RFC 9728) and name it in the 401's WWW-Authenticate header.
res.status(401).set('WWW-Authenticate', 'Bearer resource_metadata="https://mcp.example.com/.well-known/oauth-protected-resource/mcp"').end()mcp = FastMCP('example', auth=AuthSettings(issuer_url='https://auth.example.com', resource_server_url='https://mcp.example.com/mcp'), token_verifier=verifier)- Request
POST https://app.foliosio.com/api/v1/mcp (initialize); GET /.well-known/oauth-protected-resource- Answer
401- What we saw
no WWW-Authenticate resource_metadata, no metadata at the well-known addresses
Seen in the server's answer
SpecMCP 2026-07-28, Authorization Server Discovery: Protected Resource Metadata Discovery RequirementsRFC 9728, Section 5.1