原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

ai-audit-trail

作者:sundsoffice-tech版本 0.4.7i★ –i在你的电脑上运行
注册名称io.github.sundsoffice-tech/ai-audit-trail

安装

概览

作者提供的说明(英文原文)

Tamper-evident audit trails for AI agents — Ed25519-signed, hash-chained, EU AI Act ready.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "ai-audit-trail": {
      "command": "uvx",
      "args": [
        "ai-audit-trail"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add ai-audit-trail -- uvx ai-audit-trail

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "ai-audit-trail": {
      "command": "uvx",
      "args": [
        "ai-audit-trail"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "ai-audit-trail": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ai-audit-trail"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 sundsoffice-tech 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18677 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18677 个服务器的 7% 更新
  • 基础检查结果等于或优于此分类中其他 18677 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

ai-audit-trail 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.4.7)于6个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Agilitycms MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

作者:formulahendry起步阶段↓ 66/周★ 44014个月前更新

在你的电脑上运行

Remote Desktop Commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

作者:desktop-commander正在增长★ 2114天前更新

在云端运行✓ desktopcommander.app

Agilitycms MCP

An MCP server that provides access to Agility CMS. See https://mcp.agilitycms.com for more details.

作者:agility起步阶段今天更新

在云端运行✓ agilitycms.com

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

ai-audit-trail

Prove what your AI did, why, and that nobody changed the record.

Tamper-evident Decision Receipts with Ed25519 signatures, SHA-256 hash-chains,

and formal compliance mappings. No blockchain, no SaaS, no lock-in.

Self-hosted, offline-verifiable, Python-native.


Why this exists

The EU AI Act becomes mandatory for high-risk AI systems in August 2026. It requires tamper-evident logs proving every decision was made correctly (Art. 12). Most teams are solving this with normal logging — which is neither tamper-evident nor legally defensible in an audit.

ai-audit-trail closes this gap with cryptographic receipts that any auditor can verify offline, without accessing your systems. Same principle as a blockchain — without the blockchain overhead, the SaaS dependency, or the vendor lock-in.

Who is this for

  • Regulated AI teams (FinTech, HealthTech, LegalTech, InsurTech) who must prove compliance
  • Enterprise platform teams deploying LLM agents with tool access
  • Security and compliance officers who need audit-ready evidence packages
  • Developers who want pip install and 3 lines of code, not a platform migration

What this library provides

ai-audit-trail provides the technical building blocks that support EU AI Act, ISO 42001, and NIST AI RMF compliance. It does not, by itself, guarantee regulatory compliance — compliance is an organizational obligation that extends beyond any single software component. See our Shared Responsibility Model below.


Installation

pip install ai-audit-trail                    # Core (Ed25519 + SHA-256 + PII)

pip install "ai-audit-trail[redis]" # + Redis persistence pip install "ai-audit-trail[otel]" # + OpenTelemetry metrics pip install "ai-audit-trail[all]" # Everything

Requirements: Python 3.11+ | No external services required | Works air-gapped


Quickstart

from ai_audit import (

AuditConfig, init_audit_config, ReceiptCollector, ReceiptStore, ReceiptAction, verify_chain, get_verify_key_hex, )

1. Configure once at startup

init_audit_config(AuditConfig(is_production=False)) store = ReceiptStore()

2. Wrap every AI request

collector = ReceiptCollector(trace_id="req-1", tenant_id="acme") collector.set_input("What is our GDPR policy?") collector.add_check("safety", score=0.02, threshold=0.8, fired=False) collector.set_output("Our GDPR policy states that...") collector.set_action(ReceiptAction.ALLOW) collector.emit(store) collector.cleanup()

3. Verify tamper-evidence

result = verify_chain(store.get_by_tenant("acme"), get_verify_key_hex()) assert result.valid # Ed25519 + SHA-256 + hash-chain verified


Architecture Overview

Receipt Creation        Verification & Compliance       Agentic AI Audit

───────────────── ────────────────────────── ────────────────── ReceiptCollector ──> verify_chain() ToolCallReceipt set_input() build_compliance_summary() TraceGraph (DAG) add_check() build_crosswalk() BehavioralContract set_output() export_evidence_package() ProvenanceChain set_action() SPRTMonitor emit() DriftMonitor │ EpochManager v ReceiptStore ──> StorageBackend ABC (in-memory LRU) InMemoryBackend

  • Redis (optional) (your custom backends)
  • AuditBuffer

Core Features

Decision Receipts (Ed25519 + SHA-256 + Hash-Chain)

Every AI pipeline decision produces a Decision Receipt — a cryptographically sealed, hash-chained record:

What's provenHow
Input integritySHA-256 of NFKC-normalized, PII-stripped input
Output integritySHA-256 of generated output
Check resultsOrdered check records with scores and thresholds
DecisionAction taken (ALLOW / REJECT / ESCALATE / ...)
Model provenanceModel ID + config digest
Non-repudiationEd25519 signature (libsodium)
OrderingHash-chain linkage (prev_receipt_hash)

Three-stage verification (< 0.1 ms per receipt):

Ed25519 signature  →  detects forgery

SHA-256 self-hash → detects corruption Hash-chain link → detects insertions / deletions / reordering

PII Redaction (GDPR Art. 17)

Personal data is stripped before hashing — the audit log never contains raw PII.

from ai_audit import PiiConfig, PiiMode, PiiType

config = PiiConfig( enabled_types=frozenset({PiiType.EMAIL, PiiType.PHONE, PiiType.IP}), mode=PiiMode.REDACT, # or HASH (SHA-256) or MASK (a***m) ) collector = ReceiptCollector(tenant_id="acme", pii_config=config)

Modealice@corp.com becomes
REDACT[EMAIL]
HASH3d4e5f8a... (deterministic SHA-256)
MASKa***@c***.com
Crypto-Shredding (GDPR Right to Erasure)

Encrypt PII fields with per-tenant AES-256-GCM keys. Destroy the key = data permanently unreadable, hash-chain intact.

from ai_audit.shredding import AESGCMDEKStore, encrypt_field, shred_tenant

dek_store = AESGCMDEKStore() dek_store.create_dek("tenant-acme")

field = encrypt_field("sensitive PII", dek_store, "tenant-acme") shred_tenant("tenant-acme", dek_store) # Key destroyed — data unrecoverable

Hash-chain remains mathematically intact (hashes ciphertext, not plaintext)


Compliance & Governance

ISO 42001 / NIST AI RMF Crosswalk

Maps receipt data directly to recognized management controls with evidence pointers.

from ai_audit.crosswalk import build_crosswalk, nist_function_map

crosswalk = build_crosswalk(receipts, chain_intact=True) for entry in crosswalk: print(f"[{entry.status}] {entry.framework} {entry.control_id} — {entry.control_name}")

nist = nist_function_map(receipts) print(nist["GOVERN"].coverage) # 0.0–1.0 print(nist["MEASURE"].status) # PASS / PARTIAL / FAIL

ISO 42001 Controls: A.6.2.8 (Logging), A.7.5 (Provenance), A.6.2.6 (Performance), A.8.4 (Output), A.5.3 (Risk) NIST AI RMF: GOVERN, MAP, MEASURE, MANAGE — with quantitative coverage scores

EU AI Act Compliance Reports
from ai_audit.report import ComplianceReportGenerator

gen = ComplianceReportGenerator(summary, verify_key_hex=get_verify_key_hex()) gen.to_markdown() # Documentation portals gen.to_json() # Automated pipelines gen.to_html() # Air-gapped servers

Covers Art. 9 (Risk), Art. 12 (Record-Keeping), Art. 13 (Transparency), Art. 17 (Quality), Art. 18 (Logging).

Evidence Package Export (Offline Verification)

Self-contained signed ZIP for external auditors — no system access required.

from ai_audit.export import export_evidence_package, verify_evidence_package

export_evidence_package(receipts, verify_key_hex, signing_key, "audit_2026.zip")

Bundle: receipts.jsonl + chain_metadata.json + public_key.hex + manifest.json (signed) + verify.py

Auditor verifies offline:

python -m ai_audit verify audit_2026.zip

Continuous Certification (SPRT)

Sequential Probability Ratio Test — live compliance status per tenant.

from ai_audit.sprt import SPRTMonitor

monitor = SPRTMonitor(tenant_id="acme") for receipt in receipts: state = monitor.update(is_reject=(receipt.action == "reject")) print(state.status) # CERTIFIED | MONITORING | FLAGGED print(state.confidence) # 0.0–1.0

Drift Detection (Jensen-Shannon Divergence)

Detects behavioral shifts in real-time — pure Python, no scipy required.

from ai_audit.drift import DriftMonitor

monitor = DriftMonitor(window_size=100) for receipt in receipts: state = monitor.update(receipt.action.value) print(state.status) # STABLE | DRIFTING | CRITICAL_DRIFT print(state.drift_score) # JSD 0.0–1.0


Agentic AI Audit (World-First)

Agent Behavioral Contracts

Formal (p, delta, k)-Satisfaction with Reliability Index Theta — transforms EU AI Act requirements into testable specifications.

from ai_audit.contracts import BehavioralContract, Constraint, ContractMonitor

contract = BehavioralContract( contract_id="safety-v1", constraints=[ Constraint(name="no_pii_leak", kind="hard", field="action", operator="!=", value="reject"), Constraint(name="quality", kind="soft", field="checks.safety.score", operator="<=", value=0.1, delta=0.5), ], ) monitor = ContractMonitor(contract) for receipt in receipts: state = monitor.evaluate(receipt)

print(state.p) # Hard constraint satisfaction probability print(state.delta) # Maximum soft deviation observed print(state.k) # Recovery steps after last violation print(state.reliability_index) # Theta: single compliance metric (0.0–1.0) print(state.status) # COMPLIANT | DEGRADED | VIOLATED

Cryptographic Tool-Call Receipts

Every agent API call Ed25519-signed — no existing framework provides this.

from ai_audit.toolcall import seal_tool_call, verify_tool_call_chain

receipt = seal_tool_call( agent_id="researcher", tool_name="web_search", tool_args={"query": "EU AI Act compliance"}, tool_result="Found 5 relevant documents...", private_key=signing_key, tenant_id="acme", ) assert receipt.verify(signing_key.verify_key)

Multi-Agent Trace-Graphs (DAG)

Audit delegation, handoff, and parallel orchestration — not just linear logs.

from ai_audit.tracegraph import TraceGraph

graph = TraceGraph(trace_id="workflow-1", tenant_id="acme") root = graph.add_node(agent_id="orchestrator", action="plan") graph.add_node(agent_id="researcher", action="search", parent_id=root.node_id) graph.add_node(agent_id="writer", action="draft", parent_id=root.node_id)

assert graph.verify_integrity() # Hash-based tamper detection assert not graph.has_cycles() # DAG validation lineage = graph.get_agent_lineage(leaf_node.node_id) # Root-to-leaf trace

Epistemische Integritat / Unforgeable Provenance

Track WHERE every piece of information came from — proves a decision was not influenced by prompt injection.

from ai_audit.provenance import ProvenanceChain, ProvenanceRecord, SourceType

chain = ProvenanceChain(receipt_id="r1", tenant_id="acme") chain.add(ProvenanceRecord(source_type=SourceType.SYSTEM, source_id="prompt", trust_level=1.0, content_hash="...")) chain.add(ProvenanceRecord(source_type=SourceType.DOCUMENT, source_id="doc-123", trust_level=0.8, content_hash="...")) chain.add(ProvenanceRecord(source_type=SourceType.UNKNOWN, source_id="???", trust_level=0.0, content_hash="..."))

summary = chain.trust_s

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx