Consensus

io.github.masterblaster14由 GitHub 帳號 masterblaster14 發布v0.1.0更新於 Oct 27, 2026

Coordination for AI coding agents: declare plans, catch design conflicts early, share team memory.

已驗證Streamable HTTP可網頁執行效率與工作流知識與記憶開發者工具

概覽

AI 產生的概覽

為 AI 編碼代理團隊設計的協調伺服器:代理在寫程式前申報計畫,取得繼續或等待的裁決,並共用團隊記憶。

可以做什麼
  • 申報編碼計畫,並比對其他進行中的計畫與既有裁決,取得裁決(繼續、帶脈絡繼續或等待)
  • 查詢裁決結果,並在計畫變更或放棄時撤回申報
  • 查詢團隊共用記憶,記錄發現、決策與走過的死路
  • 提交交接說明,寫明改了什麼、沒動什麼、假設了什麼
  • 查看狀態並回報所連接開發者金鑰的使用情形
適用情境
適合多位開發者各自在同一份程式碼庫上執行 AI 編碼代理的團隊,希望在程式碼出現前就發現設計衝突,並透過共用記憶避免重複閱讀程式碼與重複踩坑。也適合想把人工裁決自動套用到後續衝突計畫的團隊。
執行需求
遠端 MCP 端點,使用 streamable HTTP;需要 Consensus 設定頁產生的個人 API 金鑰,以 Authorization Bearer 標頭送出。需要 Consensus 帳號(GitHub 或電子郵件登入)與組織,GitHub、Notion 整合為選用。自架需要 Python 3.11、含 pgvector 的 PostgreSQL 與 Redis。
安裝前請注意
此 API 金鑰屬個人憑證,所有操作都會歸屬到金鑰所屬開發者,請勿放入共用設定。計畫、記憶條目與交接內容會傳送到託管服務並對團隊可見。交接可建立拉取請求、裁決可張貼為 PR 留言,因此會寫入 GitHub。託管執行個體需付費。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Consensus,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.masterblaster14%2Fconsensus/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "consensus": {
      "type": "http",
      "url": "https://consensus-production-aed6.up.railway.app/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

Consensus

Coordination for teams whose developers each run an AI coding agent on the same codebase.

Before an agent writes code, it declares its plan. Consensus checks that plan against every other plan in flight and against what the team already knows, and answers in a second: proceed, proceed with context, or wait.

Why

AI coding agents are fast and they work alone. On a team that produces two problems git cannot see:

  • Design conflicts in files that never touch. One agent moves sessions to signed tokens; another adds a login endpoint that assumes server-side sessions. No merge conflict. Two incompatible designs discovered days later in review.
  • Every agent starts from zero. The same code gets re-read, the same dead ends get re-tried, and nothing one agent learns reaches the next.

What it does

  • Declare before writing. Plans are compared on what they mean, not which files they touch. Conflicts are caught before the code exists.
  • Shared memory. Agents ask what the team knows before reading the codebase, and record discoveries, decisions and dead ends as they work.
  • Human rulings that compound. When two plans genuinely conflict, a person decides once. The ruling is stored and applied automatically to every future plan that would raise the same conflict.
  • Clean handoffs. When work is done, the agent files what changed, what it left alone, and what it assumed. That becomes the pull request.

Consensus never reads, writes, executes or merges code.

How it works

  1. One language-model call extracts a plan's stance: the concepts it touches and its positions on error handling, authentication, data access and API shape. Unaddressed axes stay empty; nothing is guessed.
  2. The nearest open plans and memory entries are retrieved by vector search.
  3. Plans are compared deterministically. Shared concept plus disagreeing positions is a clash. Same inputs, same answer, every input logged.
  4. A hard clash is checked against prior rulings before any human is asked.

Full detail: How it works.

Connecting an agent

Consensus is an MCP server. Each developer creates a personal API key (settings page, or POST /api/me/api-keys) and connects their coding agent to it.

Claude Code, with the guardrail (recommended). The plugin adds the server, a skill that teaches the workflow, and a hook that refuses Edit/Write until the plan is declared and the verdict allows it:

bash
export CONSENSUS_API_KEY="csk_..."          # CONSENSUS_URL defaults to the hosted instanceclaude plugin marketplace add masterblaster14/Consensusclaude plugin install consensus@consensus

Claude Code, server only:

bash
claude mcp add --transport http consensus https://consensus-production-aed6.up.railway.app/mcp --header "Authorization: Bearer csk_..."

Cursor, Windsurf, any MCP client. Add to the client's MCP config:

json
{ "mcpServers": { "consensus": { "url": "https://consensus-production-aed6.up.railway.app/mcp", "headers": { "Authorization": "Bearer csk_..." } } } }

Listed in the MCP Registry as io.github.masterblaster14/consensus, so registry-aware clients can find it by name.

Everything an agent does is attributed to the developer who owns the key. The tools: declare_intent, check_verdict, query_memory, write_memory, file_handoff, withdraw_claim, get_status, report_usage.

Teams and integrations

  • Sign in with GitHub or an email link. The first person to create an organisation is its admin; others join by invite link or by email domain.
  • One shared live board per repository.
  • GitHub: handoffs open pull requests, rulings become PR comments, merged PRs retire their plans.
  • Notion: tasks sync in, decisions and rulings mirror out.

Hosted instance: https://consensus-production-aed6.up.railway.app (API docs at /docs, live board at /board).

Running it

Python 3.11, PostgreSQL with pgvector, Redis. Docker Compose for the databases. Offline mode needs no API keys.

docker compose up -d.venv/Scripts/python -m alembic upgrade head.venv/Scripts/python -m scripts.seed_demo.venv/Scripts/python -m uvicorn app.main:app --port 8000

Or the whole stack in containers: docker compose --profile full up -d --build.

Setup details, configuration and the full API: Backend reference. Hosting it: Deploying (Render blueprint, Railway, Fly, or any Docker host).

License

MIT. See LICENSE.

Documentation

來源:README.md,提交 94d9bcd

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分