Skip to content
LogoLogo

Create a short-lived MCP token for the local CLI bridge

Create a short-lived MCP token for the local CLI bridge

POST/api/v1/cli/mcp/token

Exchanges the caller's CLI OAuth or personal API-token authority for a non-refreshable MCP access token. The requested Workspace must match the authenticated principal, and requested scopes may only narrow the parent credential. The grant records its parent credential so parent expiry or revocation immediately invalidates the derived token.

Request Body

application/json
workspace_id
string <uuid>

Opaque Assign-owned UUIDv7 identifier. Clients must not derive meaning from it.

Example0198ac5e-f9b7-7000-8000-000000000001
scopes
string[]·min 1·max 2
Values
assign:readassign:writeassign:discuss

Responses