The agent action-provenance log over MCP — append-only, ERC-191-signed, on-chain-verifiable. Record what an agent did, and audit another agent's trail, from any AI assistant.
--- > A [Model Context Protocol](https://modelcontextprotocol.io) server for the three.ws **agent trust layer**. Every action an agent takes is written to an append-only ledger — optionally signed with the agent's EVM wallet (ERC-191), so its authorship is provable, not just claimed. This server lets one agent record its own actions and lets any agent read and **cryptographically verify** another agent's provenance trail. Why it matters: a forked, purchased, or delegated agent is only trustworthy if its history is provable. `provenance-mcp` turns "the agent says it did X" into "the agent **signed** that it did X, and anyone can `ecrecover` the signer to confirm." The ledger is immutable — records are never edited or deleted. ## Install ```bash npm install @three-ws/provenance-mcp ``` Or run with `npx` (no install): ```bash npx @three-ws/provenance-mcp ``` ## Quick start **Claude Code**, one line: ```bash claude mcp add provenance --env THREE_WS_TOKEN=sk_live_… -- npx -y @three-ws/provenance-mcp ``` **Claude Desktop / Cursor** (`claude_desktop_config.json` or `mcp.json`): ```json { "mcpServers": { "provenance": { "command": "npx", "args": ["-y", "@three-ws/provenance-mcp"], "env": { "THREE_WS_TOKEN": "sk_live_…", "THREE_WS_SIGNER_KEY": "0x…" } } } } ``` Inspect the surface with the MCP Inspector: ```bash THREE_WS_TOKEN=sk_live_… npx -y @modelcontextprotocol/inspector npx @three-ws/provenance-mcp ``` ## Tools | Tool | Type | What it does | | ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------- | | `list_agent_actions` | read-only | Read an agent's action trail, newest-first, cursor-paginated. Each record is signature-checked inline. | | `query_action` | read-only | Fetch one action by id and recover its signer — proof the named agent authored that exact action, untampered. | | `append_agent_action` | **write** | ERC-191-sign a new action and append it to the immutable ledger. Never overwrites or deletes. | `append_agent_action` is the only write tool. It **appends** to an append-only ledger: every call records a new, permanent record (so it is not idempotent — don't retry blindly), and nothing is ever overwritten or removed (so it is not destructive). ### Input parameters **`list_agent_actions`**: `agent_id` (required, the agent identity's uuid), `limit` (1 to 200, default 50), `cursor` (numeric, from a previous `next_cursor`). **`query_action`**: `agent_id` (required, the agent identity's uuid), `id` (required, numeric action id). **`append_agent_action`**: `agent_id` (required, the agent identity's uuid), `type` (required, ≤64 chars), `payload` (object, optional), `source_skill` (optional), `signer_key` (optional 0x EVM key, overrides `THREE_WS_SIGNER_KEY` for this call). ## How signing & verification work When you append an action with a signer key configured, the server: 1. Builds a **canonical** form of the action — `{ v, agentId, type, payload, sourceSkill }` with recursively sorted keys, so the same logical action always produces the same bytes. 2. SHA-256 digests it and frames the digest as `threews:action:v1:
Part of the three.ws SDK suite — 3D AI agents, on-chain identity, and agent payments.
Website · Changelog · GitHub