# MCP server · address and transport

Xale's MCP server is https://xale.app/api/mcp: Streamable HTTP, stateless, one JSON-RPC message per POST, OAuth bearer tokens only.

Checked 2026-12-02 · https://xale.app/docs/ai/mcp-server-address-and-transport

## Address

```text
https://xale.app/api/mcp
```

Paste it exactly, with nothing before or after it.

## Transport

Streamable HTTP, stateless:

| Request | Answer |
| --- | --- |
| `POST` with one JSON-RPC 2.0 message | One JSON answer (`Content-Type: application/json`, `Cache-Control: no-store`). Each POST stands alone. |
| `POST` with a JSON array (a batch) | `400`, code `-32600`: “Batches are not supported; send one message per POST.” |
| A notification (no `id`, method `notifications/…`) | `202`, no body |
| A request without an `id` | `400`, code `-32600` |
| `GET` or `DELETE` | `405` with `Allow: POST, OPTIONS` |
| `OPTIONS` | `204` with CORS headers, for an allowed origin |
| A body over 256 KB | `413`, code `-32600`, with a message saying to save a shorter first part and add the rest |

## Protocol versions

Xale implements `2025-11-25` and `2025-06-18`.

- `initialize` with either version is answered with that version. Any other version is answered with `2025-11-25`.
- After `initialize`, an `MCP-Protocol-Version` header naming another version gets `400`: “Unsupported MCP-Protocol-Version. Supported: 2025-11-25, 2025-06-18.” Sending no header is fine.

## What `initialize` returns

```json
{
  "protocolVersion": "2025-11-25",
  "capabilities": { "tools": { "listChanged": false }, "prompts": { "listChanged": false }, "resources": { "listChanged": false } },
  "serverInfo": { "name": "xale", "title": "Xale", "version": "1.0.0", "websiteUrl": "https://xale.app", "icons": ["…192, 256 and 512 px PNGs…"] },
  "instructions": "Xale is the person's personal space for …"
}
```

Read `instructions` before acting. `listChanged` is `false` for all three: a changed tool list shows only on a fresh `tools/list`.

## Methods

`initialize`, `ping` (answers `{}`), `tools/list`, `tools/call`, `prompts/list`, `prompts/get`, `resources/list`, `resources/read`. Anything else gets `-32601`.

## Calls from a browser

A request that carries an `Origin` header must come from one of these, or it gets `403`:

- `https://xale.app`
- `https://claude.ai`, `https://claude.com`, `https://chatgpt.com`, `https://grok.com`, `https://gemini.google.com` (default port only)
- `http://127.0.0.1`, `http://localhost`, `http://[::1]` on any port

Server-to-server calls send no `Origin` and pass.

## The order of a first connection

```text
client  POST /api/mcp (no token)
server  401  WWW-Authenticate: Bearer resource_metadata=".../.well-known/oauth-protected-resource/api/mcp", scope="read write:memories write:intentions write:changes"
client  GET  protected resource metadata, then authorization server metadata
client  POST /api/oauth/register             (dynamic client registration)
person  /oauth/authorize                      (signs in, picks permissions, Allow)
client  POST /api/oauth/token                 (code + PKCE verifier)
client  POST /api/mcp  Authorization: Bearer <access token>   initialize, tools/list, tools/call…
```

Each step is on [OAuth sign-in · how it works](https://xale.app/docs/ai/oauth-sign-in-how-it-works).

## Rate limits

120 messages per connection per minute, of which at most 30 may be writes. Over the limit, the answer is `429` (or a tool error for writes): wait a minute. See [Rate limits · and retries](https://xale.app/docs/ai/rate-limits-and-retries).

## Related

- For people: [How do I connect Claude to Xale?](https://xale.app/help/connect-claude-web-and-desktop)
- For people: [Why can't my AI find Xale?](https://xale.app/help/ai-can-t-find-xale-fixes)
- Read next: [OAuth sign-in · how it works](https://xale.app/docs/ai/oauth-sign-in-how-it-works)
- Read next: [Error codes · what they mean](https://xale.app/docs/ai/error-codes-what-they-mean)
- Read next: [Other MCP clients · generic setup](https://xale.app/docs/ai/other-mcp-clients-generic-setup)
