Audit Trail

io.github.PiQrypt由 GitHub 账号 PiQrypt 发布v1.5.2更新于 Oct 24, 2026

Cryptographic audit trail for AI agents. Sign, verify, export. GDPR/HIPAA/EU AI Act.

发布方自己的服务:audit.domains - Domain Valuation

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

PiQrypt Audit Trail 通过 MCP 为 AI 代理的决策提供签名、验证、导出与检索的加密审计链。

可以做什么
  • 用代理标识与载荷对代理决策进行签名,生成带哈希链的加密事件
  • 验证一串已签名事件的完整性并返回错误信息
  • 按代理导出审计记录用于合规,可选择申请认证,输出 JSON 或 pqz 格式
  • 通过本地 SQLite 索引按事件类型和时间范围检索已签名事件
  • 首次签名时自动创建代理,可在独立的 Vigil 面板中查看或删除代理
适用场景
适合需要对 AI 决策留下可防篡改、可导出记录的场景,例如交易或资金操作审批、AI 辅助招聘、多代理内容归属证明、CI/CD 变更记录,以及有合规要求的医疗建议。
运行要求
以 stdio 方式在本机运行。需要 Node.js 18+ 安装 npm 包,并需要 Python 3.8+ 及已安装的 piqrypt 包,所有加密操作都交由它完成。若 piqrypt 装在虚拟环境中,需将 PIQRYPT_PYTHON 指向该解释器。未声明账号、API 密钥或请求头。可选的 Vigil 面板需另行启动。
安装前请注意
签名会把带签名的记录和代理密钥写入本机用户主目录;删除代理会永久移除其密钥与事件历史。载荷以哈希形式而非原文存储,但决策数据仍会经过本地 Python 桥接层。认证及更长历史、后量子签名等 Pro 功能属于付费升级。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Audit Trail,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

PiQrypt MCP Server

Cryptographic Audit Trail for AI Agents via Model Context Protocol

[MCP] [npm downloads] [AISS] [License] [Python] [Node] [Add to Cursor] [Install in Claude]

🚀 What is PiQrypt MCP?

PiQrypt MCP Server provides Model Context Protocol access to PiQrypt — the post-quantum cryptographic audit trail for AI agents.

Use cases:

  • 🤖 AI Agents: Sign every decision with cryptographic proof
  • 📊 n8n Workflows: Add audit trail to automation workflows
  • 🏦 Trading Bots: SEC/FINRA compliance for automated trading
  • 👥 HR Automation: GDPR-compliant AI hiring decisions
  • 🏥 Healthcare AI: HIPAA audit trail for medical decisions

📦 Installation

Prerequisites

1. Install piqrypt (required — Python 3.8+)

bash
pip install piqrypt

The MCP server delegates all cryptographic operations to the piqrypt Python package. If it is not installed, the server will return a clear error on every tool call.

2. Install the MCP server (Node.js 18+)

bash
npm install -g @piqrypt/mcp-server

Install via npx (no global install)

bash
npx @piqrypt/mcp-server

Build from source

bash
git clone https://github.com/piqrypt/piqrypt-mcp-servercd piqrypt-mcp-servernpm installnpm run build

PIQRYPT_PYTHON — custom Python environment

By default the server uses python3 (Linux/Mac) or python (Windows). If piqrypt is installed in a virtual environment, set this variable to point to the right interpreter:

Windows

cmd
set PIQRYPT_PYTHON=C:\path\to\venv\Scripts\python.exe

Linux / Mac

bash
export PIQRYPT_PYTHON=/path/to/venv/bin/python

To make it persistent, add it to your MCP client configuration:

json
{  "mcpServers": {    "piqrypt": {      "command": "piqrypt-mcp-server",      "args": [],      "env": {        "PIQRYPT_PYTHON": "/path/to/venv/bin/python"      }    }  }}

⚙️ Configuration

Claude Desktop

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

json
{  "mcpServers": {    "piqrypt": {      "command": "piqrypt-mcp-server",      "args": []    }  }}

n8n (v1.88+)

  1. Install n8n MCP integration
  2. Add PiQrypt MCP server to configuration
  3. Use in workflows via MCP node

Compatible with

MCP clients

ClientVersionNotes
Any MCP-compatible clientMCP spec 2024-11+stdio transport
n8n1.88+via MCP node
Cursoranyadd to mcp settings
VS Codeanyadd to mcp settings
Continueanyadd to mcp settings
Windsurfanyadd to mcp settings

Automation platforms (via MCP node)

PlatformIntegrationUse case
n8nMCP node (native)No-code audit trail
Make.comHTTP moduleWebhook-triggered stamping
ZapierWebhooks + HTTPBasic event recording

What you can audit with PiQrypt MCP

Every tool call goes through the same 4 operations — stamp, verify, export, search. Here is what that means in practice depending on your context:

Automated trading / finance Any agent that submits orders, rebalances portfolios, or triggers transactions can stamp each decision before execution. The signed chain is exportable for SEC/FINRA audit without any additional infrastructure.

HR and hiring automation Any workflow that evaluates candidates, scores CVs, or routes applicants can stamp each decision. Provides a GDPR Art.22 compliant audit trail for AI-assisted hiring — who decided what, when, and what data was used (hashed, never stored raw).

Content and publishing pipelines Any agent that drafts, approves, or publishes content can stamp each step. Useful when multiple AI agents collaborate and you need to prove attribution — which agent wrote what, in what order.

DevOps and CI/CD Any agent that triggers deployments, merges branches, or rotates secrets can stamp each action. Provides a tamper-evident record of infrastructure changes made by autonomous agents.

Healthcare and medical AI Any diagnostic or triage agent can stamp each recommendation. Provides a HIPAA-compliant audit trail linking each AI output to a verifiable agent identity.

The common pattern in all cases:

[Agent makes decision]↓piqrypt_stamp_event    ← sign + chain↓[Agent executes action]↓piqrypt_export_audit   ← portable proof, verifiable                          without PiQrypt installed

🛠️ Available Tools

1. piqrypt_stamp_event

Sign an AI decision with cryptographic proof.

Parameters:

  • agent_id (string, required): Agent identifier
  • payload (object, required): Decision data
  • previous_hash (string, optional): Previous event hash for chaining

Example:

typescript
const event = await mcp.call('piqrypt_stamp_event', {  agent_id: 'trading_bot_v1',  payload: {    action: 'buy',    symbol: 'AAPL',    quantity: 100,    price: 150.25  }});

Returns:

json
{  "version": "AISS-1.0",  "agent_id": "trading_bot_v1",  "timestamp": 1739382400,  "nonce": "uuid-...",  "payload": { ... },  "previous_hash": "sha256:...",  "signature": "base64:..."}

2. piqrypt_verify_chain

Verify integrity of event chain.

Parameters:

  • events (array, required): Events to verify

Example:

typescript
const result = await mcp.call('piqrypt_verify_chain', {  events: [event1, event2, event3]});

Returns:

json
{  "valid": true,  "events_count": 3,  "chain_hash": "sha256:...",  "errors": []}

3. piqrypt_export_audit

Export audit trail for compliance.

Parameters:

  • agent_id (string, required): Agent to export
  • certified (boolean): Request PiQrypt certification
  • output_format (string): json or pqz

Example:

typescript
const audit = await mcp.call('piqrypt_export_audit', {  agent_id: 'trading_bot_v1',  certified: true,  output_format: 'json'});

4. piqrypt_search_events

Fast search via SQLite index.

Parameters:

  • event_type (string, optional): Filter by type
  • from_timestamp (number, optional): Start time
  • to_timestamp (number, optional): End time
  • limit (number): Max results (default: 100)

Example:

typescript
const trades = await mcp.call('piqrypt_search_events', {  event_type: 'trade_executed',  from_timestamp: 1739300000,  limit: 50});

📊 Vigil Dashboard (optional, free)

Every stamped event is visible in Vigil — PiQrypt's local monitoring dashboard.

Note: Vigil is not launched automatically by the MCP server. You must start it separately before opening the dashboard.

bash
piqrypt vigil# → http://localhost:8421

Free tier includes: chain health, VRS risk score, 7-day history, CRITICAL alerts. Upgrade to Pro for 90-day history, TrustGate governance, and post-quantum signatures.


🗑️ Managing Agents

Agents are created automatically on first stamp. To view and delete agents:

  1. Start Vigil: piqrypt vigil
  2. Open http://localhost:8421
  3. Go to All Agents view
  4. Check the agents to delete → click ✕ Delete selected
  5. Confirm — Vigil returns to the welcome screen when no agents remain

Agents are stored in ~/.piqrypt/agents/ on your machine. Deleting an agent removes its keys and event history permanently.


🔒 Security Model

Process Isolation

┌─────────────────────────────────────┐│  MCP Client (any MCP-compatible client)     ││  ↓ JSON-RPC over stdio              │├─────────────────────────────────────┤│  MCP Server (TypeScript/Node.js)    │  ← No crypto here│  ↓ subprocess call                  │├─────────────────────────────────────┤│  Python Bridge (bridge.py)          ││  ↓ invokes CLI                      │├─────────────────────────────────────┤│  PiQrypt CLI (Python)               ││  ↓ uses                             │├─────────────────────────────────────┤│  Core Crypto (aiss package)         │  ← All crypto here│  • Ed25519 / Dilithium3             ││  • RFC 8785 canonical JSON          ││  • Hash chains                      │└─────────────────────────────────────┘

Guarantees

✅ Private keys never exposed to MCP layer
✅ All crypto in Python (Ed25519, Dilithium3)
✅ Same security as CLI (process isolation)
✅ RFC AISS-1.1 compliant (identical output)
✅ Input validation before subprocess call


📚 Examples

Trading Bot (n8n)

[Webhook: price alert]     ↓[AI Decision: buy/sell?]    ↓[PiQrypt MCP: stamp decision]  ← Audit trail    ↓[Execute trade API]    ↓[Database: store proof]

HR Automation

[Upload CV]    ↓[AI Agent: evaluate candidate]    ↓[PiQrypt MCP: stamp evaluation]  ← GDPR compliance    ↓[Email HR team]

🧪 Testing

bash
# Buildnpm run build
# Test bridgepython3 src/python/bridge.py stamp '{"agent_id":"test","payload":{"action":"test"}}'
# Test MCP server (manual)node dist/index.js# Then send MCP request via stdin

🔧 Troubleshooting

Error: piqrypt is not installed in this Python environment

The Python interpreter used by the MCP server cannot find the piqrypt package.

Fix:

bash
pip install piqrypt

If piqrypt is installed in a virtual environment and not the system Python, set PIQRYPT_PYTHON to point to the correct interpreter:

bash
# Linux / Macexport PIQRYPT_PYTHON=/path/to/venv/bin/python
# Windowsset PIQRYPT_PYTHON=C:\path\to\venv\Scripts\python.exe

To verify which Python the server will use:

bash
# Linux / Mac$PIQRYPT_PYTHON -c "import aiss; print('ok')"
# Windows%PIQRYPT_PYTHON% -c "import aiss; print('ok')"

📖 Documentation


🤝 Contributing

We welcome contributions! See CONTRIBUTING.md.


📄 License

MCP Server → MIT License - see LICENSE PiQrypt Core → free tier + commercial tiers


🔗 Links


Built with ❤️ by PiQrypt Inc.

来源:README.md,提交 4a16a32

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.5.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Audit 集成