PEAC Protocol: Signed interaction receipts

io.github.peacprotocol由 GitHub 帳號 peacprotocol 發布v0.15.0更新於 Oct 24, 2026

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

發布方自己的服務:Signed

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

本機 MCP 伺服器,處理 PEAC 簽章互動紀錄,讓助理驗證、檢視、解碼、簽發並打包可攜式簽章回執。

可以做什麼
  • 依政策與公開金鑰驗證 PEAC 簽章互動紀錄
  • 在不驗證的情況下檢視紀錄,並解碼回執 JWS 標頭與內容以進行診斷
  • 在設定簽發金鑰與簽發者識別後,依提供的聲明簽發新的簽章紀錄
  • 在設定打包目錄後,以簽章紀錄與相關產物建立證據包
  • 回傳含錯誤碼、復原提示與稽核中繼資料區塊的結構化輸出
適用情境
適合智慧代理或 LLM 應用需要查核、解碼或產生可攜式互動簽章紀錄時使用,例如確認回執真偽,或為日後稽核自行簽發回執。
執行需求
以 npm 套件形式在本機透過 stdio 執行(亦可選用本機 Streamable HTTP,預設埠 3000、綁定 127.0.0.1)。需要 Node.js 與 npx。唯讀工具無需任何設定;簽發需透過簽發金鑰選項(環境變數或檔案參照)提供 Ed25519 簽章金鑰並指定簽發者識別,打包另需指定輸出目錄。
安裝前請注意
簽發與打包需要私密金鑰;伺服器聲明不做隱含金鑰探索,金鑰必須明確提供並妥善保護。簽發紀錄與寫入證據包會在磁碟上產生資料。HTTP 傳輸預設僅綁定本機並拒絕所有 CORS;變更綁定位址、CORS 來源或代理信任設定會擴大暴露範圍。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 PEAC Protocol: Signed interaction receipts,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@peac/mcp-server

Local MCP server for PEAC signed interaction records. It exposes tools to verify, inspect, decode, issue, and bundle PEAC records through stdio or the local Streamable HTTP transport.

Installation

bash
pnpm add @peac/mcp-server

Or run directly:

bash
npx @peac/mcp-server

What It Does

@peac/mcp-server exposes PEAC signed interaction record operations as Model Context Protocol (MCP) tools that AI agents and LLM-based applications can call. It supports both stdio and Streamable HTTP transports, with static policy checks, concurrency limits, input size guards, and structured error responses with recovery hints.

How Do I Use It?

Add to Claude Desktop

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

json
{  "mcpServers": {    "peac": {      "command": "npx",      "args": ["-y", "@peac/mcp-server"]    }  }}

Add to Cursor or Windsurf

Add to .mcp.json at your project root:

json
{  "mcpServers": {    "peac": {      "command": "npx",      "args": ["-y", "@peac/mcp-server"]    }  }}

Streamable HTTP transport

bash
npx @peac/mcp-server --transport http --port 3000

HTTP transport provides per-session isolation, rate limiting, and RFC 9728 PRM discovery. Binds to 127.0.0.1 by default. See examples/mcp-http-quickstart/ for an end-to-end demo.

Enable receipt issuance

bash
npx @peac/mcp-server \  --issuer-key env:PEAC_ISSUER_KEY \  --issuer-id https://example.com

Start with HTTP transport

bash
npx @peac/mcp-server --transport http --port 3000

CLI options

FlagDescriptionDefault
--transport <type>Transport: stdio or httpstdio
--port <number>HTTP port3000
--host <address>HTTP bind address127.0.0.1
--issuer-key <ref>Issuer key reference (env:VAR or file:/path)None
--issuer-id <uri>Issuer identifier URINone
--policy <path>Policy configuration file pathBuilt-in default
--jwks-file <path>JWKS file for verifier key resolutionNone
--bundle-dir <path>Directory for evidence bundle outputNone
--cors-origins <list>Allowed CORS origins (comma-separated, HTTP only)None
--trust-proxy <value>Trust X-Forwarded-For (off, loopback, private)off

Programmatic usage

Handlers can be used directly without the MCP server binding:

typescript
import { createPeacMcpServer, handleVerify } from '@peac/mcp-server';import { getDefaultPolicy, computePolicyHash } from '@peac/mcp-server';
const policy = getDefaultPolicy();const policyHash = await computePolicyHash(JSON.stringify(policy));
const result = await handleVerify({  input: { jws: 'eyJ...', public_key_base64url: '...' },  policy,  context: {    version: '0.16.5',    policyHash,    protocolVersion: '2025-11-25',  },});

Available tools

ToolDescriptionAvailability
peac_verifyVerify a PEAC signed interaction record.Always
peac_inspectInspect a PEAC signed interaction record without verification.Always
peac_decodeDecode a PEAC receipt JWS header and payload for diagnostics.Always
peac_issueIssue a PEAC signed interaction record from provided claims.Requires --issuer-key and --issuer-id
peac_create_bundleCreate a PEAC bundle from signed records and related artifacts.Requires --issuer-key, --issuer-id, and --bundle-dir

All structured tool outputs include a schema-declared _meta audit block with serverVersion, policyHash, protocolVersion, and registeredTools. This is separate from the top-level MCP _meta carrier used by @peac/mappings-mcp to attach PEAC receipt references.

Integrates With

  • @peac/protocol (Layer 3): signed-record issuance and verification
  • @peac/crypto (Layer 2): JWS signing and decoding
  • @peac/schema (Layer 1): Receipt schema validation
  • @peac/kernel (Layer 0): Error codes and constants
  • @modelcontextprotocol/sdk: MCP server and transport bindings

For Agent Developers

Connect your agent to this server over stdio or HTTP to gain signed-record verification, receipt decoding, and issuance capabilities. The tools use structured outputs with error codes and next_action recovery hints so your agent can handle failures programmatically. Every response includes _meta for audit and traceability.

Read-only tools (peac_verify, peac_inspect, peac_decode) are available with no configuration. To enable issuance, provide an Ed25519 signing key via --issuer-key and --issuer-id.

For Operators

The server applies static policy checks with configurable concurrency limits, input size bounds, JWS size caps, and tool timeouts. HTTP transport binds to localhost by default with CORS deny-all. The stdout fence prevents non-JSON-RPC output from corrupting the stdio transport.

Security properties: no ambient key discovery (keys must be explicitly provided), no implicit network fetches from tool handlers, path traversal prevention on bundle output, and session isolation on HTTP transport.

License

Apache-2.0


PEAC Protocol is an open source project stewarded by Originary and community contributors.

Docs | GitHub | Originary

來源:packages/mcp-server/README.md,提交 92956eb

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.15.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Signed 整合