polar_exchange_authorization_code
Exchange an OAuth authorization code for access tokens to authenticate with the Polar API.
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.
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 |