Agent Trust · docsConsole

Integrations

Every path into Agent Trust in three lines or fewer. Pick the row that matches what you already run; each section is complete on its own. mnki is the developer brand: npm mnki-cli, mnki-sdk, mnki-mcp, mnki-verifier; PyPI mnki; container ghcr.io/mnkiagentos/mnki-mcp.

You have… Start here What you get
Nothing yet npx mnki-cli demo The €47,000 refund story: DENY with evidence, ALLOW, REQUIRE_APPROVAL. No account.
MCP servers in Claude Desktop, Claude Code, Cursor, Windsurf or VS Code npx mnki-cli scan then mnki protect Every tools/call verified; observe first, enforce when ready.
An agent written in TypeScript or Python npm i mnki-sdk / pip install mnki guard.wrap(tool) in local mode, then a console for approvals and the ledger.
OpenAI Agents, LangChain, Claude Agent SDK, Vercel AI, CrewAI, Pydantic AI the adapter subpath One line per framework, framework never imported by mnki.
A remote MCP server (HTTP) Console → Integrations → MCP gateway Hosted proxy URL, nothing installed.
Anything else that speaks HTTP POST /v1/verify The same decision, evidence and ledger from any language.
A "must not depend on a vendor" requirement mnki-verifier / at-verify (Go) Offline verification of chains and attestations against the public vectors.

MCP clients

mnki-mcp is a local proxy: it speaks stdio to the client, launches or connects to the real server behind it, and verifies each tools/call with the evidence list. mnki protect edits the client's config for you (diff first, --apply to write, backup kept, mnki protect rollback to undo). The blocks below are what it writes, if you prefer to paste them yourself. Every example needs a console API key with the verify scope (Settings → API keys), placed in MNKI_API_KEY; the agent id is the identity the calls run under.

Claude Desktop

One-click: download mnki-mcp.mcpb from the latest release, double-click it, and fill in the upstream server command, the agent id and the API key in the dialog. Claude Desktop keeps the key in its keychain.

Or edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "mnki-mcp", "--agent", "desktop-assistant", "--server", "github", "--mode", "observe",
               "--upstream", "--", "npx", "-y", "@modelcontextprotocol/server-github"],
      "env": { "MNKI_API_KEY": "at_verify_…", "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_…" }
    }
  }
}
npx mnki-cli protect --client claude-desktop --server github --agent desktop-assistant --apply

Claude Code

claude mcp add github -e MNKI_API_KEY=at_verify_… -- npx -y mnki-mcp --agent claude-code --server github --upstream -- npx -y @modelcontextprotocol/server-github

or npx mnki-cli protect --client claude-code --server github --agent claude-code --apply, which rewrites the entry in ~/.claude.json or the project's .mcp.json. The Claude Agent SDK (programmatic Claude Code) uses the hook adapter instead, see below.

Cursor

~/.cursor/mcp.json (global) or <project>/.cursor/mcp.json:

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "mnki-mcp", "--agent", "cursor", "--server", "github", "--upstream", "--", "npx", "-y", "@modelcontextprotocol/server-github"],
      "env": { "MNKI_API_KEY": "at_verify_…" }
    }
  }
}

npx mnki-cli protect --client cursor --server github --agent cursor --apply does the same. Cursor's "Add to Cursor" deep links (cursor://anysphere.cursor-deeplink/mcp/install?name=…&config=<base64 JSON>) carry exactly this JSON, so a team can hand out one link.

Windsurf

~/.codeium/windsurf/mcp_config.json, same mcpServers shape as Cursor; --client windsurf in mnki protect.

VS Code (Copilot agent mode)

<project>/.vscode/mcp.json:

{
  "servers": {
    "github": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "mnki-mcp", "--agent", "vscode", "--server", "github", "--upstream", "--", "npx", "-y", "@modelcontextprotocol/server-github"],
      "env": { "MNKI_API_KEY": "${input:mnki-key}" }
    }
  },
  "inputs": [{ "id": "mnki-key", "type": "promptString", "password": true, "description": "Agent Trust API key" }]
}

npx mnki-cli protect --client vscode --server github --agent vscode --apply.

Any other MCP client, or a remote server

Stdio upstream: npx -y mnki-mcp --agent <id> --server <name> --upstream -- <command> [args…]. HTTP upstream (Streamable HTTP): npx -y mnki-mcp --agent <id> --server <name> --upstream-url https://… --upstream-header "Authorization=Bearer …". Container: docker run -i ghcr.io/mnkiagentos/mnki-mcp --agent <id> --upstream-url https://… with MNKI_API_KEY in the environment.

Modes: observe (default: everything runs, would-deny is logged to ~/.mnki/shadow/<server>.ndjson), warn, require_approval (only what policy escalates waits for a human), enforce. mnki protect report reads the shadow log and lists the delegations and capabilities to grant before switching a server to enforce. Denials reach the client as JSON-RPC error -32003 with the evidence; an approval that timed out is -32001; -32005 is the plan's verification quota.

Hosted MCP gateway (no local proxy)

Console → Integrations → MCP gateway → the upstream URL and its auth header. The console answers with a gateway URL; the client calls it with an Agent Trust API key in the Authorization header. Same verification, same ledger, nothing installed. Any client that can send a header works today, for example the OpenAI Responses API's hosted mcp tool:

from openai import OpenAI
client = OpenAI()
resp = client.responses.create(
    model="gpt-5",
    tools=[{ "type": "mcp", "server_label": "github-via-agent-trust",
             "server_url": "https://mnki.com/api/gateway/mcp/<integration id>",
             "headers": { "Authorization": f"Bearer {os.environ['MNKI_API_KEY']}" },
             "require_approval": "never" }],
    input="Open a pull request that bumps the dependency.",
)

Because the gateway holds the upstream credential and the agent never does, its decisions record the effect path as custody (profile §15): the evidence shows the server could not have been called around the check. The local proxy declares none instead, honestly, since it shares a machine with the agent process.

The ChatGPT connector directory, Claude connectors and Smithery require OAuth sign-in on the server instead of a header; that is planned for the gateway and will be announced here.

Access broker: a connection as an MCP server

Console → Access → connect Stripe, GitHub, Google, Slack, Microsoft, AWS or any HTTP API once. Every connection is then an MCP server at https://mnki.com/api/gateway/access/<connection id>/mcp: tools/list is the operations you enabled, every tools/call is verified with the connection as audience, granted once and executed by the broker with the stored credential. The agent never holds a key. The same path is POST /v1/grants/execute for anything that speaks HTTP, client.grants.run(...) in the SDKs and mnki access run … in the CLI. Full guide: Access broker.

{ "mcpServers": { "stripe": { "url": "https://mnki.com/api/gateway/access/con_…/mcp",
  "headers": { "Authorization": "Bearer at_verify_…", "Agent-Id": "invoice-agent" } } } }

Frameworks

Adapters are subpaths of mnki-sdk and modules of mnki; the framework itself is never imported by the adapter, so its upgrades cannot break the guard. A refused call returns { "error": "denied", "reasons": [...], "evidence": [...] } to the model unless you pass onRefused: "throw". Pinned versions and support levels: compatibility.

import { createGuard } from "mnki-sdk";
const guard = createGuard({ client: { baseUrl: "https://mnki.com", apiKey: process.env.MNKI_API_KEY! }, agent: "invoice-agent" });

import { guardTools } from "mnki-sdk/openai-agents";      // new Agent({ tools: guardTools(guard, [refund]) })
import { guardTools } from "mnki-sdk/langchain";           // new ToolNode(guardTools(guard, [refund]))
import { preToolUse } from "mnki-sdk/claude-agent-sdk";    // query({ hooks: { PreToolUse: [{ hooks: [preToolUse(guard)] }] } })
import { guardTools } from "mnki-sdk/ai";                  // generateText({ tools: guardTools(guard, { refund }) })
import { signTaskRequest, verifyBeforeAccept } from "mnki-sdk/a2a";   // agent-to-agent: sign outgoing tasks, verify incoming ones
from mnki import AgentTrustClient, Guard
g = Guard(AgentTrustClient("https://mnki.com", api_key=os.environ["MNKI_API_KEY"]), agent="invoice-agent")

from mnki.adapters.openai_agents import guard_tools   # Agent(tools=guard_tools(g, [refund]))
from mnki.adapters.langchain import guard_tools       # create_react_agent(model, guard_tools(g, [refund]))
from langchain_mnki import guard_tools                # the same, as the `pip install langchain-mnki` partner package
from mnki.adapters.crewai import guard_tools          # Agent(tools=guard_tools(g, [refund_tool]))
from mnki.adapters.pydantic_ai import guard_tool      # @agent.tool_plain  @guard_tool(g)  def refund(...): ...

Local mode (no account) is the same call with a world instead of a client: createGuard({ world: demoWorld(), agent: "invoice-agent" }) / Guard(world=demo_world(), agent="invoice-agent").

API

curl https://mnki.com/api/v1/verify -H "Authorization: Bearer at_verify_…" -H "content-type: application/json" \
  -d '{"agent":"invoice-agent","action":"refund.create","resource":"customer:4711","amount":47000,"currency":"EUR"}'

The response carries decision (ALLOW / DENY / REQUIRE_APPROVAL), reasons, the evidence list and the ledger event id; a REQUIRE_APPROVAL includes an approval_id to poll at /v1/approvals/{id}/status. Policy engines that speak AuthZEN call /api/access/v1/evaluation with the same key. Full reference: API and the OpenAPI document at /api/v1/openapi.

Permits. POST /v1/attestations { decision_id } turns an allowed or approved decision into a short-lived signed permit, which an agent presents as attestation on later calls. A permit derived from a human approval is single-use (profile §9.2): the first ALLOW that presents it consumes it, a replay is refused with attestation_invalid:consumed, and it only works for the request it was approved for. GET /v1/orgs/{id}/status/attestation/{jti} is public and answers active, revoked, expired or unknown, so anyone who accepted one of your attestations can check it before acting (§12.1).

Messaging an agent built in Agent Trust (A2A)

An agent built in Agent Trust can accept messages at its own address, https://mnki.com/a2a/<public id>, over A2A JSON-RPC (message/send, tasks/get, tasks/cancel). Its owner decides which senders it accepts and how much waits for a person; the agent's card lists the groups it accepts and how to identify yourself.

Identify your agent. Attach an attestation from your own organisation, made out for this message:

  1. Verify the action a2a:message for your agent (it needs that capability), then issue an attestation for that decision with audience set to the target's stable id or public id and use: "single". With the SDK: const d = await client.verify({ agent: "<your agent>", action: "a2a:message", resource: "a2a:<public id>" }), then client.attestations.issue(d.decision_id, { audience: "<public id>", use: "single" }).
  2. Send it in the Agent-Attestation header (or as Authorization: Bearer <token>).

Without one you are an unidentified sender, which most agents refuse. A token that is present but does not check out — wrong audience, wrong action, already used, withdrawn by your organisation, or naming an agent that is not active — is refused outright rather than treated as unidentified.

curl -s https://mnki.com/a2a/pub_xxxxxxxxxxxxxxxxxxxxxx \
  -H "content-type: application/json" -H "agent-attestation: $ATTESTATION" \
  -d '{"jsonrpc":"2.0","id":1,"method":"message/send","params":{"message":{"role":"user","messageId":"m1","parts":[{"kind":"text","text":"Quote 40 widgets, please."}]}}}'

The answer is an A2A task. Its metadata["https://mnki.com/agent-trust/conversation"].secret is shown once: send it in the Agent-Conversation header with every later request for that task. Nothing else identifies you afterwards.

Task state Meaning
submitted Waiting for a person at the receiving organisation to accept the conversation
working The agent is working, waiting for a person to approve a step, or its reply is being read before it is sent
completed The reply is in status.message and artifacts — or a note that a person decided not to send it
rejected The conversation was not accepted
canceled Closed, by you or by the organisation, or ended after a day without messages
failed The agent could not finish

Poll with tasks/get (params.id is the task id). Continue with message/send carrying message.taskId. End it with tasks/cancel; a request still waiting for a person is withdrawn.

Errors. -32001 means not found, and is the same for every address that cannot be reached, so an address cannot be probed. -32003 is a refusal, with the reason in error.data.code (not_accepted, blocked, already_waiting, attestation_replayed …). -32005 means slow down: wait error.data.retry_after seconds. -32004 means the agent cannot take the message right now.

If your message has already passed through other agents, say how many in params.metadata["https://mnki.com/agent-trust/hop"]; more than three is refused.

With the SDK. sendAgentMessage(client, { agent, address, audience, text }) does the verify, the attestation and the request, and returns the task and the secret; pass taskId and secret to continue.

If your own agent receives messages (you run it, with mnki-sdk/a2a), verifyBeforeAccept checks the caller before your code runs. Set audience to your agent's stable id or public id, so a permit made out to another agent is refused, and name the resource your policy should see with resource: (task) => … — the caller's own parameters never set it.

Who is calling is proved with keys from an authority you trust, never from anything the caller points to. For an Agent Trust organisation (org_…) that is Agent Trust itself, https://mnki.com by default — a self-hosted receiver sets agentTrustBase to its own control plane. For anyone else, name them in trustedIssuers with the address of their keys (and, if they publish one, their attestation status). An issuer in neither is not trusted, whatever its card says. trust.caller.verified is true only when that check passed; organization is then the issuer that signed, and the card's name for it is kept as organization_claimed_name — a claim. A caller's card is fetched only from a public https address, without redirects; on a sensitive network, set cardHosts or pass the card yourself.

Callers nothing can identify are refused by default. With unidentified: "approval" they reach your guard on inbound:unidentified/<hash> instead, so your policy decides: add a require_approval rule for that resource and create the guard with onApproval: "throw", and the caller is told to come back after a person has decided rather than being held waiting.

Offline verification

mnki-verifier (TypeScript) and at-verify (Go, go/cmd/at-verify) validate delegation chains, signed decisions and attestations without contacting the console, against the organisation's published keys. They pass the same conformance vectors as the hosted verifier, so a partner can check a signed attestation from your agents in their own process. An offline verifier keeps no record of what it has spent, so it refuses a single-use permit rather than accepting one it cannot consume; send those to the hosted verifier.

Where the packages live

Channel Name
npm mnki-cli · mnki-sdk · mnki-mcp · mnki-verifier
PyPI mnki
Container ghcr.io/mnkiagentos/mnki-mcp (cosign-signed)
MCP Registry io.github.MNKIAgentOS/mnki-mcp (also what the GitHub and VS Code galleries and PulseMCP index)
Claude Desktop extension mnki-mcp.mcpb on every GitHub release
Cursor, Smithery, Glama, mcp.so listed from the repository (.mcp.json, smithery.yaml, glama.json at its root)
Source github.com/MNKIAgentOS/agent-trust (Apache-2.0)