Docs Section 2
Connect and sign in
- MCP server — address and transportXale's MCP server is https://xale.app/api/mcp: Streamable HTTP, stateless, one JSON-RPC message per POST, OAuth bearer tokens only.
- OAuth sign-in — how it worksOAuth 2.1 for public clients: authorization code with PKCE S256, no client secret, consent on Xale's own page, opaque bearer tokens.
- Dynamic client registration — detailsClients register at POST /api/oauth/register (RFC 7591). Registration is open, but codes only go to the known apps' published callbacks or to a loopback address.
- Scopes — what each allowsStandard AI connections include broad read access and can request three write permissions. A desktop display can request the standalone read:now scope.
- Xale Pro — required for connectingConnecting an AI to Xale is part of Xale Pro. Without Pro, Xale's allow page offers Cancel instead of Allow, and the request waits 10 minutes while the person upgrades.
- Supported apps — Claude, ChatGPT, Gemini, GrokXale accepts four AI apps by their published callback addresses (Claude, ChatGPT, Grok, and Google's relay for Gemini), plus apps on the person's own computer through a loopback address.
- Claude setup — for developersClaude adds Xale as a custom connector that registers itself (DCR) and signs in with OAuth. The person's steps are on the people page; this page covers what happens underneath.
- ChatGPT setup — for developersChatGPT adds Xale as a custom MCP server with OAuth and Dynamic Client Registration. The person's steps are on the people page; this page covers what happens underneath.
- Gemini setup — for developersGemini adds Xale as a custom connector that registers itself and returns through Google's OAuth relay. The person's steps are on the people page; this page covers what happens underneath.
- Grok setup — for developersGrok adds Xale as a custom connector under Connect Apps and signs in with OAuth. The person's steps are on the people page; this page covers what happens underneath.
- Other MCP clients — generic setupBeyond Claude, ChatGPT, Gemini and Grok, Xale accepts clients that run on the person's own computer and take the OAuth code at a loopback address. Hosted clients on other domains are refused.
- Test the connection — first callsA connection works when it has both read from Xale and saved something. Xale's starter message does both: read today, save a Note, and say where it is.
- Tokens — expiry and refreshAccess tokens last an hour. Refresh tokens rotate on every use, and a connection nobody uses lapses after 60 days. Reusing an old refresh token ends the whole connection.
- Disconnect — and revoke accessA connection ends when the person chooses Disconnect in Xale, when the app revokes either of its tokens, or when the same app connects again. Every token of it stops working at once.