SPR (Sealed Payment Record)
v0.3.3Seal every payment your AI agent makes as a signed record, on your own machine, with your key.
Values you need
| Variable | What it is | |
|---|---|---|
SPR_AGENT_ID | required | The agent's ID, such as agt_research |
SPR_ENTITY | required | The company the agent pays for |
SPR_DIR | optional | The book's folder (default ./spr-books); it holds the company's private key |
SPR_TIME_ZONE | optional | The company's time zone for accounting dates (default UTC) |
SPR_BINDING | optional | 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.3Add 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
- 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.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: record_intent, check_payment, record_settlement, cancel_intent, get_intent, verify_record, list_records, export_xbrl_csv, ….
- 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