MCP reference
OAuth discovery, granted scopes, and the tool families available to a remote client. For configuration snippets, use Connect an MCP client.
OAuth and discovery
401 with a resource_metadata discovery pointer. The client discovers OAuth endpoints and dynamically registers./mcp. Stay connected adds a refresh token.Tool permissions use the agent scope names. offline_access enables Stay connected. A client omitting scopes requests all scopes except tokens:manage. The authorization flow requires S256 PKCE and MCP-specific resource binding.
Disconnect a client in the dashboard to revoke its access and refresh tokens. A connection with tokens:manage can also list OAuth connections as kind: "oauth" through /api/agent/tokens and revoke them.
| Route | Purpose |
|---|---|
| GET /.well-known/oauth-protected-resource/mcp | Protected resource metadata (RFC 9728) for the MCP server. |
| GET /.well-known/oauth-authorization-server | Authorization server metadata (RFC 8414): authorize, token, and registration endpoints. |
Tool inventory
MCP exposes the supported agent operations through the same handlers, validation, scopes, and limits, plus helpers such as ask. A missing permission becomes a tool error identifying the required scope.
notifycreates an update;notification_withdrawrequests its removal.askcreates a choice/reply question. Notification presentations wait for at most 25 seconds per MCP call, then return the existing interaction withtimedOut: trueif it is still pending. Continue withinteractions_waitand that sameinteraction.id; each wait call also waits at most 25 seconds. Older requestedtimeoutSecondsvalues up to 600 remain accepted but are capped to this waiting budget. Creation and progress reporting consume the ask budget; stalled creation or network transport can still exceed 25 seconds of wall-clock time. The prompt expiry is separate and a wait timeout never cancels it. Withpresentation: live_activity, it returns the pending interaction immediately withaccepted: 0andqueued: N; useinteractions_waitorinteractions_getwith the same creating token to observe a server-confirmed answer. Queued delivery is not provider acceptance or approval. For separate steps, useinteractions_create,interactions_wait,interactions_get,interactions_list, andinteractions_cancel.activities_start,activities_update,activities_end,activities_get, andactivities_listmanage ongoing work.services_*,devices_*,events_list,activity_feed,inbox_*,apps_*,billing_get, andtokens_*cover account resources.teams_*,groups_*,oncall_*,pages_*, andconnectors_*cover shared workplace resources and internal-service connections.webhooks_*manages account reply endpoints.auth_statusinspects the current grant;auth_revokedisconnects it.
CLI reference
Create persistent service endpoints and integrate the terminal client into scripts. Connection setup lives in [Get connected](#cli-install); send, ask, and activity examples live with their task guides.
Agent API reference
Route inventory for scoped HTTP clients, with the canonical generated schemas. The CLI and MCP tools use this API; human consent is described in [Access and consent](#access).