Home / Servers / Supabase Management API / v1_exchange_oauth_token
Exchange auth code for user's access and refresh token
An MCP tool from the Supabase Management API server, hosted on mcp.hjlabs.in.
Exchange auth code for user's access and refresh token Supports authorization_code, refresh_token, and urn:ietf:params:oauth:grant-type:jwt-bearer grant types. The jwt-bearer grant type (IDJAG — identity-directed JWT assertion) is in beta and available… [POST /v1/oauth/token]
Name on the gateway: supabase_api__v1_exchange_oauth_token · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
grant_type | authorization_code | refresh_token | urn:ietf:params:oauth:grant-type:jwt-bearer | |
client_id | string | |
client_secret | string | |
code | string | |
code_verifier | string | |
redirect_uri | string | |
refresh_token | string | |
assertion | string | IDJAG assertion JWT for grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer.… |
resource | string | Resource indicator for MCP (Model Context Protocol) clients |
scope | string |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "supabase_api__v1_exchange_oauth_token",
"arguments": {}
}Or connect the Supabase Management API server directly, which lists 167 tools including this one:
claude mcp add --transport http hj-supabase-api https://mcp.hjlabs.in/mcp/supabase-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the exchange auth code for user's access and refresh token tool with grant_type set to ….