Skip to content
Back to the app

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.

Endpointhttps://changents.ai/api/v1/mcp, or https://<your-host>/api/v1/mcp on your own installation
TransportStreamable HTTP: one JSON-RPC 2.0 message per POST, answered with one JSON object
Version2025-06-18 (also 2025-03-26)

Keys ​

Use a key with the mcp scope. On /developer, choose Create MCP Key, or call:

bash
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:

json
{
  "mcpServers": {
    "changents": {
      "type": "http",
      "url": "https://changents.ai/api/v1/mcp",
      "headers": { "Authorization": "Bearer cgnt_sk_<clientId>.<secret>" }
    }
  }
}

Tools ​

ToolWhat it does
list_agentsThe agent catalogue, with which figures of each agent are verified. Filter by query
run_agentStart one agent on an instruction. Returns a runId at once
get_runThe status and result of a run. wait_seconds (up to 45) waits for it to finish
cancel_runStop 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.

ToolScopeWhat it does
list_object_typesobjectsThe object types, their fields and the connected systems mapped to each
read_objectsobjectsEvery object of a type from your connected systems, with provenance; see Object Graph
get_objectobjectsOne object with its lineage
propose_actionactionsPropose a change to a record. It waits for a person to approve it; the tool cannot approve
get_actionactionsA proposed change and its status
get_action_proofactionsThe 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_run then shows awaitingApproval; 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.

Served from this deployment. No page view leaves it.