MCP
Let Claude Code, Codex and other MCP clients use RecoX tools through the governed gateway, and connect external MCP servers that RecoX allow-lists tool by tool.
RecoX works with the Model Context Protocol in both directions. Outside MCP clients such as Claude Code and Codex call RecoX tools. Those clients are real agents in their own hosts. In the other direction, RecoX can register external MCP servers, with every tool off until you allow it. Either way, calls pass through the same governed gateway as the console and Recobot, so a consequential call is a proposal that a person approves.
Connection modes
MCP allows external hosts to request tools through a standard interface. A connection makes an operation available; RecoX's role and policy rules still determine whether the requested effect can proceed.
| Mode | Client | How it connects |
|---|---|---|
| Stdio launcher | Claude Code | The client starts a local launcher that talks to RecoX |
| Configuration overrides | Codex | Codex is pointed at the same launcher through its configuration overrides |
| Governed HTTP gateway | Any MCP client | A machine credential is exchanged for a short-lived run token for each session |
The credential and the token identify the caller. Tools outside the caller's grants are not available.
Reads and consequential calls
- Reads run directly. A read returns records with evidence references, masked by sensitivity.
- Consequential calls return a pending proposal. Nothing changes until a person approves it in the console or in Slack. A machine credential cannot approve, so an external agent cannot approve its own proposal.
Result envelope
Every tool call returns the same versioned envelope as in the console.
{
"status": "pending_approval",
"data": null,
"evidence": [{ "type": "bill", "id": "bill_0412" }],
"effect": null,
"proposal": {
"id": "dec_91",
"title": "Mark Northwind bill as paid",
"severity": "moderate",
"expires_at": "2026-11-08T09:00:00Z"
},
"next_actions": ["wait for the decision"],
"retryable": false,
"invocation_id": "inv_58",
"run_id": "run_204"
}| Status | Meaning | What the client does |
|---|---|---|
succeeded | A read finished, or an allowed write was applied and read back | Use data and evidence |
pending_approval | The change is held as a decision | Tell the user; do not report the change as made |
conflict | The record changed since the client read it | Read again and propose again |
failed | Denied, invalid or an error occurred | Read the structured error; retry only if retryable is true |
External MCP servers
An Admin can register an external MCP server in the control plane. Each tool the server offers is off until allowed, one tool at a time. Allowed tools are subject to the same approval policy and audit trail as RecoX tools.
Access and safety rules
- Calls are checked against the caller's grants on every call.
- Text inside returned data does not change what the client may do.
- Pausing a component or removing a credential stops new runs.
- Every call is recorded in Runs and the audit log.
Failure behaviour
| Situation | Behaviour |
|---|---|
| Credential invalid or removed | The gateway rejects the connection and no tools are available. |
| Run token expired | The client exchanges its credential for a new token. |
| Decision expires or is rejected | The record stays untouched. |
Planned
A public REST API and webhooks are planned. See the roadmap.
How is this page?
Last updated on