Skip to Content
Recodocs

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.

3 min read

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.

ModeClientHow it connects
Stdio launcherClaude CodeThe client starts a local launcher that talks to RecoX
Configuration overridesCodexCodex is pointed at the same launcher through its configuration overrides
Governed HTTP gatewayAny MCP clientA 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.
External MCP client governed call flowClick to inspect
MCP Client
Gateway
Approver
Connect → exchange for short-lived run token
Read tool call
Succeeded: data + evidence
Consequential write call
pending_approval + proposal key
Decision routed for approval
Approve exact preview
Execute previewed material & read back

Result envelope

Every tool call returns the same versioned envelope as in the console.

pending-approval.json
{
  "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"
}
StatusMeaningWhat the client does
succeededA read finished, or an allowed write was applied and read backUse data and evidence
pending_approvalThe change is held as a decisionTell the user; do not report the change as made
conflictThe record changed since the client read itRead again and propose again
failedDenied, invalid or an error occurredRead 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

SituationBehaviour
Credential invalid or removedThe gateway rejects the connection and no tools are available.
Run token expiredThe client exchanges its credential for a new token.
Decision expires or is rejectedThe record stays untouched.

Planned

A public REST API and webhooks are planned. See the roadmap.

How is this page?

Last updated on