npm ai-consensus-connectorstdioMITupdated 1mo ago
Make AI Consensus a standing part of your development model. Your coding agent — Claude Code, Cursor, Cline, any MCP client — routes every decision of consequence through three frontier AIs (Claude, GPT, Gemini) that answer independently, then cross-examine each other, and return one recommendation plus the strongest dissent. You keep working inside your agent; the panel reviews as you go.
ai consensus 能做什么?
AI Consensus — coding-agent connector
Make AI Consensus a standing part of your development model. Your coding agent — Claude Code, Cursor, Cline, any MCP client — routes every decision of consequence through three frontier AIs (Claude, GPT, Gemini) that answer independently, then cross-examine each other, and return one recommendation plus the strongest dissent. You keep working inside your agent; the panel reviews as you go.
This is not a tool you reach for occasionally. It's a review layer you switch on once, and from then on everything that matters gets debated by three independent models before it ships. (Honest bill: a run takes a few minutes and, on the bring-your-own-keys plan, costs roughly $0.40–$1 of your own provider tokens.)
Setup — Claude Code (about 2 minutes)
-
Get an API key: sign in at https://ai-consensus.ai → Developer API → create a key (copy it; it's shown once).
-
Add the connector:
claude mcp add ai-consensus --scope user \ --env AI_CONSENSUS_API_KEY=aic_live_your_key_here \ -- npx -y ai-consensus-connector(Self-hosting? add
--env AI_CONSENSUS_API_URL=https://your-instance.) -
Verify it's connected (free — no run is started):
"Use the check_ai_consensus_connection tool."
-
Make it your standing rule — add to your project's
CLAUDE.md:STANDING RULE: This project develops with AI Consensus as its review layer. Route every decision of consequence — architecture, design, implementation approach, tricky bugs, anything whose cost of being wrong is real — through consult_ai_consensus as a matter of course, and weigh its recommendation and strongest dissent before acting. Purely mechanical edits (formatting, typos, exact instructed changes) don't need a run. When in doubt, consult.Teams that want everything routed can use the strict variant instead:
STRICT MODE: Consult consult_ai_consensus before every non-trivial change of any kind, and weigh the dissent before acting.
Setup — Cursor / Cline / other MCP clients
Add a stdio MCP server with command npx -y ai-consensus-connector and the
AI_CONSENSUS_API_KEY environment variable. For Cursor, in mcp.json:
{
"mcpServers": {
"ai-consensus": {
"command": "npx",
"args": ["-y", "ai-consensus-connector"],
"env": { "AI_CONSENSUS_API_KEY": "aic_live_your_key_here" }
}
}
}
Then put the standing rule in your project's agent rules file (.cursorrules,
.clinerules, etc.).
Tools
consult_ai_consensus— route a decision/task through the panel and wait for the result (a few minutes).start_ai_consensus/get_ai_consensus_result— fire-and-forget + collect later.check_ai_consensus_connection— zero-cost setup check (reachability, key accepted, provider keys present).cancel_ai_consensus_run— stop a run.
Your key authenticates to your account and bills your plan (unlimited on your
own keys, or prepaid credits). Keep it secret — and note that pasting the
--env form above stores the key in your shell history; use your client's
config file if that concerns you.
Open source, hosted service
This connector is open source under the MIT license. It is a thin client for the paid, hosted AI Consensus service — you bring your own AI Consensus API key; the deliberation engine itself runs on our servers and is not part of this repository. The MIT license covers this connector's code only and grants no rights to the AI Consensus name or branding.
Support boundary: connector bugs and setup issues → GitHub issues; account, API-key or billing questions → support@ai-consensus.ai.
安装
把 ai consensus 添加到你的客户端。选择你正在使用的那个。
claude mcp add ai-consensus-connector -- npx -y ai-consensus-connectorcodex mcp add ai-consensus-connector -- npx -y ai-consensus-connectoramp mcp add ai-consensus-connector -- npx -y ai-consensus-connector{
"mcpServers": {
"ai-consensus-connector": {
"command": "npx",
"args": [
"-y",
"ai-consensus-connector"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"ai-consensus-connector": {
"command": "npx",
"args": [
"-y",
"ai-consensus-connector"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"ai-consensus-connector","command":"npx","args":["-y","ai-consensus-connector"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"ai-consensus-connector": {
"command": "npx",
"args": [
"-y",
"ai-consensus-connector"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"ai-consensus-connector": {
"command": "npx",
"args": [
"-y",
"ai-consensus-connector"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"ai-consensus-connector": {
"command": "npx",
"args": [
"-y",
"ai-consensus-connector"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"ai-consensus-connector": {
"type": "local",
"command": "npx",
"args": [
"-y",
"ai-consensus-connector"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"ai-consensus-connector": {
"command": {
"path": "npx",
"args": [
"-y",
"ai-consensus-connector"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y ai-consensus-connectorRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
4 个工具
ai consensus 向已连接的智能体提供 4 个工具。
- consult_ai_consensus
- route a decision/task through the panel and wait for the result (a few minutes).
- start_ai_consensus
- / `get_ai_consensus_result` — fire-and-forget + collect later.
- check_ai_consensus_connection
- zero-cost setup check (reachability, key accepted, provider keys present).
- cancel_ai_consensus_run
- stop a run.
评分
69 / 100
良好
- 文档22/25
- 维护16/25
- 可信度13/20
- 能力6/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 42 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 4 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.12.2最新 | 2026年7月21日 |
| 0.12.1 | 2026年7月20日 |