jury-mcp
This MCP server lets you invoke Jury's multi-model council for architectural planning, code review, and targeted technical consultation over stdio JSON-RPC.
jury_plan: Deliberate an engineering task or specification to get consensus readiness, critical risks, required modifications, and an actionable file execution plan; supports strict/no-cache/timeout options, context files or globs, and async ticket registration.
jury_review: Review a unified diff or staged/unstaged git changes against a branch, focused on security, performance, architecture, or general concerns; returns findings, POSIX unified diff patches, and SARIF v2.1.0 diagnostics, with strict security enforcement.
jury_ask: Consult the council on architectural or design questions for recommended patterns, confidence scores, tradeoff matrices, and implementation examples; supports focus domains, quick top-2-model mode, and optional context.
Integration features: Works with Claude Desktop, Cursor, Cline, and similar MCP clients; supports caching, secret redaction, deterministic CI exit codes, and daemon-less operation.
Provides code review and deliberation over local Git staged/unstaged working tree changes and raw Git diffs, and can synthesize POSIX patches suitable for git apply.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jury-mcp review my staged diff for race conditions and security issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Jury
The Multi-Model Deliberation Engine & Consensus Substrate for AI Coding Agents and Developers.
Jury offloads high-stakes architectural planning, diff reviews, and adversarial verification from local coding agents to an orchestrated council of frontier models—operating with zero resident daemon footprint, zero host RCE vulnerabilities, and zero IDE timeouts.
Architecture Overview
┌──────────────────────────────────────┐
│ Host Coding Agent / User IDE │
│ (Cursor, Claude Desktop, Antigravity)│
└──────────────────┬───────────────────┘
│
┌─────────────────────┴─────────────────────┐
│ │
[ Standalone CLI ] [ MCP Stdio Server ]
`jury review | plan` `jury-mcp`
│ │
└─────────────────────┬─────────────────────┘
▼
┌──────────────────────────────────────┐
│ Jury Mesh Core Engine │
├──────────────────────────────────────┤
│ • Secret Redaction (Entropy H ≥ 4.5) │
│ • POSIX Diff Clamper │
│ • 5-Vector Composite Cache Key │
│ • Singleflight Request Coalescing │
└───────────────────┬──────────────────┘
▼
┌────────────────────────────────────────────────────────────────────────┐
│ 3-Stage Dialectical Falsification │
│ │
│ [Stage 1: Blind Ballots] │
│ Alpha (Architect) Beta (Adversary) Gamma (Minimalist) │
│ e.g. DeepSeek / Claude e.g. Llama 3.3 / Qwen e.g. Qwen / GLM │
│ │ │ │ │
│ └─────────────────────────┼───────────────────────┘ │
│ ▼ │
│ [Stage 2: Cross-Examination] │
│ • Unsubstantiated claims discarded │
│ • Balanced Position Calibration (BPC) 2-pass permutation │
│ │ │
│ ▼ │
│ [Stage 3: Decoupled Arbitration] │
│ Arbiter: Decoupled Judge (e.g. DeepSeek R1 / o3-mini / Qwen) │
│ • Reconciles conflicts & produces definitive verdict │
│ • Synthesizes machine-actionable POSIX patch (`git apply`) │
│ • Generates OASIS SARIF v2.1.0 diagnostics │
└──────────────────────────────────────┬─────────────────────────────────┘
▼
┌──────────────────────────────────────┐
│ Daemon-less State Engine (WAL) │
│ `~/.jury/state.db` │
│ • OS FileLock + BEGIN IMMEDIATE │
│ • Continuous Two-Phase Rate Limiting │
│ • Persistent Audit Ledger │
└──────────────────────────────────────┘Related MCP server: RepoPulse MCP Server
Key Capabilities
Zero-Daemon Architecture: Operates purely in-process using an embedded SQLite WAL database (
~/.jury/state.db) guarded by OS file locks. No fragile Docker daemons, background services, or memory leaks.Differentiated 4-Role Council:
Seat 1 (
alpha): Systems Architect & Invariant Verifier (e.g. DeepSeek V3, Claude 3.7 Sonnet, GLM-5.3)Seat 2 (
beta): Adversary, Security & Race Condition Auditor (e.g. Llama 3.3 70B, Qwen 3.8, GPT-4o)Seat 3 (
gamma): Simplicity Minimalist & Anti-Bloat / YAGNI Advocate (e.g. Qwen 2.5 Coder, GLM-5.3)Judge (
arbiter): Decoupled Consensus Synthesizer & Patch Generator (e.g. DeepSeek R1, o3-mini)
Zero Host RCE Security: Raw shell execution is prohibited. Verification tests execute strictly via
TypedVerificationContractwith an immutable runner whitelist (pytest,mypy,cargo_test,npm_test,go_test) running undershell=False.Pre-Flight Secret Redaction: All diffs and prompts are sanitized using high-confidence regex combined with Shannon entropy detection ($H \ge 4.5$), replacing credentials with deterministic synthetic tokens (
<REDACTED_API_KEY:CRC32_HEX>).5-Vector Composite Cache Key: SHA-256 fingerprint over
task_intent || git_head || unstaged_diff || staged_diff || untracked_hash || config_hash || prompt_version. Modifying any file instantly triggers cache invalidation.Machine-Actionable Outputs:
Valid POSIX unified diffs (
diff --git) ready forgit apply.Industry-standard OASIS SARIF v2.1.0 diagnostics for IDE problem panes and CI gates.
Installation
# Clone repository
git clone https://github.com/anixes/jury.git
cd jury
# Install in editable mode
pip install -e .
# Or with dev dependencies (pytest, etc.)
pip install -e ".[dev]"Verify the installation:
jury --version
# Outputs: jury, version 3.0.0Quickstart
1. Initialize Configuration & Agent Rules
Generate project-local configuration and IDE instruction files (AGENTS.md, .cursor/rules/jury.mdc, CLAUDE.md):
jury init2. Configure Credentials & Providers
Jury is 100% provider-agnostic. You can use any OpenAI-compatible provider (OpenRouter, Groq, DeepSeek, Cerebras, OpenAI, Anthropic, Constellation Gate, or local Ollama / vLLM).
Set your API keys via environment variables:
# OpenRouter (Unified multi-model access)
export OPENROUTER_API_KEY="sk-or-v1-..."
# Groq (Ultra-fast LPU inference)
export GROQ_API_KEY="gsk_..."
# DeepSeek / OpenAI / Cerebras
export DEEPSEEK_API_KEY="sk-..."
export OPENAI_API_KEY="sk-..."
# Constellation Gate (Free frontier tier)
export TRIAD_API_KEY="cg-..."Or configure your multi-provider council in .jury/config.yaml:
version: "3.0.0"
# 1. Register only the providers you use
providers:
openrouter:
base_url: "https://openrouter.ai/api/v1"
api_key: "${OPENROUTER_API_KEY}"
groq:
base_url: "https://api.groq.com/openai/v1"
api_key: "${GROQ_API_KEY}"
deepseek:
base_url: "https://api.deepseek.com/v1"
api_key: "${DEEPSEEK_API_KEY}"
constellation:
base_url: "https://gateway.constellationgate.ai/v1"
api_key: "${TRIAD_API_KEY}"
ollama:
base_url: "http://localhost:11434/v1"
api_key: "ollama"
# 2. Assign any model from any provider to each seat
models:
alpha:
model_id: "deepseek/deepseek-chat"
provider: "openrouter"
role: "architect"
max_diff_tokens: 16000
description: "Systems Architect & Invariant Verifier"
beta:
model_id: "llama-3.3-70b-versatile"
provider: "groq"
role: "adversary"
max_diff_tokens: 5500
description: "Adversary & Security Auditor"
gamma:
model_id: "qwen/qwen-2.5-coder-32b-instruct"
provider: "openrouter"
role: "minimalist"
max_diff_tokens: 16000
description: "Simplicity Minimalist & Anti-Bloat"
arbiter:
model_id: "deepseek/deepseek-reasoner"
provider: "deepseek"
role: "arbiter"
max_diff_tokens: 20000
description: "Decoupled Judicial Arbiter"
strict_arbiter_decoupling: false
quorum_min: 23. Verify Health
Run pre-flight connectivity, token bucket, and database lock diagnostics:
jury testStandalone CLI Usage
Code Review (jury review)
Audit working tree modifications before committing:
# Review staged changes
jury review --staged
# Review unstaged changes
jury review
# Strict CI Gate: fail build on non-approval or security findings
jury review --staged --strict
# Output machine-readable JSON or SARIF report
jury review --staged --json
jury review --staged --sarif report.sarifArchitectural Planning (jury plan)
Submit an architectural specification or feature request for rigorous multi-model critique:
jury plan --spec docs/rfc-caching.md
jury plan --spec "Design a distributed write-ahead log with raft consensus"Freeform Consultation (jury ask)
Ask specific architectural or security questions:
jury ask "What are the edge-case failure modes of two-tier file locking on Windows NTFS?"Audit Logs & Telemetry (jury logs)
Inspect deliberation history and metrics stored in SQLite WAL:
# View last 10 deliberation tickets
jury logs --limit 10
# View detailed JSON audit trail
jury logs --jsonModel Context Protocol (MCP) Integration
Jury Mesh exposes native tools over stdio JSON-RPC for Claude Desktop, Cursor, Antigravity, Cline, and Roo Code.
Server Tools
jury_review: Reviews working tree changes or raw git diffs.jury_plan: Conducts multi-model architectural falsification on a specification.jury_ask: Deliberates on complex technical queries across juror models.
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"jury": {
"command": "jury-mcp",
"args": [],
"env": {
"TRIAD_API_KEY": "your-api-key"
}
}
}
}Cursor / Cline Configuration
In .cursor/mcp.json:
{
"mcpServers": {
"jury": {
"command": "jury-mcp",
"args": []
}
}
}Note on Stdio Hygiene:
jury-mcpstrictly isolatesstdoutexclusively for JSON-RPC framing. All internal logging, probe messages, and warnings are redirected tostderr.
Deterministic CLI Exit Codes
Jury Mesh provides deterministic, script-friendly exit codes for seamless CI/CD integration:
Exit Code | Classification | Description |
|
| Consensus reached, review approved, or command succeeded cleanly. |
|
| Changes requested, architectural objections raised, or test failed. |
|
| Upstream provider outage or failure to meet minimum quorum ($Q < Q_{min}$). |
|
| Invalid CLI arguments, missing configuration, or unreadable files. |
|
| Secret leak detected or contract validation failure. |
Development & Testing
Run the comprehensive test suite:
# Run unit tests
pytest tests/unit/ -v
# Run E2E suites
pytest tests/e2e/ -v
# Run full test suite with coverage
pytest --cov=src/jury tests/License
MIT License. See LICENSE for details.
Available Tools
3 toolsjury_askB
Consult the multi-model architecture council for targeted design advice. Returns recommended architectural pattern, confidence score, tradeoff matrix, and concrete implementation examples.
Inputs: question (required), focus, query, quick, +1 more.
jury_planB
Deliberate an architectural implementation plan with the multi-model jury. Synthesizes consensus readiness score, critical risks, required modifications, and an actionable file execution plan.
Inputs: task (required), options, async_mode, context_files.
jury_reviewB
Review code changes or git diffs with the multi-model jury panel. Performs blind ballots, adversarial cross-examination, and decoupled arbitration, emitting findings, POSIX unified diff patches, and OASIS SARIF v2.1.0 diagnostics.
Inputs: diff, focus, branch, staged, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools target distinct modes: implementation planning, code/diff review, and targeted design advice. jury_plan and jury_ask both involve architectural consultation, so there is some potential overlap, but their outputs and use cases are differentiated well enough.
All tools use the same jury_ prefix followed by a clear action verb: jury_plan, jury_review, jury_ask. The naming is predictable and consistent throughout.
Three tools are well-scoped for a multi-model jury server: one for planning, one for review, and one for targeted advice. Each tool has a clear purpose and earns its place.
The server covers the core consultation workflows: planning, code review, and architectural advice. Minor gaps exist around session management, follow-up deliberation, or jury configuration, but agents can work around them.
Related MCP Connectors
Serves your design system and coding standards to coding agents, so they stop guessing.
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Coordination hub for AI coding agents: message teammates, ask humans, audit every event.
AI-native programming language and toolchain for accountable, verifiable agent-driven development.
Related MCP Servers
- AlicenseCqualityDmaintenanceConnects MCP-enabled editors to GitHub Copilot CLI for non-interactive code analysis, batch processing, and code review.1031 npm5MIT
- AlicenseNot gradedqualityBmaintenanceExposes code-review and issue-triage tools to AI assistants over stdio, letting them evaluate unified pull-request diffs for maintainer remarks, slice diffs into categorized AST hunks, and classify GitHub issues by priority while synthesizing minimal reproduction stubs.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to open, edit, check, run, emit, and save source programs through structured, revision-checked tools over stdio, confining paths to the launch root and returning diagnostics with fixes for rejected edits.4 npm2Apache 2.0
- MIT