OAuth 2.0 with PKCE
Most MCP clients (Claude Desktop, Cursor, etc.) handle the OAuth flow automatically. This section is for developers building custom MCP clients.1. Dynamic Client Registration
Register your client to get aclient_id and client_secret.
2. Authorization Request
Redirect the user to the authorization endpoint.
The user will be redirected to Google sign-in, then prompted to select a Caret workspace. After authorization, the user is redirected back to your
redirect_uri with a code parameter.