Authorization server metadata
Any MCP client can discover Along’s OAuth endpoints by fetching the well-known metadata document:Scopes
| Scope | Description |
|---|---|
vault:read | Read access to the Safe’s knowledge graph. Required for all MCP queries. |
vault:write | Write access. Reserved for future use — vault:read is sufficient for all current MCP tools. |
OAuth flow
Discovery
The MCP client fetches
/.well-known/oauth-authorization-server to discover the authorization and token endpoints. This step is automatic for clients like Claude and ChatGPT.Authorization request
The client redirects you to
Example authorization URL:
GET /oauth/authorize with the following parameters:| Parameter | Required | Description |
|---|---|---|
response_type | Yes | Must be code |
client_id | Yes | Your client ID, obtained from registration or auto-assigned |
redirect_uri | Yes | Must match a registered URI or a known pattern (claude.ai, chatgpt.com, localhost) |
code_challenge | Yes | SHA-256 of your code_verifier, base64url-encoded |
code_challenge_method | Yes | Must be S256 |
scope | No | Defaults to vault:read |
state | No | CSRF token; returned unchanged in the callback |
resource | No | The MCP endpoint URL, e.g. https://along-api-qrd5m37v3a-ey.a.run.app/mcp/v1 |
User consent
Along redirects you to the Along app consent page. Log in with your Along account and optionally select a Safe to associate with this connection. Once you approve, Along returns an authorization
code to the redirect_uri.The authorization code expires in 10 minutes.Token exchange
The client sends the authorization code to the token endpoint to receive access and refresh tokens:Response:
Token lifetimes
| Token | Lifetime |
|---|---|
| Access token | 1 hour (expires_in: 3600) |
| Refresh token | 90 days |
| Authorization code | 10 minutes |
Refreshing tokens
When an access token expires, the client exchanges the refresh token for a new access token and refresh token pair:access_token and refresh_token values. The old refresh token is revoked immediately after use.
Client registration
For custom integrations that aren’t Claude or ChatGPT, register your client before starting the OAuth flow:client_id in all subsequent authorization requests.
Claude and ChatGPT auto-register as clients when they initiate the OAuth flow — you don’t need to pre-register for those integrations.