MCP authentication
- The client calls
https://meetcoffee.ai/api/mcpwithout a token and gets a401with aWWW-Authenticate: Bearerchallenge. - It reads the protected resource metadata at
https://meetcoffee.ai/.well-known/oauth-protected-resource/api/mcp, which nameshttps://meetcoffee.aias the authorization server. - It registers through dynamic client registration if needed, then runs the authorization code flow with PKCE.
- The user signs in and approves the scopes.
The token acts as that user, limited to the scopes they approved, in every workspace they belong to. There is no workspace picker at consent: call ListMyWorkspaces and pass its subdomain as workspace on each tool call.