Skip to content

OAuth

ANUKA uses OAuth 2.0 (authorization code + PKCE) for interactive clients connecting to the MCP server.

The MCP server’s protected-resource metadata (https://mcp.anuka.pro/.well-known/oauth-protected-resource) names a single authorization server. Use these endpoints exactly as published in its metadata (https://api.anuka.pro/.well-known/oauth-authorization-server):

  • Issuer: https://api.anuka.pro
  • Authorization: https://api.anuka.pro/auth/v1/oauth/authorize
  • Token: https://api.anuka.pro/auth/v1/oauth/token
  • Userinfo: https://api.anuka.pro/auth/v1/oauth/userinfo
  • JWKS: https://api.anuka.pro/auth/v1/.well-known/jwks.json
  • Dynamic client registration: https://api.anuka.pro/oauth/register
  • Grant types: authorization_code, refresh_token
  • PKCE: S256 required (code_challenge_methods_supported)
  • Scopes: openid, email, profile, offline_access

The authorize step is a human step: the person approves the connection in their own browser and signs in on the ANUKA Auth surface (auth.anuka.pro) — one ANUKA identity for the whole ecosystem. auth.anuka.pro is the sign-in host for ANUKA apps (see Authentication and the Login Popup); it is not the issuer MCP clients should hardcode — clients must follow the api.anuka.pro metadata above so endpoint changes do not break them.

For a guided human setup, link people to start.anuka.pro, never to a raw authorize URL.

For high-risk actions, ANUKA requires Strong Approval in addition to OAuth:

  1. Agent creates an approval request via request_approval (Strong type for high-risk actions)
  2. User receives an approval card with a link to /approve/:token
  3. User reviews the exact actions and approves or denies on the card or the approve page (a 6-digit confirmation code may be required)
  4. Agent polls check_approval_status for the decision
  5. On approval, an optional 30-minute trusted session is created via create_trusted_session

See Security Overview for details.