three.ws Provenance

v0.1.3
io.github.nirholas/provenance-mcp Checked 1 hour ago Published 1 month ago

Append-only, signed, on-chain-verifiable agent action log — record and audit what agents did.

Values you need

VariableWhat it is
THREE_WS_BASEoptional Base URL of the three.ws API that serves the agent-actions ledger. Override only when self-hosting or targeting a preview deployment. Default: https://three.ws
THREE_WS_TIMEOUT_MSoptional Per-request timeout in milliseconds for the ledger reads/appends. Default: 20000
THREE_WS_TOKENrequired secret Bearer token authenticating every call — a three.ws API key (sk_live_…) or an OAuth access token. The ledger is owner-scoped: you can read and append actions only for agents your token owns. Required for all three tools. Treat like a password.
THREE_WS_SIGNER_KEYoptional secret Optional 0x-prefixed EVM private key. When set, append_agent_action ERC-191-signs each action so anyone can ecrecover the signer and verify authorship on-chain. A per-call `signer_key` arg overrides it. Omit to append unsigned. Treat like cash.

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add provenance-mcp -e 'THREE_WS_TOKEN=<THREE_WS_TOKEN>' -- npx -y @three-ws/provenance-mcp@0.1.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "provenance-mcp": {
      "args": [
        "-y",
        "@three-ws/provenance-mcp@0.1.3"
      ],
      "command": "npx",
      "env": {
        "THREE_WS_TOKEN": "<THREE_WS_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "provenance-mcp": {
      "args": [
        "-y",
        "@three-ws/provenance-mcp@0.1.3"
      ],
      "command": "npx",
      "env": {
        "THREE_WS_TOKEN": "<THREE_WS_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "THREE_WS_TOKEN",
      "id": "three-ws-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "provenance-mcp": {
      "args": [
        "-y",
        "@three-ws/provenance-mcp@0.1.3"
      ],
      "command": "npx",
      "env": {
        "THREE_WS_TOKEN": "${input:three-ws-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.provenance-mcp]
command = "npx"
args = ["-y", "@three-ws/provenance-mcp@0.1.3"]
env = { "THREE_WS_TOKEN" = "<THREE_WS_TOKEN>" }

For AI agents

  1. Ask the user for: THREE_WS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_agent_actions, query_action, append_agent_action.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json