drawcommons-ledger
Summary: This MCP server provides read-only access to the DrawCommons public audit ledger, with no writes or credentials.
ledger_items: fetch, filter by type, and paginate ledger entries; returns live totals, genesis/data notice, and item hashes.ledger_verify: locally recompute the hash chain and anchor from fetched bytes and compare with the server's claims; verdicts includeagree,chain_broken, orserver_disagrees.ledger_export: fetch canonical export bytes and compute their SHA-256 anchor; optionally include raw export text capped at 200,000 bytes with atruncatedflag.
All tools are read-only, idempotent, non-destructive, and use public HTTPS endpoints without credentials.
众汲之井 · drawcommons
本版本未生效。 协议 v2.2-r1 处于 30 日公示期(起算 2026-11-25,期满 2026-12-25,计划生效日 2026-12-26); 2026-11-12 首次公示;11-14 因账本结构升级与隐私政策附录一处事实性更正、11-17 因产品号由 2.1 升为 2.2、 11-25 因协议许可表述按仓库实际更正,三度重新起算(见
CHANGELOG.md)。三份文本尚未取得执业律师书面意见,生效日按顺延规则顺延。 当前为 beta,账本内共 8 条:4 条结构验证(假 ID)+ 2 条端到端联调演练(非真实互助)+ 2 条真实互助(已闭环)。可以试,不宜押。
这是公开可读副本;发布口在 drawcommons.org。此处打 tag 不等于发版。
每一版的正式发布以 drawcommons.org 上带签名的 tag 与发布包为准:镜像站的 tag 被平台规则
保护,但规则可以由账号持有者关闭;自建裸仓的 hooks/update 与 receive.denyNonFastForwards
才是不可改写承诺的落点。要核验某一版,认发布口,不认这里。
这是什么
一个公共品化的记账与公示项目:账本字节锚定、判据机器可查、许可逐文件归属。 具体从哪里读起:
想了解 | 看 |
动手接入(十分钟,四个能跑的示例) | |
MCP 服务器(AI 客户端直连账本) | |
项目当前版本与状态 | |
谁做了这个站(名录,逐版快照) | |
自己动手验证,不用信任何人 |
|
这套账本怎么部署 | |
代码与数据的许可条件 | |
版本间改了什么 |
Related MCP server: Decision Room
MCP server (Model Context Protocol)
This repository contains a complete MCP server implementation:
repo/examples/04-mcp-server/ — a single-file
server.py (~1,150 lines, mostly comments) 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 exposes the public JSON API as five MCP tools. All five only GET; the server has no second HTTP verb — including the drafting tool, which never sends anything:
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; |
| Public requests: what can be taken now, or what changed after a cursor |
| Draft the exact bytes a write would need signed, plus ready-to-paste commands — it drafts, it never sends |
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.
Listed in a third-party directory:
Drawn by Glama, not by us — the rating is theirs, and it changes without anyone editing
this file. GitHub proxies the image through camo, so viewing this page tells Glama nothing
about you; that proxy is also why the badge can lag behind this repo for a while.
验证 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-26 会按顺延规则顺延。protocol_ready 只说明「三件套齐、版本串一致、可进公示」。
详见 VERSION.md。
公示已开始:站点 /terms 及三份正文 /terms/agreement、/terms/privacy、/terms/disclaimer
自 2026-11-25 起重新公示 30 日(期满 2026-12-25);全站页首标「公示中,尚未生效」。每份正文页顶印 sha256,
由服务对同一份字节现算,/terms/<key>.txt 可下载自核。三份公示稿共 3 处【待填】,
原样保留、不代填。
Available Tools
5 toolsentry_draftARead-only
Drafts the exact bytes you would have to sign for one write, and prints a self-contained shell block that signs and sends them. It writes NOTHING and POSTs NOTHING: signing is left to you or your own CLI, because this process runs on your machine and should never hold the ability to send on your behalf.
Use when you are about to publish/claim/deliver a request, register a party, record an entry, or confirm a give — that is, whenever the hard part is "which bytes, byte for byte". Returns body_text (send exactly these bytes, do not re-serialize), body_sha256, the payload to sign (7 lines for the envelope), issued, nonce, and commands {dry_run, send}.
confirm has two stages, because a confirmation carries two signatures. Call it with endpoint=confirm and body={entry_id} and no sig: you get the 3-line inner payload and the give's current chain hash, read from /api/ledger/items (never recomputed locally — recomputing would mean reimplementing build_chain, whose failure mode is "right most of the time"). Sign that, put the armor into body.sig, and call again to get the envelope. stage tells you which one you got.
It deliberately does NOT validate fields and does NOT check whether an id exists: a free validator that answers "would this be rejected" is an oracle the write side chooses not to be. Sign first, then use ?dry_run=1 (the dry_run block) — validation runs, the transaction rolls back, the nonce is not spent.
Not covered: reject and remind. Their payloads need the seq of the current delivered row, which the public view does not expose; sign those by hand per /agent.md 5.1.
Inputs: party (required), endpoint (required), body, nonce, +2 more.
ledger_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.
expect=<64 hex> compares the anchor you recorded earlier against the one computed now and returns match: true/false, plus both values when they differ. It does not judge which one is right: an export legitimately changes when someone records an entry or the schema is upgraded. This server keeps no anchor history — the history is yours to keep.
Read-only and credential-free: one public HTTPS endpoint, nothing written.
Inputs: expect, 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.
requests_listARead-onlyIdempotent
Lists public requests (the discovery endpoint GET /api/v1/requests): what can be taken right now, or what changed after a cursor. Read-only, no signature, no session.
Use this to find work to claim or to poll for changes. Without since you get the most recent screen; with since you get rows appended after that cursor, oldest first. A request reappears once when its state changes — that is a notification, not a duplicate: fold by request_id, do not dedupe by "ids I have seen".
Returns structuredContent {contract, count, limit, state, since, has_more, next_cursor, items}. Pass next_cursor back verbatim as since. A bad cursor returns HTTP 400 bad_cursor instead of silently restarting from the beginning — a silent restart would look like an incremental feed while replaying everything.
No sorting, ranking or recommendation is added here: this tool forwards the endpoint's four documented rules unchanged, so there is only one set of semantics.
Inputs: limit, since, state.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct facet: ledger contents, anchor export, chain recomputation, write-byte drafting, and request discovery. The descriptions explicitly cross-reference and state boundaries, leaving little room for misselection.
Most names follow a predictable domain_action ordering (ledger_verify, ledger_export, entry_draft, requests_list), with the ledger/entry/requests domains clearly signaled. ledger_items breaks the verb pattern and singular/plural conventions vary slightly.
Five tightly scoped tools cover read, verify, export, draft, and discovery without redundancy. Each earns its place and the surface is neither thin nor heavy.
The read/verification surface is complete for ledger contents, anchor export, and chain integrity, with drafting support for writes. Deliberate gaps remain for reject/remind payloads and direct signed submission, but these are documented and workable through dry_run, shell commands, or manual signing.
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
- 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
- AlicenseAqualityBmaintenanceEnables MCP clients to verify a REP v1 record's seal and hashes, inspect its claims, and list sealed report files through read-only tools.323 npm3Apache 2.0