Quorum

io.github.terradev-cloud由 GitHub 账号 terradev-cloud 发布v0.1.1更新于 Oct 25, 2026

Attested multi-agent consensus: proposals, votes, and outcomes stamped and traced.

已验证Streamable HTTP可网页运行效率与工作流知识与记忆

概览

AI 生成的概览

一个托管式 MCP 服务器,用于可存证的 multi-agent 共识:发起提案、共享黑板、带理由投票,并按社会选择规则结算结果。

可以做什么
发起提案,指定选项、预期投票者、聚合算法、截止时间和法定人数阈值,返回提案 ID 与创建存证。在提案共享黑板上追加和读取键值条目,保留有序且带存证的历史。以预期投票者身份提交选票并可附理由,支持多数制、赞成投票、波达计分、孔多塞、意见池和绝对多数规则。达到法定人数或截止后结算结果,真正存在歧义时返回并列胜出者。获取提案的完整存证记录,可按写入、投票或结果筛选。可选地将自选 api_key 绑定到 Telinea 密钥,以便推送提案遥测。
适用场景
当多个 agent 或编排者需要就争议问题共同商议,并希望得到可记录、可验证的决策过程而非临时多数表决时使用。适合需要审计谁写了什么、谁如何投票的决策场景。
运行要求
远程 streamable HTTP 端点;匿名使用无需登录。向 Telinea 推送提案遥测是可选的,需要一次性调用 register,将自选 api_key 绑定到 Telinea 密钥。自托管需要 Docker 以及 QUORUM_DATA_KEY、Telinea 摄取等配置。
安装前请注意
register 工具要求提供 Telinea API 密钥,服务器会加密存储;两个密钥都应视为机密。提案、黑板写入和投票均为只追加并存证,事后无法修改或删除。启用遥测后,提案事件会被推送到 Telinea 的摄取服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Quorum,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.terradev-cloud%2Fquorum/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "quorum": {
      "type": "http",
      "url": "https://quorum-mcp.terradev.cloud/mcp"
    }
  }
}

README

Quorum

Attested multi-agent consensus with a shared blackboard — an MCP server.

An orchestrator opens a proposal, participating agents write context to a shared blackboard and vote with reasoning, Quorum applies a principled aggregation algorithm from the social choice literature, and every step — proposal, writes, votes, outcome — is attested via Stamp and traced to Telinea. The record is immutable, tamper-evident, and independently verifiable.

Hosted endpoint (no sign-in, public): https://quorum-mcp.terradev.cloud/mcp


Why

Majority vote among LLM agents fails on disputed questions because agents trained on overlapping data share systematic blind spots — they are not the independent voters the Condorcet Jury Theorem requires. And when agents do decide together, the decision process — who voted, what they said, what context they worked from — is invisible.

Quorum is the complete primitive: algorithm plus state plus provenance.

Tools

  • register — one-time account setup: bind your api_key (a Quorum key you choose) to your telinea_key. The Telinea key is stored encrypted under a key derived from your Quorum key (AES-256-GCM, HKDF) — the Quorum key itself is never stored. Every span for your proposals is then pushed with your Telinea key, standard OTLP bearer auth.

  • propose — open a proposal: name (becomes the proposal id), question, voters (expected identities), deadline_minutes. Optional: api_key (from register — binds the proposal to your Telinea account for span streaming; omit for anonymous use), namespace (tenant prefix — the id becomes ns:name, so different teams can reuse names without colliding), options (default ["yes","no"]), algorithm (default approval), quorum (min % of voters, default 100), threshold (supermajority share, default 66.67), description. Returns the proposal id, creation attestation id, deadline, and blackboard URI.

  • write — append key/value to the proposal's blackboard, with optional author. Writes are appended, never replaced — the full ordered history is preserved and attested.

  • read — read the blackboard: every write in order with timestamp, author, and attestation id. Optional key filter. The deliberation record before voting.

  • vote — submit a ballot from an expected voter identity, with optional reasoning (stored in the attested record, never affects the outcome). Ballot shape depends on the algorithm — see below. Duplicate votes and post-deadline votes are rejected with structured errors.

  • resolve — apply the algorithm and attest the outcome. Callable once quorum is met (or after the deadline); also fires automatically when the deadline passes with quorum. Idempotent. Condorcet cycles and missed supermajority thresholds return co_winners with status unresolved — genuine ambiguity is surfaced, never hidden.

  • history — the complete attested record: creation, every write, every vote with reasoning, the outcome. Optional filter: all | writes | votes | outcome. The compliance artifact.

Algorithms

AlgorithmBallotUse when
pluralityoption stringBinary decisions only
approvaloption or list of optionsDefault. No strategic incentive; weak/multiple preferences
bordaranking of all options3–5 options; surfaces the broadly-acceptable choice
condorcetranking or single optionRational preference aggregation; cycles returned as co_winners
opinion_pool{option: probability} summing to 1Genuine probabilistic beliefs; returns full distribution
supermajorityoption stringHigh-stakes decisions needing >50% (set threshold)

The blackboard

LLM consensus failures are often information failures, not algorithm failures — agents vote in isolation. The blackboard is shared working memory scoped to one proposal: agents write analysis, read each other's findings, then vote informed. Write-first, read-second ordering and immutable pre-deadline votes are the conformity-bias defenses.

Tracing

Every proposal is one Telinea trace. The root span (proposal) opens at propose and closes at resolve or deadline expiry — its duration is the deliberation time. Each write, vote, and the resolution is a child span emitted in real time with its Stamp attestation id. Root status: OK decided, UNRESOLVED ambiguous, ERROR expired without quorum.

Span ids are deterministic (uuid5 over proposal id + event seq), so replays and restarts stay idempotent. Push is fire-and-forget and fail-safe — telemetry can never break a vote.

Auth is per-account: spans are pushed with the Telinea key registered via register, so ingest attributes them to the correct account. The key is stored encrypted (AES-256-GCM under HKDF of your Quorum key — never stored); a proposal-scoped re-encryption under the server-held QUORUM_DATA_KEY lets spans authenticate after restarts without re-presenting the Quorum key. A database dump exposes only ciphertext.

Config: TELINEA_INGEST_URL (default https://ingest.terradev.cloud/v1/traces), TELINEA_WORKSPACE_ID, TELINEA_PROJECT_ID, TELINEA_DISABLED=1, QUORUM_DATA_KEY, QUORUM_ACCOUNTS (account store path, default ~/.quorum/accounts.json).

HTTP transport

EndpointMethodDescription
/mcpPOSTJSON-RPC 2.0 — single or batch; notifications → 202
/mcpGETSSE keep-alive channel
/GET/POSTService identity / MCP alias
/healthGET{"status":"ok"}
/v1/infoGETSelf-describing service info (tools, auth, spans, docs)
/.well-known/agent.jsonGETAgent card
/.well-known/oauth-protected-resourceGETRFC 9728 — public, no auth

Concurrency capped at 100 simultaneous POST /mcp via asyncio.Semaphore.

Rate limiting is per-proposal: write and vote are capped at QUORUM_PROPOSAL_RATE events/min per proposal id (default 120), so one hot proposal can't starve the rest. The edge per-IP zone in Caddy is a coarse backstop only.

Attestation is queued and coalesced: concurrent events share one NTP sample per drain batch instead of one query per event — each event still gets its own Stamp record (unique id, own payload hash), so throughput isn't bound by NTP round-trips.

State

Event-sourced: one append-only JSONL file per proposal under ~/.quorum/proposals (override QUORUM_DATA_DIR). Namespaced proposals live in per-namespace subdirectories (proposals/<ns>/<name>.jsonl). The log is the history — history is a filtered read of the same file the tools append to. Nothing is rewritten or deleted.

Self-hosting

bash
git clone https://github.com/theoddden/quorum-mcp.gitcd quorum-mcpdocker compose up -d --build

Caddy handles TLS once DNS points at the host. See deploy/Caddyfile.

License

Copyright 2026 theoddden. Licensed under the Apache License, Version 2.0.

来源:README.md,提交 dc67b56

工具

7

register

OPTIONAL one-time setup -- only needed if you want proposal telemetry (OTLP spans) pushed to your Telinea account. Call once before propose: it binds an api_key you choose to your Telinea API key. Afterwards, pass the same api_key on propose and every span for that proposal is pushed to your Telinea with standard OTLP bearer auth. Storage: the Telinea key is sealed with AES-256-GCM under a key derived from your api_key (HKDF-SHA256, per-account salt); only sha256(api_key) is kept as the lookup id, so neither key is ever stored in the clear. Re-registering with the same api_key rotates the stored Telinea key. Skip this tool entirely for anonymous use -- propose works without an api_key, just with no span streaming.

输入参数api_key必填telinea_key必填

propose

Open a new proposal: a question, named options, expected voter identities, an aggregation algorithm, a deadline, and a quorum threshold. Returns the proposal id, the creation attestation, and the deadline. All later operations key off the proposal id.

输入参数name必填quorumvoters必填api_keyoptionsquestion必填algorithmnamespacethresholddescriptiondeadline_minutes必填

write

Append a key-value entry to a proposal's blackboard. Any agent may write; writes are appended, never replaced -- the full ordered history is preserved and attested.

输入参数key必填value必填authorproposal_id必填

read

Read a proposal's blackboard: every write in order with timestamp, author, and attestation id -- the complete deliberation record, or filtered to one key.

输入参数keyproposal_id必填

vote

Submit a vote from an expected voter identity, with optional reasoning stored in the attested record. Vote shape depends on the algorithm: plurality/supermajority take an option string; approval takes an option or list of options; borda takes a ranking of all options; condorcet takes a ranking or a single option; opinion_pool takes a probability distribution over options. Duplicates and post-deadline votes are rejected.

输入参数value必填voter必填reasoningproposal_id必填

resolve

Compute and attest the outcome once quorum is met (or the deadline has passed). Idempotent: resolving twice returns the recorded outcome. Condorcet cycles and missed supermajority thresholds return co_winners with status unresolved rather than an arbitrary tiebreak.

输入参数proposal_id必填

history

The complete attested record of a proposal in chronological order: creation, every blackboard write, every vote with reasoning, the outcome. Optional filter: all | writes | votes | outcome.

输入参数filterproposal_id必填

版本历史

1
  1. v0.1.1最新Sep 27, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。