evidence-gate
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
evidence-gate 证据闸门
溯源锚定与真值账本内核:凡过闸必锚定,账本即真值,锚定不可回改。
|元枢体系 YUANSHU
这是什么
一个纯标准库的哈希链锚定账本:把主张、报告、结论等证据以确定性摘要写入只追加的账本,任何回改都会被链校验当场抓获。适合给「谁在什么时候断言了什么」出具可验证的凭证。
Related MCP server: aafp-commons
道统映射
道统名 | 内核对象 | 职责 |
证据 |
| 一条原始主张,摘要对 id/kind/payload 全敏感 |
锚定 |
| 把证据摘要追加进哈希链账本 |
账本 |
| 创世 prev=64 个 0、seq 从 1 起、只追加 |
核验 |
| 全链重放 + 在册性核验,断裂报首断位 |
快速开始
from evidence_gate import EvidenceGate
gate = EvidenceGate()
gate.admit("EV-001", "claim", {"statement": "预算已审", "amount": 3})
gate.verify("EV-001", "claim", {"statement": "预算已审", "amount": 3}).anchored # True
gate.verify("EV-001", "claim", {"statement": "预算已审", "amount": 4}).anchored # False(篡改检出)
gate.ledger.verify_chain().chain_ok # True命令行:
python tools/evidence.py anchor --id EV-1 --kind claim --payload '{"k":1}'
python tools/evidence.py verify --id EV-1 --kind claim --payload '{"k":1}'
python tools/evidence.py chaincheckMCP 门面
内核随长随开放:mcp_server/ 提供 stdio 门面,八件工具——admit(过闸锚定)、verify(对外核验)、verify_chain(链校验)、get(查账)、records(账本快照)、head(链头)、to_json(导出)、selftest(自测)。
python run_mcp_server.py # 一键启动 stdio MCP 服务器门面依赖 mcp>=1.0(仅门面需要,内核保持纯标准库)。server.json 登记 io.github.tanbopiao/evidence-gate。
设计约定
纯标准库,无第三方依赖;摘要统一 SHA-256。
账本只追加:不提供删除、改写、回滚接口。
核验结论只有两类:在册且载荷一致 / 不在册或载荷被篡改,不设第三态。
防篡改前提(统一声明):验链可发现局部或单点篡改;持有全量记录的攻击者可整体重写并重算通过——链头哈希需带外留存(或对链头签名)方可对抗整体重写。
空载荷不予过闸;同一证据 ID 重复锚定直接拒绝,不覆盖。
回归
tests/regression.md 登记十二条回归铁律(哈希链契约、摘要契约、闸门行为契约、工程契约)。运行:
python -m unittest discover -s tests -v许可证
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only XRP Ledger MCP tools with proof-annotation envelopes and signed daily snapshots.
Tamper-evident evidence log: signed heads, proofs, and recording salted digests of your records.
Tamper-evident proof creation and verification for AI agents via MCP, A2A, and REST.
Signed, Merkle-proofed, on-chain-anchored trust records for MCP servers. Verify, do not trust.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server providing an append-only, hash-chained evidence ledger for agent actions, where every record is a tamper-evident receipt cryptographically bound to all prior records and persisted as human-readable JSONL local state. It exposes tools to append records, verify chain integrity (pinpointing tampering), query records by actor/action/target/time, and fetch ledger stats—with no update or delete capabilities by design.1Apache 2.0
- AlicenseBqualityCmaintenanceEnables software agents to maintain a signed, evidence-aware local ledger of claims, with policy-gated proposals, conflict queries, and constitution-pinned access through an MCP stdio server.73Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables agents to generate tamper-evident SHA-256 Merkle audit trails, produce logarithmic inclusion proofs, and verify integrity through a STDIO MCP interface.7MIT
- AlicenseBqualityBmaintenanceEnables MCP clients to verify claims against evidence, generate and validate tamper-evident receipts, and pre-filter prompt-injection attempts through stdio JSON-RPC tools.5825 PyPIApache 2.0