Connect and sign in

Other MCP clients Generic setup

Beyond 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.

View as Markdown

Who can connect

ClientAccepted
A desktop or command-line client that listens on a loopback address for the OAuth callbackYes
A browser tool served from a loopback origin, such as the MCP InspectorYes
A hosted client whose callback is on another domainUse a loopback callback instead: registration answers invalid_redirect_uri

Set it up

  1. Point the client at https://xale.app/api/mcp. Its first call gets 401 with WWW-Authenticate naming the protected resource metadata.
  2. Register with POST /api/oauth/register, with redirect_uris on http://127.0.0.1, http://localhost or http://[::1]. No secret is issued. See Dynamic client registration.
  3. Open https://xale.app/oauth/authorize in the person's browser with response_type=code, your client_id, the redirect_uri, a code_challenge with code_challenge_method=S256, and state.
  4. The person signs in to Xale and chooses Allow. Xale sends the browser to your loopback address with code, state and iss.
  5. Exchange the code at POST /api/oauth/token with your code_verifier, then call /api/mcp with Authorization: Bearer ….

The port can change

A loopback callback matches on scheme, host, path and query; the port may differ each time (RFC 8252). Register http://127.0.0.1:33418/callback once, and http://127.0.0.1:50123/callback is accepted later. An https callback has to match exactly.

How the person sees it

The allow page and Settings › Connected apps call a loopback app “An app on this computer (it calls itself “…”)”, with the name from your registration in the quotes. Choose a client_name the person will recognise.

  • Checked against main 8aef9b15

Was this helpful?

other-mcp-clients-generic-setup.md · main@c1725f34