PluginBench
MCP Server
Active
Apache-2.0

PEAC Protocol: Signed interaction receipts MCP Server

io.github.peacprotocol/peac

Portable signed records for agent, API, MCP, and cross-runtime interactions with offline verification.

What is the PEAC Protocol: Signed interaction receipts MCP server?

The PEAC Protocol MCP server issues and verifies portable signed interaction records for agents, APIs, and MCP tools. It enables systems to create cryptographically signed receipts of interactions—API calls, tool runs, gateway decisions, payment events, and provisioning actions—that can be verified locally and offline without relying on private logs or screenshots.

PEAC Protocol lets automated systems issue signed records of their interactions so counterparties can verify what happened, locally and offline, across organizational boundaries. The MCP server integrates PEAC record issuance and verification into MCP-based tool integrations, agent runtimes, and gateways. Use it to create auditable, tamper-evident records of tool calls, API interactions, and agent actions that persist for compliance, dispute resolution, and cross-system accountability.

How to install PEAC Protocol: Signed interaction receipts

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "peac": {
      "command": "npx",
      "args": [
        "-y",
        "@peac/mcp-server"
      ]
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • Issue PEAC records — Create signed interaction records for API calls, MCP tool runs, agent actions, gateway decisions, payment events, and provisioning events.
  • Verify records locally — Verify signed PEAC records offline using the issuer's public key, without network calls or remote verifiers.
  • Generate keypairs — Create Ed25519 keypairs for signing and verifying PEAC records.
  • Export bundles — Package records into portable bundles for audit, review, dispute, or compliance workflows.

Use cases

  • Record and verify MCP tool invocations with signed receipts for audit and compliance
  • Create tamper-evident payment records linked to x402 or other commerce flows
  • Issue gateway decision records for access control and routing with offline verification
  • Build agent-run lineage with signed records of actions, approvals, and delegations
  • Export portable evidence bundles for dispute resolution and cross-organizational accountability

PEAC Protocol: Signed interaction receipts MCP server FAQ

What is the PEAC Protocol MCP server?

It's an MCP server that integrates PEAC Protocol—a standard for portable signed interaction records—into MCP-based tool integrations and agent runtimes. It lets you issue and verify cryptographically signed records of tool calls, API interactions, and agent actions.

Is PEAC Protocol free?

Yes. PEAC Protocol is open-source software published under the Apache 2.0 license by Originary, with community contributions.

How do I install the PEAC MCP server?

Install via npm: `npm install @peac/mcp-server`. See the repository's MCP integration guide at `packages/mcp-server/README.md` for configuration and runtime setup.

What authentication or keys do I need?

You generate Ed25519 keypairs locally. The issuer holds the private key; verifiers need only the public key. No external key server or authentication service is required for offline verification.

Can I verify records offline?

Yes. PEAC records are JWS-signed and can be verified locally with the issuer's public key. No network call or remote verifier is needed.

What kinds of interactions can PEAC record?

API calls, MCP tool runs, agent actions, gateway decisions, payment events, and provisioning events. Each record type preserves the issuer's reported facts, policy context, outcome, time, and cryptographic signature.

README (reference)

Source of truth, from the repository.

PEAC Protocol

Portable signed records for agent, API, MCP, and cross-runtime interactions.

Automated systems call APIs, run tools, make gateway decisions, initiate commerce flows, and provision resources across organizational boundaries.

PEAC lets those systems issue portable signed interaction records so another party can verify what the issuer reported, locally, offline, or across system boundaries, without relying only on screenshots or private logs.

Record locally. Verify across boundaries.

License: Apache 2.0 Latest Release npm downloads CI Status

PEAC Protocol is open-source software published and maintained by Originary, with contributions from the community.

This repository contains the official source code, releases, and developer tooling distributed under the Apache-2.0 license.

Verify a record offline

Generate the shipped sample records, then verify one locally with the generated issuer key set. The verification step does not fetch keys or call a remote verifier. pnpm dlx may download the CLI if it is not already cached.

pnpm dlx @peac/cli samples generate -o ./s
pnpm dlx @peac/cli verify ./s/valid/basic-record.jws --public-key ./s/bundles/sandbox-jwks.json

Expected:

Signature valid (offline).

What PEAC records

A PEAC record is a signed statement about an interaction or challenge: what the issuing system reported, not an independently established fact.

Record familyWhat it representsFamiliar surfaces
API callrequest, response, usage, access decision, policy-visible outcomeHTTP APIs, serverless functions, internal services
MCP tool runtool name, input and output digests or references, reported result, and correlation contextMCP servers and MCP-based tool integrations
Agent actioninvoked, delegated, approved, denied, cancelled, or timed outAgent runtimes and multi-agent handoffs
Gateway decisionaccess, routing, export, or boundary decisionAPI gateways and AI gateways
Payment eventrequest, authorization, settlement observation, mandate, dispute contextCommerce flows such as x402, paymentauth, ACP, AP2, UCP
Provisioning eventcatalog, provider link, account, credential, budget, subscription, domain, deployment, or resource lifecycle eventProvisioning and resource-lifecycle systems

These are orientation examples, not partnership claims or exclusive integration targets. PEAC records what those systems report; it does not replace them.

At a high level, PEAC records can preserve:

DimensionMeaning
Factswhat the issuer reports about the interaction
Policy or contextapplicable policy, protocol, configuration, or document bindings, when present
Resulta profile-specific issuer-reported outcome
Timesigned issuance time (iat), plus optional issuer-reported event time (occurred_at) on evidence records
Issuerthe service or system that signed the record
Signaturea verifiable signature over the protected record

The required Wire 0.2 payload claims are peac_version, kind, type, iss, iat, and jti. The protected JWS header also carries the required signing and type-discrimination parameters, including alg, kid, and typ. Policy, occurred_at, actor, representation, pillars, and extensions are optional or profile-dependent. The normative envelope is defined in docs/specs/WIRE-0.2.md.

A counterparty can verify the record locally with the issuer's public key or through a self-hosted verifier. Records can also be exported into portable bundles for audit, review, dispute, or compliance workflows.

How it works

1. A system observes or reports an interaction
   API call, MCP tool run, agent action, gateway decision,
   payment event, or provisioning event

2. An issuer creates a signed PEAC record
   describing what that issuer reports about the interaction

3. A counterparty verifies the signature, structure, and accepted bindings
   locally, in CI, or through a self-hosted verifier, using the issuer's
   public key

4. The record travels
   audit review, dispute review, compliance workflow, incident
   report, exported bundle, or another system boundary

The issuer is the entity that signs the record. It may be the system that performed the work, an observer, a gateway, an adapter, or a runtime reporting an event; those roles stay separate.

Full loop: docs/HOW-IT-WORKS.md. Artifact vocabulary (record, receipt, bundle, report): docs/ARTIFACTS.md.

What PEAC does not do

PEAC does not authorize actions, validate credentials, process payments, settle transactions, operate agents, assign trust scores, or replace observability systems.

Full boundary, compared surface by surface: docs/WHERE-IT-FITS.md. Protocol scope: docs/WHAT-PEAC-STANDARDIZES.md.

Evidence workflows

Worked, offline-verifiable examples for common evidence shapes. Each adds no new wire format, schema field, or registry entry beyond what already ships. The PEAC records below preserve issuer-reported claims. Any linked payment, timestamp, transparency, or other external proof must also be evaluated under its own verification rules and trust model.

WorkflowDemonstratesStart here
Gateway decisionterminal access decisions with mandatory non-issuance for non-terminal statesprofile · example
Paid resourcex402 offer and receipt artifacts preserved in a payment recordexample
Paid MCP tooltool-call digests linked to observed payment artifactsexample
Counterparty acknowledgmentone signed record referencing another by (iss, jti, receipt_ref)example
Action approvalconsistency across reported approval and invocation recordsexample
Agent-run lineagerecords, manifest, and coverage commitment verified togetherguide
External anchoringa record digest registered or timestamped externallyguide
Spend attributionissuer-observed amounts associated with a workflowguide
Merkle commitmentoffline inclusion in a committed sorted setspec

These workflows establish signature validity and the internal consistency of the supplied evidence. They do not, by themselves, establish settlement finality, approver authority, accounting correctness, real-world completeness, or the validity of an underlying event.

Full recipe catalog: docs/SOLUTIONS/. Full example catalog: examples/README.md.

Choose your path

GoalStart here
Issue records from an APIAPI Provider Quickstart
Integrate MCP toolsMCP Integration Kit
Record agent or runtime actionsAgent Operator Quickstart
Record terminal gateway decisionsGateway Decision Evidence
Preserve commerce evidenceCommerce evidence bundle or MCP gateway records
Record provisioning eventsProvisioning lifecycle records
Verify a recordVerification options or offline sample index
Review security and operational evidenceTrust-artifact index

Full path-by-role tree: docs/START_HERE.md.

Use PEAC in code

pnpm add @peac/protocol

@peac/protocol re-exports the common crypto helpers, so a single package covers key generation, issuance, and local verification. The example below issues one concrete payment record; the same issuance and local-verification path applies to other PEAC record profiles.

import { generateKeypair, issue, verifyLocal } from '@peac/protocol';

const ISSUER = 'https://api.example.com';

async function main(): Promise<void> {
  // The issuer holds the private key; a verifier needs only the public key.
  const { privateKey, publicKey } = await generateKeypair();

  // Issue one signed record in the current Interaction Record Format.
  const { jws } = await issue({
    iss: ISSUER,
    kind: 'evidence',
    type: 'org.peacprotocol/payment',
    pillars: ['commerce'],
    extensions: {
      'org.peacprotocol/commerce': {
        payment_rail: 'x402',
        amount_minor: '1000',
        currency: 'USD',
      },
    },
    privateKey,
    kid: 'https://api.example.com/keys/1',
  });

  // Verify locally with the public key, binding the expected issuer. No network
  // request is made: the key is supplied here, not discovered remotely.
  const result = await verifyLocal(jws, publicKey, { issuer: ISSUER });

  if (!result.valid) {
    throw new Error(`verification failed: ${result.code} ${result.message}`);
  }

  console.log(`verified record from ${result.claims.iss}`);
  console.log(`kind: ${result.claims.kind}, type: ${result.claims.type}`);
}

main().catch((error: unknown) => {
  console.error(error);
  process.exitCode = 1;
});

Expected:

verified record from https://api.example.com
kind: evidence, type: org.peacprotocol/payment

For a longer walkthrough that also reads back typed extensions, see examples/minimal/ (pnpm --filter @peac/example-minimal demo). Full CLI command catalog: packages/cli/README.md.

Run repository examples

These commands are repo-local: clone the repository, install, and build first.

pnpm install --frozen-lockfile
pnpm build
pnpm demo:all

pnpm demo:all runs the start-here examples end to end. Individually:

  • Minimal example: pnpm --filter @peac/example-minimal demo
  • MCP gateway records: pnpm --filter @peac/example-mcp-gateway-receipts demo and pnpm --filter @peac/example-mcp-gateway-receipts demo:tamper
  • Gateway decision evidence: pnpm --filter @peac/example-gateway-decision-evidence demo and pnpm --filter @peac/example-gateway-decision-evidence demo:tamper
  • Provisioning lifecycle: pnpm --filter @peac/example-provisioning-lifecycle run issue and pnpm --filter @peac/example-provisioning-lifecycle run verify
  • MCP server: see the @peac/mcp-server guide
  • Self-hosted reference verifier: surfaces/reference-verifier/

Implementations and runtime support

RuntimeStatusNotes
TypeScript / Node.jsCanonicalIssuance and verification (@peac/protocol, @peac/crypto, @peac/cli). Node 24 is the canonical tested runtime; Node >=22.13.0 is supported.
GoSupportedRecord issuance and local verification (sdks/go/): Ed25519, RFC 8785 JCS. Requires Go 1.26+.
PythonExamples onlyAPI-first examples for the verifier using standard HTTP. An OpenAPI specification is available, but there is no first-party Python SDK.

PEAC is pre-1.0. Stability is defined per surface in the Stability Contract, not by this table. This README is informative; normative requirements live in the Spec Index.

Operational and enterprise review

PEAC supports audit and compliance workflows built on portable signed records. Using PEAC does not itself establish compliance with any regulation, framework, or certification.

Verification requires signature validation before relying on record claims. verifyLocal() and the documented CLI --public-key path do not silently fall back to issuer discovery or other network access. Remote key-discovery paths apply SSRF protections and bounded resource limits.

NeedRead
Trust-artifact indexdocs/TRUST-ARTIFACTS.md
Supported versions and disclosure processSECURITY.md
Threat model and mitigationsdocs/THREAT_MODEL.md
Stability classes and archived surfacesdocs/STABILITY-CONTRACT.md
Compatibility and deprecation statusdocs/COMPATIBILITY_MATRIX.md
Conformance requirements and coveragedocs/specs/CONFORMANCE-MATRIX.md
Benchmark methodology and measured baselinesdocs/BENCHMARK-METHODOLOGY.md, docs/SLO.md
External standards referenced or implementeddocs/STANDARDS_LEDGER.md
Privacy-aware deployment guidancedocs/privacy/README.md
Key custody and tenancy modeldocs/KEY-CUSTODY-AND-TENANCY.md
Release integrity and provenancedocs/maintainers/RELEASE-INTEGRITY.md

The reference verifier is self-hostable. Verification can also be performed locally whenever the record and the issuer's public key are available.

Protocol status and versioning

  • Current format: Interaction Record Format 0.2 (interaction-record+jwt; repository shorthand: Wire 0.2).
  • Legacy: peac-receipt/0.1 (Wire 0.1) is frozen and legacy-only; verifyLocal() returns E_UNSUPPORTED_WIRE_VERSION on legacy input.

Full doctrine: docs/specs/VERSIONING.md.

Contributing and license

Bug fixes, documentation, tests, and interoperability reports are welcome as pull requests. Changes to the wire format, schemas, registries, or public API need a design discussion first: open an issue before sending the pull request.

Apache-2.0. See LICENSE.


PEAC Protocol is open-source software published and maintained by Originary, with contributions from the community.

It is licensed under Apache-2.0 and may be independently implemented and self-hosted. Use and verification do not require an Originary-hosted service.

Docs · GitHub · Discussions

Related MCP servers

PEPeak Answer logo

Whether AI search recommends your brand, which questions rivals win, and why engines skip your site.

0
View repository →
INInvoiceIn logo

InvoiceIn

Active

XRechnung, Factur-X, Peppol, PINT AE, FatturaPA, KSeF → JSON + fix hints. Hosted; MIT=examples only

0
Python
MIT
View repository →
PEPedra logo

Pedra

Maintained

AI real-estate photo editing via the Pedra API: virtual staging, renovation, enhancement, video.

1
TypeScript
MIT
View repository →

MCP de solo lectura del directorio, Radar y Observatorio de humanista.digital.

MCP server for Android automation with UI interaction, screenshots, and device control

5
Python
View repository →

Consultas e operações de viagens e solicitações no Gover para a conta autenticada.

View repository →