SPR (Sealed Payment Record)

v0.3.3
network.luca/spr-mcp Checked 2 days ago Published 4 days ago

Seal every payment your AI agent makes as a signed record, on your own machine, with your key.

Values you need

VariableWhat it is
SPR_AGENT_IDrequired The agent's ID, such as agt_research
SPR_ENTITYrequired The company the agent pays for
SPR_DIRoptional The book's folder (default ./spr-books); it holds the company's private key
SPR_TIME_ZONEoptional The company's time zone for accounting dates (default UTC)
SPR_BINDINGoptional on, to return the nonce to sign with each x402 intent

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add spr-mcp -e 'SPR_AGENT_ID=<SPR_AGENT_ID>' -e 'SPR_ENTITY=<SPR_ENTITY>' -- npx -y @luca-network/spr-mcp@0.3.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "spr-mcp": {
      "args": [
        "-y",
        "@luca-network/spr-mcp@0.3.3"
      ],
      "command": "npx",
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "spr-mcp": {
      "args": [
        "-y",
        "@luca-network/spr-mcp@0.3.3"
      ],
      "command": "npx",
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SPR_AGENT_ID",
      "id": "spr-agent-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "SPR_ENTITY",
      "id": "spr-entity",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "spr-mcp": {
      "args": [
        "-y",
        "@luca-network/spr-mcp@0.3.3"
      ],
      "command": "npx",
      "env": {
        "SPR_AGENT_ID": "${input:spr-agent-id}",
        "SPR_ENTITY": "${input:spr-entity}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.spr-mcp]
command = "npx"
args = ["-y", "@luca-network/spr-mcp@0.3.3"]
env = { "SPR_AGENT_ID" = "<SPR_AGENT_ID>", "SPR_ENTITY" = "<SPR_ENTITY>" }

For AI agents

  1. Ask the user for: SPR_AGENT_ID, SPR_ENTITY. 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: record_intent, check_payment, record_settlement, cancel_intent, get_intent, verify_record, list_records, export_xbrl_csv, ….
  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