MCP OAuth

OAuth Token Endpoint

Changed on

OAuth 2.1 token endpoint (RFC 6749 §4.1.3, §6). Exchanges an authorization code with PKCE or a refresh token for an access/refresh token pair

post/oauth/token

Request

  • Base URL
    http://localhost:5173/api
  • URL
    http://localhost:5173/api/oauth/token
  • Auth
    none declared

Request body application/x-www-form-urlencoded

grant_typestring
codestring
redirect_uristring
client_idstring
code_verifierstring
refresh_tokenstring

Response

Token response

access_tokenstring
refresh_tokenstring
token_typestring
expires_ininteger
workspace_idstring
workspace_namestring

Changes