For builders
Build an agent On Xale
Xale has no separate API: an agent uses the same MCP server as Claude and ChatGPT. Here is what you get, who can connect, and the loop a well-behaved agent follows.
What you get
| Endpoint | One MCP endpoint, /api/mcp: Streamable HTTP, stateless, one JSON-RPC message per POST |
|---|---|
| Protocol | 2025-11-25 or 2025-06-18 |
| Sign-in | OAuth 2.1 with dynamic client registration and PKCE S256; public clients only |
| Tools | 71, filtered by the scopes the person grants |
| Prompts | 5 |
| Resources | The format guides and AI instructions, plus the Mindmap drawing guide and HTML viewer with Pro |
| Tool-only drawings | xale_ returns SVG or HTML via tools/call |
| Briefing | instructions on every initialize, with the person's saved preferences |
Details: MCP server · address and transport.
Who can connect
Xale sends authorization codes only to the published callbacks of Claude, ChatGPT, Grok and Google's relay, and to loopback (127.0.0.1, localhost, [::1]) on the person's own computer.
- A local agent with a loopback callback can register and connect. Any port works.
- The allow page names a loopback app as "An app on this computer", with the name it gave itself in quotes, so the person knows it isn't a verified brand.
The person needs Xale Pro. See Other MCP clients · generic setup.
The loop
initialize, and keepinstructionsin the model's context for the whole chat.tools/list. Use only what's listed: it reflects the person's scopes.- Read first:
xale_, and the item you'd add to.read_ today - Propose in the chat: what and where.
- Wait for the person's yes.
- Write, one call per item, each create with a new
requestId. - Give the person the
hreffrom each result.
Keep the person in the loop
Removals need the person's words in the chat, and Xale refuses them during unattended runs. Design for a person who is there for anything destructive.
Work while the person is away
Register a check-in with xale_, start each run with xale_ and attended: false, and suggest with xale_ rather than creating. "Nothing is created until they accept." A run starts when your agent starts it, so have your agent wake itself.
Read next
Conduct · the whole guide, then the recipes in Recipes.
For people
- Checked against main
c1725f34