mcp

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

Request

  • Base URL
    https://api.flock.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.flock.io/{mcp_server_name}/token
  • Auth
    none declared

Path parameters

mcp_server_namestring nullable required

Request body application/x-www-form-urlencoded

grant_typestring required
codestring
redirect_uristring
client_idstring required
client_secretstring nullable
code_verifierstring
refresh_tokenstring nullable
scopestring nullable
resourcestring nullable
subject_tokenstring nullable
subject_token_typestring nullable
requested_token_typestring nullable

Response

Successful Response

unknown required

Changes