Quadruple consensus MCP server for code validation using Codex, Gemini, and Qwen
Most developer tooling work still happens through a UI a human drives. Tetrad MCP server moves it into the conversation instead. Quadruple consensus MCP server for code validation using Codex, Gemini, and Qwen.
The system implements a quadruple consensus protocol where no code or plan is accepted without approval from four intelligences: the three external evaluators + Claude Code itself.
The server publishes 6 tools. What each one is for:
tetrad_review_plan — Review implementation plans before codingtetrad_review_code — Review code before savingtetrad_review_tests — Review tests before finalizingtetrad_confirm — Confirm agreement with received feedbacktetrad_final_check — Final verification before committetrad_status — Check health of evaluatorsConfiguration is passed through the environment: OPENAI_API_KEY, GOOGLE_API_KEY, DASHSCOPE_API_KEY, GEMINI_API_KEY, OPENAI_BASE_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
To use Tetrad, you need at least one of the AI CLIs installed and authenticated: | CLI | Installation | Auth Without API Key? | Free Tier | |-----|--------------|----------------------|-----------| | Codex CLI | npm i -g @openai/codex | ✅ ChatGPT Plus/Pro/Business | Via subscription | | Gemini CLI | `npm i -g
@samoradc/tetrad on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Tetrad's toolset — tetrad_review_plan, tetrad_review_code, tetrad_review_tests and 3 more — is a fair guide to whether it matches your workflow. It is maintained by SamoraDC; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| tetrad_review_plan | Review implementation plans before coding |
| tetrad_review_code | Review code before saving |
| tetrad_review_tests | Review tests before finalizing |
| tetrad_confirm | Confirm agreement with received feedback |
| tetrad_final_check | Final verification before commit |
| tetrad_status | Check health of evaluators |
{
"mcpServers": {
"tetrad": {
"command": "npx",
"args": ["-y", "@samoradc/tetrad"],
"env": {
"OPENAI_API_KEY": "your-value",
"GOOGLE_API_KEY": "your-value",
"DASHSCOPE_API_KEY": "your-value",
"GEMINI_API_KEY": "your-value",
"OPENAI_BASE_URL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
To use Tetrad, you need at least one of the AI CLIs installed and authenticated: | CLI | Installation | Auth Without API Key? | Free Tier | |-----|--------------|----------------------|-----------| | Codex CLI | npm i -g @openai/codex | ✅ ChatGPT Plus/Pro/Business | Via subscription | | Gemini CLI | `npm i -g
| Variable | Description | Required |
|---|---|---|
| OPENAI_API_KEY | Credential the server authenticates with. | Yes |
| GOOGLE_API_KEY | Credential the server authenticates with. | Yes |
| DASHSCOPE_API_KEY | Credential the server authenticates with. | Yes |
| GEMINI_API_KEY | Credential the server authenticates with. | Yes |
| OPENAI_BASE_URL | Endpoint or connection string the server talks to. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.