drawcommons-ledger
众汲之井 · drawcommons
本版本未生效。 协议 v2.2-r1 处于 30 日公示期(起算 2026-11-17,期满 2026-12-17,计划生效日 2026-12-21); 2026-11-12 首次公示;11-14 因账本结构升级与隐私政策附录一处事实性更正、11-17 因产品号由 2.1 升为 2.2, 两度重新起算(见
CHANGELOG.md)。三份文本尚未取得执业律师书面意见,生效日按顺延规则顺延。 当前为 beta,账本内共 6 条样例:4 条结构验证(假 ID)+ 1 次端到端联调演练的 2 条(非真实互助)。可以试,不宜押。
这是公开可读副本;发布口在 drawcommons.org。此处打 tag 不等于发版。
每一版的正式发布以 drawcommons.org 上带签名的 tag 与发布包为准:镜像站的 tag 被平台规则
保护,但规则可以由账号持有者关闭;自建裸仓的 hooks/update 与 receive.denyNonFastForwards
才是不可改写承诺的落点。要核验某一版,认发布口,不认这里。
这是什么
一个公共品化的记账与公示项目:账本字节锚定、判据机器可查、许可逐文件归属。 具体从哪里读起:
想了解 | 看 |
动手接入(十分钟,四个能跑的示例) | |
MCP 服务器(AI 客户端直连账本) | |
项目当前版本与状态 | |
谁做了这个站(名录,逐版快照) | |
自己动手验证,不用信任何人 |
|
这套账本怎么部署 | |
代码与数据的许可条件 | |
版本间改了什么 |
Related MCP server: dsh-narrative-ledger
MCP server (Model Context Protocol)
This repository contains a complete MCP server implementation:
repo/examples/04-mcp-server/ — a single-file
server.py (~590 lines) speaking the MCP protocol over stdio, zero dependencies
(Python 3.8+ standard library only; no mcp SDK, no pydantic, no httpx — the full rationale
is in that directory's README).
It wraps the same three read-only endpoints as the public JSON API into three MCP tools:
MCP tool | What it does |
| Fetch ledger entries; entry count and data notice are taken live, never hardcoded |
| Recompute the hash chain locally over the fetched entries — verification happens on your machine |
| Fetch the canonical export bytes and the current anchor for offline recomputation |
The server is published on PyPI as
drawcommons-ledger-mcp
(pip install drawcommons-ledger-mcp, or uvx drawcommons-ledger-mcp) and registered in the
official MCP Registry as io.github.leigui-888/drawcommons-ledger. Connect it in
Claude Code, Claude Desktop or Cursor and the model can query the ledger and re-verify the
hash chain itself, instead of you pasting numbers into the chat.
验证 tag 签名
v2.1-rc5 起的 tag 带有 SSH 签名。克隆后直接 git tag -v 会报
allowedSignersFile needs to be configured——这不是签名有问题,是你还没指定信任文件。
信任文件就在仓库里,指定它即可:
# 仓库是公开的,https 即可匿名克隆,不需要 GitHub 账号或公钥
git clone https://github.com/leigui-888/drawcommons.git
cd drawcommons
git -c gpg.ssh.allowedSignersFile=repo/allowed_signers verify-tag v2.1-rc10看到 Good "git" signature for 2379731846@qq.com 即通过。信任根说明(域名侧 DNS TXT、
指纹)见 repo/CREDITS.md §10。
不可改写
已存在的 tag 不删除、不移动;历史提交不改写。这在自建裸仓由服务端钩子强制执行,在本站
由 GitHub ruleset(Restrict deletions + Restrict updates,2026-11-12 实测拦截删/移)近似
执行。发现任何一个镜像站的 tag 与发布口不一致,以发布口为准,并请视为事故。
状态
代码可用、基线可复现;协议三件套已齐、版本串统一 v2.2-r1(2026-11-17),protocol_ready=true。
但这不等于可以开服务:三份文本都未经执业律师书面审核(VERSION.md 的生效条件 ③ 未满足),
计划生效日 2026-12-21 会按顺延规则顺延。protocol_ready 只说明「三件套齐、版本串一致、可进公示」。
详见 VERSION.md。
公示已开始:站点 /terms 及三份正文 /terms/agreement、/terms/privacy、/terms/disclaimer
自 2026-11-17 起重新公示 30 日(期满 2026-12-17);全站页首标「公示中,尚未生效」。每份正文页顶印 sha256,
由服务对同一份字节现算,/terms/<key>.txt 可下载自核。三份公示稿共 3 处【待填】,
原样保留、不代填。
Available Tools
3 toolsledger_exportARead-onlyIdempotent
Fetches the canonical export bytes and computes their sha256 locally. That hash is the ledger anchor: it should match, character for character, the value printed on the project's /ledger page and the anchor in /llms.txt.
Use to pin a version (record the anchor before and after something you care about) or to compare two moments. Use ledger_items for contents and ledger_verify for the chain.
Returns structuredContent {sha256, bytes, items, data_notice, truncated, raw}. include_raw=true also returns the export text; above 200,000 bytes only the leading 200,000 are returned and truncated is set, because a silently cut JSON would look complete while being unusable for hashing.
Read-only and credential-free: one public HTTPS endpoint, nothing written.
Inputs: include_raw.
ledger_itemsARead-onlyIdempotent
Lists entries in the DrawCommons public audit ledger (read-only). Each entry is a give / receive / payback record carrying prev_hash and hash.
Use when you need to know what the ledger contains: what was declared, by whom, with which hash. Use ledger_export instead when you need the anchor (the sha256 of the whole export), and ledger_verify when you need to know whether the chain is intact.
Returns structuredContent {total, filtered, offset, limit, returned, genesis, data_notice, items}. total is read live from the server on every call and is never hardcoded. data_notice states whether the ledger still holds test data — read it before citing any count or amount.
Read-only and credential-free: one public HTTPS endpoint, nothing written. A filtered or truncated slice is not a contiguous chain segment — prev_hash still points at the previous entry of the full chain — so do not verify the chain from such a slice.
Inputs: type, limit, offset.
ledger_verifyARead-onlyIdempotent
Recomputes the hash chain and the anchor on your machine from bytes fetched in this same call, then compares that against what the server says about itself. The server's own ok is shown but never trusted.
Use whenever an integrity claim is on the table — including one made by this project — and you would rather recompute than take it. Use ledger_items for contents only and ledger_export for the anchor only.
Returns verdict: agree (local recompute matches the server's claim), chain_broken (an entry does not match the recomputed chain, so the bytes you received differ from the bytes that were chained), or server_disagrees (the local chain is intact but the server's ok / count / chain_tail contradicts the entries it just served). structuredContent carries both sides plus the anchor.
Boundary: this verifies bytes, not facts. A complete chain also results from a false entry that was recorded honestly. Takes no parameters; fetches three read-only endpoints, writes nothing.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool owns a distinct concern: ledger_items returns contents, ledger_verify returns chain integrity, and ledger_export returns the anchor hash. The descriptions explicitly cross-reference one another and state when to prefer the sibling tool, leaving no realistic path to misselection.
All three share the 'ledger_' prefix and use short snake_case suffixes, so the family is obvious at a glance. The only wrinkle is that items is a noun while verify/export are verbs, a slight grammatical mix but not a confusing one.
Three tools map exactly onto the three read-only capabilities a public audit ledger needs: list, verify, export. Nothing is redundant and nothing feels like a filler tool.
The read-only surface is well covered — contents, chain recomputation, and anchor pinning all have dedicated tools, and the docs warn about truncated/sliced data. Minor gaps exist (e.g. no direct fetch of a single entry by hash), but agents can work around them via ledger_items filters.
Maintenance
Related MCP Connectors
Read-only verifier for 25 ProofRelay MCP tools and non-confidential evidence bundles.
Read-only Remote MCP for externally grounded AI agent trust receipts.
Read-only XRP Ledger MCP tools with proof-annotation envelopes and signed daily snapshots.
Read-only MCP server checks and quote verification, free and keyless; results signed and publicly lo
Related MCP Servers
- AlicenseAqualityFmaintenanceRead-only ProofRelay MCP verifier for non-confidential evidence bundles. Exposes 22 public-safe tools, 11 resources, and 11 prompts for bundle integrity checks, receipt-chain review, checkpoint recommendations, MCP risk metadata review, and real-estate closing proof-pack readiness.5MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for verifying narrative consistency and querying story-state facts in DeepSeek Harness, exposing read-only ledger tools for canonical evidence and continuity checks.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables proof-carrying project execution through a read-only remote MCP endpoint and WebMCP tools for managing Project Passports, task graphs, evidence-backed provider comparisons, route approvals, artifacts, verification records, and checkpoints without executing external providers.MIT
- AlicenseAqualityCmaintenanceRead-only MCP (stdio) server for the socseal settlement venue — prove a payment MINED on-chain, read the public settlement book, anchor receipts. No KYC, no custody, fail-closed. Experimental, R=0 external payers.3MIT