Skip to main content
AGO supports OAuth 2.1 with PKCE for MCP clients that can’t send a custom X-API-Key header, such as Claude on the web. API keys keep working for every other integration. To connect Claude, follow Connect Claude Web to AGO.

Endpoints

Every endpoint lives on your workspace’s API host: The MCP resource is https://<your-workspace>.api.useago.com/api/v1/mcp. An access token also works on the Public API v1 endpoints its scopes allow, sent as Authorization: Bearer <token>.

Supported flow

A token is valid only on the workspace that issued it. Sending it to another workspace’s MCP URL returns 401. Only staff users of your workspace can approve a connection, the same rule as for creating an API key. The connection belongs to the staff member who approved it. See OAuth Scopes Reference for the consent screen.

Not supported

  • Dynamic Client Registration (RFC 7591): the metadata has no registration_endpoint. Register your client as described below.
  • Client credentials and device flows: only the authorization code flow is available.
  • Token introspection (RFC 7662).

Register a new MCP client

If you build an MCP client, email support@useago.com with:
  • The product name, shown to users on the consent screen.
  • The redirect URIs (HTTPS only, exact match).
  • The scopes your client requests by default.
  • Whether your client is public (no secret) or confidential (server-side, with a secret).
AGO support replies with your client_id.

Sample authorization code flow

Refresh

Refresh tokens rotate on use. The previous token remains usable for a 30-second grace period, then is rejected. Store the new refresh token returned by each successful refresh. A client that does not refresh within 30 days after its access token expires must authorize again. If refreshing fails, start authorization again.

Revoke

A revoked access token returns 401 on the next MCP call made with that token. Revoking an access token also revokes the refresh token issued with it, so the client must authorize again. An open SSE stream stays open until the client reconnects. Admins can also revoke individual access tokens in Studio > Monitoring > OAuth connections; see OAuth Connections for the limits of this action.