Skip to main content

MCP authentication

  1. The client calls https://meetcoffee.ai/api/mcp without a token and gets a 401 with a WWW-Authenticate: Bearer challenge.
  2. It reads the protected resource metadata at https://meetcoffee.ai/.well-known/oauth-protected-resource/api/mcp, which names https://meetcoffee.ai as the authorization server.
  3. It registers through dynamic client registration if needed, then runs the authorization code flow with PKCE.
  4. 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.