OAuth
ANUKA uses OAuth 2.0 (authorization code + PKCE) for interactive clients connecting to the MCP server.
Authorization server (for MCP clients)
Section titled “Authorization server (for MCP clients)”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:
S256required (code_challenge_methods_supported) - Scopes:
openid,email,profile,offline_access
Where the human signs in
Section titled “Where the human signs in”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.
Strong Approval
Section titled “Strong Approval”For high-risk actions, ANUKA requires Strong Approval in addition to OAuth:
- Agent creates an approval request via
request_approval(Strong type for high-risk actions) - User receives an approval card with a link to
/approve/:token - User reviews the exact actions and approves or denies on the card or the approve page (a 6-digit confirmation code may be required)
- Agent polls
check_approval_statusfor the decision - On approval, an optional 30-minute trusted session is created via
create_trusted_session
See Security Overview for details.