🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@agent-receipts/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agent-receipts/mcp-server

Local-first MCP server for Agent Receipts — storage, engine, and protocol

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

@agent-receipts/mcp-server

Local-first MCP server for Agent Receipts. Cryptographically signed, verifiable proof for every AI agent action. No hosted server required.

Quick Start

Add to your MCP client config and every agent action gets a cryptographic receipt automatically.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "agent-receipts": {
      "command": "npx",
      "args": ["@agent-receipts/mcp-server"]
    }
  }
}

Claude Code

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "agent-receipts": {
      "command": "npx",
      "args": ["@agent-receipts/mcp-server"]
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "agent-receipts": {
      "command": "npx",
      "args": ["@agent-receipts/mcp-server"]
    }
  }
}

Tools

The MCP server exposes 24 tools:

ToolDescriptionKey Parameters
track_actionTrack an agent action with automatic hashingaction, input, output, constraints
create_receiptCreate a receipt with pre-computed hashesaction, input_hash, output_hash, constraints
complete_receiptComplete a pending receipt with resultsreceipt_id, output, status
verify_receiptVerify the cryptographic signature of a receiptreceipt_id
get_receiptRetrieve a receipt by IDreceipt_id
list_receiptsList receipts with optional filteringagent_id, status, chain_id
get_chainGet all receipts in a chain ordered by timestampchain_id
get_public_keyExport the Ed25519 public key for verification
judge_receiptStart AI Judge evaluation of a receiptreceipt_id, rubric
complete_judgmentComplete a pending judgment with resultsreceipt_id, verdict, score, criteria
get_judgmentsGet all judgments for a receiptreceipt_id
cleanupDelete expired receipts (TTL)dry_run
generate_invoiceGenerate an invoice from receiptsfrom, to, format, agent_id
get_startedShow a getting-started guide with usage examples--
memory_observeStore a memory observation about an entityentity_name, entity_type, content, ttl_seconds
memory_recallSearch and retrieve stored memoriesquery, entity_type, scope
memory_forgetSoft-delete an observation or entityentity_id or observation_id
memory_entitiesList known entities with filteringentity_type, scope, query
memory_relateCreate a relationship between two entitiesfrom_entity_id, to_entity_id, relationship_type
memory_provenanceGet the provenance chain for an observationobservation_id
memory_contextGet a structured memory context summaryentity_type, scope, agent_id
memory_auditGenerate a memory operations audit reportagent_id, from, to
memory_export_bundleExport memories as a portable, verifiable bundleentity_ids, include_receipts
memory_import_bundleImport and verify a memory bundlebundle, skip_existing

Configuration

Environment VariableDescriptionDefault
AGENT_RECEIPTS_DATA_DIRData directory path~/.agent-receipts
AGENT_RECEIPTS_AGENT_IDDefault agent IDdefault-agent
AGENT_RECEIPTS_ORG_IDOrganization IDdefault-org
AGENT_RECEIPTS_ENVIRONMENTEnvironment labelproduction
RECEIPT_SIGNING_PRIVATE_KEYEd25519 private key (hex)Auto-generated
RECEIPT_SIGNING_PUBLIC_KEYEd25519 public key (hex)Derived from private

Programmatic Usage

The engine and storage classes are exported for use by @agent-receipts/sdk and custom integrations:

import { ReceiptEngine, ReceiptStore, KeyManager, ConfigManager } from '@agent-receipts/mcp-server'

const store = new ReceiptStore('/path/to/data')
await store.init()
const keyManager = new KeyManager('/path/to/data')
await keyManager.init()
const configManager = new ConfigManager('/path/to/data')
await configManager.init()
const engine = new ReceiptEngine(store, keyManager, configManager)

const receipt = await engine.track({ action: 'my_action', input: 'data' })

License

MIT

Keywords

agent-receipts

FAQs

Package last updated on 12 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts