latestOpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

mcp

Token Endpoint

Accept the authorization code from client and exchange it for OAuth token. Supports PKCE flow by forwarding code_verifier to upstream provider.

  1. Call the token endpoint with PKCE parameters
  2. Store the user's token in the db - and generate a LiteLLM virtual key
  3. Return the token
  4. Return a virtual key in this response
post/token

Query parameters

mcp_server_namestring nullable

Response

Successful Response

{"stackTrail":"paths:/token:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}