> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xcale.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Any MCP client

> What the xcale MCP expects from an MCP client: its address, how a client discovers the sign-in, registers itself and gets a token.

This page describes the xcale MCP, not the screens of any one app. A client that follows the MCP authorization flow can connect to it without being listed anywhere.

## The address

```
https://api.xcale.app/mcp
```

Add that address to your client as a remote MCP server. A request to it without a token is answered with `401`, and the response names where the client reads how to get one.

## How the client signs in

The client does the following on its own; you only see the last step.

1. **Discovery.** The client reads the server's metadata: the protected-resource document (at `/.well-known/oauth-protected-resource/mcp`, and also at `/.well-known/oauth-protected-resource`) names the authorization server, and the authorization-server document (`/.well-known/oauth-authorization-server`) lists its authorization, token and registration endpoints.
2. **Registration.** The client registers itself with dynamic client registration (RFC 7591) at `/oauth/register`. It is a public client: it has no client secret, so the token endpoint authenticates it with `none`.
3. **Authorization with PKCE.** The client sends the person to `/oauth/authorize` with a PKCE challenge. Only `S256` is accepted.
4. **Consent.** The person signs in to xcale and approves. Only an Admin of a business can approve; see [Access](https://docs.xcale.app/mcp/access.md).
5. **Token.** The client exchanges the code for tokens at `/oauth/token` with its PKCE verifier. The grant types are `authorization_code` and `refresh_token`. An access token lasts 15 minutes and the client renews it with its refresh token.

## No scopes to choose

There are no scopes for the person or the client to choose. The server advertises a single scope, `offline_access`, and ignores any `scope` a client sends to `/oauth/authorize`. What the connected app can do does not depend on a scope: it acts as the Admin who approved, through the tools in the [tool reference](https://docs.xcale.app/mcp/tools/account.md).

## Writing a client

The endpoints above are documented one by one under **For MCP client authors**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.