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

Checked 2026-12-02 · https://xale.app/docs/ai/other-mcp-clients-generic-setup

## Who can connect

| Client | Accepted |
| --- | --- |
| A desktop or command-line client that listens on a loopback address for the OAuth callback | Yes |
| A browser tool served from a loopback origin, such as the MCP Inspector | Yes |
| A hosted client whose callback is on another domain | Use 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](https://xale.app/docs/ai/dynamic-client-registration-details).
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.

## Related

- For people: [Should I allow an app on this computer to connect to Xale?](https://xale.app/help/app-on-this-computer-allow-with-care)
- Read next: [Dynamic client registration · details](https://xale.app/docs/ai/dynamic-client-registration-details)
- Read next: [OAuth sign-in · how it works](https://xale.app/docs/ai/oauth-sign-in-how-it-works)
