About consensus
Consensus is an MCP server for teams coordinating AI coding agents on one codebase. It checks declared plans against active plans and shared team memory, and records handoffs without reading or changing code.
Key features
- 01Compare plans for design conflicts
- 02Search and record shared memory
- 03Apply prior human rulings
- 04File work handoffs
- 05Track repository status
Use cases
- 01Catch incompatible designs before coding
- 02Share discoveries and decisions across agents
- 03Carry completed work into a pull request
MCP support
Coding agents connect to Consensus as an MCP server using a personal API key. Its tools declare and check plans, query and write memory, file handoffs, and manage claims and status.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://consensus-production-aed6.up.railway.app/mcpclaude mcp add --transport http masterblaster14-consensus https://consensus-production-aed6.up.railway.app/mcp{"mcpServers":{"masterblaster14-consensus":{"type":"http","url":"https://consensus-production-aed6.up.railway.app/mcp"}}}Open in Cursor{"servers":{"masterblaster14-consensus":{"type":"http","url":"https://consensus-production-aed6.up.railway.app/mcp"}}}Open in VS Code{"mcpServers":{"masterblaster14-consensus":{"type":"http","url":"https://consensus-production-aed6.up.railway.app/mcp"}}}{"mcpServers":{"masterblaster14-consensus":{"serverUrl":"https://consensus-production-aed6.up.railway.app/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://consensus-production-aed6.up.railway.app/mcpAuth requiredTools
Details
From the project READMEConsensus
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
- 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.
- The nearest open plans and memory entries are retrieved by vector search.
- Plans are compared deterministically. Shared concept plus disagreeing positions is a clash. Same inputs, same answer, every input logged.
- 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:
export CONSENSUS_API_KEY="csk_..." # CONSENSUS_URL defaults to the hosted instance
claude plugin marketplace add masterblaster14/Consensus
claude plugin install consensus@consensus
Claude Code, server only:
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:
{ "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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.