MCP Server
The MCP server gives any assistant that speaks the Model Context Protocol your agents and platform checks as tools. The assistant can list agents, start a run, read its result, and compute verified figures from documents.
| Endpoint | https://changents.ai/api/v1/mcp, or https://<your-host>/api/v1/mcp on your own installation |
|---|---|
| Transport | Streamable HTTP: one JSON-RPC 2.0 message per POST, answered with one JSON object |
| Version | 2025-06-18 (also 2025-03-26) |
Keys
Use a key with the mcp scope. On /developer, choose Create MCP Key, or call:
curl -X POST https://changents.ai/api/developer/keys \
-H "Authorization: Bearer <session token>" -H "Content-Type: application/json" \
-d '{ "name": "assistant", "scopes": ["mcp"] }'The scope is never granted by default. An MCP key reaches these tools and nothing else: it cannot call the REST API or the Private Inference API. Send it as Authorization: Bearer <key>. The key acts as its owner, who needs edit rights in their organisation to run agents.
Connecting an assistant
Give your assistant the endpoint and the key as a bearer token. For a client configured with JSON:
{
"mcpServers": {
"changents": {
"type": "http",
"url": "https://changents.ai/api/v1/mcp",
"headers": { "Authorization": "Bearer cgnt_sk_<clientId>.<secret>" }
}
}
}Tools
| Tool | What it does |
|---|---|
list_agents | The agent catalogue, with which figures of each agent are verified. Filter by query |
run_agent | Start one agent on an instruction. Returns a runId at once |
get_run | The status and result of a run. wait_seconds (up to 45) waits for it to finish |
cancel_run | Stop a run. The step running now finishes; nothing after it starts |
check_<name> | One per platform check, such as check_iso20022_address: figures computed in code from documents |
run_agent and the check tools take documents: up to 10 files as text, each named .csv, .txt or .json and at most 1 MB. A check tool involves no model; it returns the same computed figures a run shows as verified.
Object Graph and governed action tools
These tools are listed only when the key also holds the matching scope.
| Tool | Scope | What it does |
|---|---|---|
list_object_types | objects | The object types, their fields and the connected systems mapped to each |
read_objects | objects | Every object of a type from your connected systems, with provenance; see Object Graph |
get_object | objects | One object with its lineage |
propose_action | actions | Propose a change to a record. It waits for a person to approve it; the tool cannot approve |
get_action | actions | A proposed change and its status |
get_action_proof | actions | The change's proof bundle, digest recomputed; see Governed actions |
A sandbox key sees only these six tools, on made-up records. It cannot run agents or checks.
What stays the same as in the app
- Runs are counted. Each run, and each check, uses one run of your plan, then your run passes. With none left the tool answers with an error that says so.
- Approval steps wait for a person. A step with side effects stops for approval exactly as it does in the app.
get_runthen showsawaitingApproval; approve it in CHANGENTS.AI. No tool approves a step. - Your retention policy applies. Under No-Retention Mode a finished run's content is removed 10 minutes after it ends, so read the result before then.
- Runs are private. A key reads and stops only its owner's runs and their organisation's.
Errors
A tool that cannot do what was asked answers normally with isError: true and a sentence the assistant can act on. Protocol errors use JSON-RPC codes: -32601 unknown method, -32602 unknown tool. HTTP 401 means no valid key, 403 a key without the mcp scope, 429 over the limit of 60 requests a minute per key (MCP_RATE_PER_MIN).
The server is stateless: it issues no session id and offers no server-initiated stream, so GET answers 405.