Back to Browse

Evidence Gate MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Evidence anchoring kernel MCP: append-only hash-chain ledger, tamper-evident snapshots, fail-closed.

About

Evidence anchoring kernel MCP: append-only hash-chain ledger, tamper-evident snapshots, fail-closed.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 4 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

9 files analyzed · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

How to Install

Install command not verified. See the repository for install instructions.

View repository

Documentation

View on GitHub

From the project's GitHub README.

evidence-gate 证据闸门

溯源锚定与真值账本内核:凡过闸必锚定,账本即真值,锚定不可回改。

|元枢体系 YUANSHU

这是什么

一个纯标准库的哈希链锚定账本:把主张、报告、结论等证据以确定性摘要写入只追加的账本,任何回改都会被链校验当场抓获。适合给「谁在什么时候断言了什么」出具可验证的凭证。

道统映射

道统名内核对象职责
证据Evidence一条原始主张,摘要对 id/kind/payload 全敏感
锚定AnchorLedger.anchor把证据摘要追加进哈希链账本
账本AnchorLedger创世 prev=64 个 0、seq 从 1 起、只追加
核验verify_chain / verify_evidence全链重放 + 在册性核验,断裂报首断位

快速开始

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 chaincheck

MCP 门面

内核随长随开放: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

Reviews

No reviews yet

Be the first to review this server!