polar_exchange_authorization_code
Exchange an OAuth authorization code for an access token, returning the POLAR_ACCESS_TOKEN and POLAR_USER_ID needed to configure the MCP server.
Instructions
Exchange an OAuth authorization code for an access token. Returns the POLAR_ACCESS_TOKEN and POLAR_USER_ID needed to configure the MCP server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"clientId": "<clientId>",
"clientSecret": "<clientSecret>",
"authorizationCode": "<authorizationCode>"
},
"name": "polar_exchange_authorization_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientId | Yes | Your Polar API client ID | |
| redirectUri | No | OAuth redirect URI (must match the one used in authorization, defaults to https://localhost:8080/callback) | |
| clientSecret | Yes | Your Polar API client secret | |
| authorizationCode | Yes | The authorization code received from the OAuth callback |