latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

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/{mcp_server_name}/token

Path parameters

mcp_server_namestring nullable required

Response

Successful Response

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