A guard for an AI agent's tools: it holds the tools' credentials in place of the agent, and stops any tool call that the person did not allow in a permission they signed with a passkey.
The guard, provared-mcp-executor, stands between the agent and a tool server that speaks the Model Context Protocol (MCP), the common way for AI agents to reach tools. It holds the tool server's credential in place of the agent, and refuses a call the permission does not allow before the call reaches the tool. It can also test what a call would change, for example which paths a file tool may touch. It starts a tool server itself on the same computer, for one agent (MCP's "stdio" transport), or, from version 0.3.0, stands in front of one reached over the network (MCP over HTTP, the protocol of the web), for several agents, each with its own secret, permission and record.
The record follows from it. For each call it lets through, the guard writes a signed receipt and countersigns it with keys of its own; for a call the permission does not allow, a signed note of the refusal (a denial). Anyone can check these records later, on their own computer, with the free checker.
What it does not do yet. One guard stands in front of one tool server, and over the network the credential it holds is a bearer token read from a file. Over HTTP it has been tried with the official MCP software on protocol version 2025-11-25 only, with every program on one computer; on the newer 2026-07-28 it has met only a test server of its own. The agents' secrets travel in the clear unless something else encrypts the connection to the guard, and so does the tool server's credential if the tool server is reached by plain HTTP. Keys held in a key service are designed but not built. Sealing the record is built, in the guard from version 0.5.0, with limits that its README lists: among them, where the keys that seal are in the guard's own files, whoever can read those files can seal a book of their own; a central sealer, a separate program that holds those keys, must run on the same computer as the guard; and seals held elsewhere and witnesses are not built. And it proves nothing about a tool the agent can reach without it: the tool's credential must be taken away from the agent. It keeps the credential, and its own keys, from the agent only where the agent cannot read the guard's files: an agent with a shell or file tools that runs as the same computer user can read them. So run the guard under a separate user account that the agent cannot use, or give the agent no shell or file tools. Over HTTP the guard can also run apart from the agent, where the agent cannot read the guard's files: an example puts them in separate Docker containers on one computer, and its seven checks passed with Docker Desktop on Windows; on separate computers it has not been tried.
Evidence, not a verdict. A record shows what was signed and by which keys. People decide what it means.
npm install -g provared-mcp-executor # Node.js 24.7 or later
Use version 0.4.2 or later. Every earlier version, 0.1.0 to 0.4.1, has two weaknesses: in front of some tool servers, an agent could have a tool run that the guard never checked. Version 0.4.2, published on 15 November 2026, fixes both, and npm marks the earlier versions as deprecated. The security advisory says which servers are affected and what to check.
Its README sets it up in five steps: write its settings, make its keys, sign the permission with a passkey at https://sign.prova.red, check the settings, and name the guard in the agent's MCP client where the tool server was named. For a client whose settings are JSON:
{
"mcpServers": {
"files": {
"command": "provared-mcp-executor",
"args": ["stdio", "--config", "/etc/provared-mcp/files/executor.json"]
}
}
}To see it work first, with no passkey and no settings,
provared-mcp-executor demo (from version 0.4.0) runs the guard in front
of a made-up tool server in a new temporary folder, lets one call through,
refuses one and checks the book, under a permission signed by a
development stand-in, not a person, so its records prove nothing about
anyone; then
provared-mcp-executor init copies the example settings into the current
folder. The guard is listed in the
official MCP Registry as io.github.provared/mcp-executor. "Executor"
is the Internet-Draft's word for software, other than the agent, that
acts for it and refuses what the permission does not allow.
The guard is one way to put an agent's actions behind a signed permission. The others write the same kind of record, read by the same checker:
- The library, in JavaScript or Python, for an agent you write yourself: each action is checked against the permission first and receipted after (see "A first record of your own", below).
- The recorder beside Claude Code
(
provared-claude-code, also a Claude Code plugin), which checks Claude Code's tool calls and receipts each one taken. Eight tools that only talk to the person or change what the model itself holds, such as AskUserQuestion and TodoWrite, are not recorded. - Packages for two Python agent frameworks, LangChain and Pydantic AI, and an example for the Vercel AI SDK.
- The gateway, for agents that act through web
interfaces: it stands in front of each system an agent uses, holds
that system's credential and receipts each call. On npm as
provared-gateway(version 0.1.1, since 28 November 2026; first published on 22 November 2026).
npm install provared # Node.js 24.7 or later, no dependencies
pip install provared # Python 3.11 or later, one dependency
npx provared-check --sample # the checker's answer for the sample record
The sample is an invented office agent that goes over its limit at its fifth order. The checker's answer ends:
Summary
Is the record intact? yes
Was every signature checked? yes
Did the agent stay within its slip? NO: first at entry 5
Time-stamped in a way you trust? yes: the first 9 entries existed by 2026-10-05T10:16:00Z
Checked against keys you named? yes: the passkey you trust, and the recorder you expect
Three commands. The permission is signed with a development stand-in
for a passkey: a key made in memory, which no person confirmed. Every
permission it signs says so in its issuer's name, and the checker prints
that name. A real permission is signed by a person, in a browser, with a
real passkey (provared/passkey-browser, and the checking page).
npm install provared
node first-record.mjs
npx provared-check book.jsonl --issuer <the thumbprint it prints>
first-record.mjs (examples/first-record.mjs):
import { writeFileSync } from 'node:fs';
import { developmentRecorder } from 'provared/dev';
const SEND = 'provared.message.send';
// A permission: the agent may send messages, at most two.
const { recorder, issuerKeys } = await developmentRecorder({
actions: [SEND],
limits: [{ action: SEND, count: 2 }],
purpose: 'Send a few messages, to make a first record.',
});
// Each action is asked for first, taken only if the permission allows it,
// and receipted after. The third message is outside it, so it is not sent.
for (let i = 1; i <= 3; i++) {
const outcome = await recorder.act({ action: SEND }, async () => console.log(`message ${i} sent`));
if (!outcome.done) console.log(`message ${i} not sent: ${outcome.answer.breaches[0].message}`);
}
writeFileSync('book.jsonl', recorder.book());
console.log(`npx provared-check book.jsonl --issuer ${issuerKeys[0]}`);The same in Python is
python/examples/first_record.py, with
from provared.dev import development_recorder. For a LangChain agent,
pip install provared-langchain puts every tool call behind the same
check with no change to the tools
(python/integrations/provared-langchain):
from langchain.agents import create_agent
from provared_langchain import ProvaredMiddleware
agent = create_agent(model, tools=[order_supplies, send_message],
middleware=[..., ProvaredMiddleware(writer, {
'order_supplies': {'action': 'supplies.order', 'with': 'supplier',
'amount': lambda a: {'unit': 'GBP', 'value': a['total_gbp']}},
'send_message': 'provared.message.send',
})]) # last among the middleware that wrap tool callsThe package is listed among the middleware in
LangChain's own documentation.
For JavaScript agents, examples/frameworks/ shows the
same with the Vercel AI SDK, through recordTools.
| Part | What it is |
|---|---|
| The permission (a Slip) | A person signs it with a passkey: which agent, which actions, what limits and conditions, with whom, from when until when, and why |
| The receipt (a Stub) | The agent signs one for each action, pointing back to its slip; the other side countersigns it where it can, and the person approves it where the slip asks |
| The sealed book (a Seal) | The receipts chained, gathered under one fingerprint, signed by whoever keeps the book and time-stamped by an outside service |
| One page with proof (a Show) | One entry handed to a checker with proof that it is in the book, and when the book was sealed, with the names it does not need kept covered |
The checker answers two questions and keeps them apart: is the record intact, and did the agent stay within its slip. Going over a limit is not a fault in the record. It is what a sound record shows.
Signed, chained and time-stamped receipts for an agent's actions exist in other open projects too, some with quantum-safe signatures. As far as the author knows, in October 2026, three things are only here: limits a machine can check in a permission the person signs, with the checker's answer "did the agent stay within it"; passing a permission on to a helper agent so that it can narrow and never widen; and cancelling with the agent's signed acknowledgement, so that a record shows when the agent's side was told. If you know of another project that does any of these, open an issue: the list is kept honest.
It shows what was recorded, not what was left out: an agent that acts and writes no stub leaves no trace. A one-sided stub shows what the agent's side said. It does not show that an action was wise, lawful or wanted, nor who was holding the device when the passkey signed. A name in a record is a label; only keys are checked. The full list, with what each part protects against, is in docs/threat-model.md.
- The guide: the whole library, in one document. Installing and importing; the command-line checker; what a slip can say; seals, time-stamps, witnesses and the chain of block headers; cancelling; who stands behind a name; covered fields; passing a slip on; the check before acting; the stub writer beside an agent and the connector for its tools; what the checker returns; what it never does; what is not built yet.
- The format, described exactly, and the shared test files in test-vectors/ that any implementation can be held to.
- The Python version, which gives the same answers, with examples for three agent frameworks and packages for two of them.
- Two programs beside an agent, each on npm with its own README:
the recorder beside Claude Code
(
npm install -g provared-claude-code, also installable as a Claude Code plugin), which checks and receipts Claude Code's tool calls, except eight that only talk to the person or change what the model itself holds; and the executor for MCP tool servers (npm install -g provared-mcp-executor), which stands between agents and a tool server, holds the server's credential, and countersigns each receipt with keys of its own. - A tool server behind the guard, on npm with its own README: provared-shopify (version 0.1.0, on npm since 21 November 2026), a small MCP server for one Shopify store's Admin API, made to run behind the guard. It has been run only against a made-up Shopify, in its tests.
- The pages at prova.red: the checker's answer for the sample record, a worked example for developers, and the same in plain words for a reader who does not write code.
- The checking page, which checks a record in a browser and loads nothing from anywhere; also built as one file, attached to each release. It uses only the signing methods the browser has built in. Tried on the author's computer on 13 October 2026: Chrome 155, Edge 155 and Brave 155 each check the quantum-safe signatures on receipts (ML-DSA). None of the three has the third method a seal is signed with (SLH-DSA), so in a browser a book with a seal is never a pass. The command-line checker checks all three.
- The core of the format as an individual Internet-Draft at the IETF: draft-izmaylov-agent-permission-receipts. An Internet-Draft is a working document, not a standard.
- CHANGELOG.md, SECURITY.md and CONTRIBUTING.md.
The library at version 0.9.2 and the guard at 0.5.3, both drafts.
Published as they are, by one author in their
own time, built with AI tools since 3 October 2026; fixes as time
allows. The code has been through more than 80 rounds of review by AI
reviewers, each a fresh session given the code, the documents and a
brief of what to look at. Until 7 November 2026 each reviewer likely
also had the author's private planning notes loaded, so could see the
author's reasoning; since then reviewers start without them. Every
fault was fixed, or stated as a limit, and kept as a test. No person
other than the author has reviewed it yet.
That is an invitation. The format may still change.
Every published version stays on npm and the Python Package Index, so a
record made with one version can always be checked by that version.
The library's own code, in src/, makes no network request: its tests
fail if that code opens a network connection while they run. Two parts
kept apart in net/ do: provared/net/timestamp, which asks a
time-stamp service and is loaded only by a program that imports it, and
the network code of the command provared-headers, which asks only the
Bitcoin nodes you name (and, for a node given by name, your computer's
own name service).
Questions, faults and suggestions: [email protected], or issues on GitHub.
Copyright 2026 Pavel Izmaylov.
The code, the pages and the sample files: Apache License 2.0
(LICENSE). The format description and the other documents: Creative
Commons Attribution 4.0 International (LICENSE-CC-BY-4.0.txt).