Verdict MCP
Verdict MCP is a gatekeeper server that enforces code completeness, test coverage, and premium UI/UX standards on AI agents by auditing code, validating design tokens, and running tests with 95% coverage and 80% mutation score gates.
README
<div align="center"> <img src="assets/logo.svg" alt="Verdict Logo" width="160" height="160"> <h1 align="center" style="font-size: 48px; font-weight: 700; letter-spacing: 4px; background: linear-gradient(135deg, #00f0ff, #ff00ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 10px 0 0 0;">VERDICT</h1> <p align="center"><strong>The Unbypassable Code Quality Gatekeeper for AI Agents</strong></p>
<hr style="border: 1px solid rgba(255,255,255,0.06); width: 80%;"> </div>
<br>
<p align="center"> <b>English</b> · <a href="#features">Features</a> · <a href="#quick-start">Quick Start</a> · <a href="#the-problem">The Problem</a> · <a href="#architecture">Architecture</a> · <a href="#api-endpoints">API</a> · <a href="#multi-language-support">Multi-Lang</a> </p>
<br>
The Problem
AI agents suffer from Context Drift, Illusion of Completion, and Quality Degradation:
❌ Mark tasks DONE but leave empty pass statements
❌ Skip critical error handling
❌ Generate unstyled "developer art" UIs
❌ Write superficial tests with no real assertions
❌ No accountability — human must review everything manually
The Solution
Verdict is a programmatic gatekeeper that sits between the AI agent and your codebase. Every task must pass all three gates before being marked complete:
<p align="center"> <code style="background: #1a1a2e; padding: 4px 12px; border-radius: 6px;">Agent Writes Code</code> <span style="color: #00f0ff; font-size: 20px;"> → </span> <code style="background: #1a1a2e; padding: 4px 12px; border-radius: 6px; border-left: 3px solid #00f0ff;">AST Audit</code> <span style="color: #00f0ff; font-size: 20px;"> → </span> <code style="background: #1a1a2e; padding: 4px 12px; border-radius: 6px; border-left: 3px solid #ff00ff;">UI Validation</code> <span style="color: #00f0ff; font-size: 20px;"> → </span> <code style="background: #1a1a2e; padding: 4px 12px; border-radius: 6px; border-left: 3px solid #00ff88;">95% Coverage + 80% Mutation</code> <span style="color: #00f0ff; font-size: 20px;"> → </span> <code style="background: #00ff88; color: #0a0a0f; padding: 4px 12px; border-radius: 6px; font-weight: bold;">✅ COMPLETED</code> </p>
Features
<table>
<tr>
<td align="center" width="25%">
<h3>🔬 AST Audit</h3>
<sub>Detects pass, # TODO, missing try-except, missing docstrings</sub>
</td>
<td align="center" width="25%">
<h3>🎨 UI Dictatorship</h3>
<sub>Enforces glassmorphism, neon accents, custom stylesheets — rejects defaults</sub>
</td>
<td align="center" width="25%">
<h3>🧪 Mutation Testing</h3>
<sub>80%+ mutation score required — tests must catch injected bugs</sub>
</td>
<td align="center" width="25%">
<h3>📊 95% Coverage</h3>
<sub>Strict line coverage gate — no untested code allowed</sub>
</td>
</tr>
<tr>
<td align="center">
<h3>🌐 Multi-Language</h3>
<sub>JS, TS, Go, Rust, Java, Kotlin, React — not just Python</sub>
</td>
<td align="center">
<h3>🔄 REST API</h3>
<sub>Any agent can call Verdict via HTTP — no MCP required</sub>
</td>
<td align="center">
<h3>🐳 Docker Ready</h3>
<sub>One command: <code>docker-compose up</code></sub>
</td>
<td align="center">
<h3>⚡ VS Code Ext</h3>
<sub>Ctrl+Shift+V to audit right from your editor</sub>
</td>
</tr>
<tr>
<td align="center">
<h3>🔗 GitHub Actions</h3>
<sub>Zero-config CI/CD — runs on every push and PR</sub>
</td>
<td align="center">
<h3>📸 Git Snapshots</h3>
<sub>Auto-rollback on test failure — never lose working code</sub>
</td>
<td align="center">
<h3>🧩 Dependency DAG</h3>
<sub>Tasks can't start until dependencies are complete</sub>
</td>
<td align="center">
<h3>📜 Plan Integrity</h3>
<sub>SHA-256 hash chain prevents plan tampering</sub>
</td>
</tr>
</table>
Quick Start
1. Install
pip install verdict-mcp
# OR from source:
git clone https://github.com/Zubair-z/VERDICT-MCP.git
cd VERDICT-MCP
pip install -r requirements.txt
2. Scaffold a project
verdict init myproject
cd myproject
This creates: plan.md + auth_handler.py + db_handler.py + tests/test_auth_handler.py
3. Run as MCP Server (for AI agents)
python -m verdict_mcp
4. Run as REST API (for any HTTP client)
python -m verdict_mcp.api_server
# → http://localhost:8000
curl http://localhost:8000/health
5. Run full validation pipeline
curl -X POST http://localhost:8000/pipeline/run \
-H "Content-Type: application/json" \
-d '{
"task_id": "TASK_001",
"source_files": ["auth_handler.py"],
"test_file": "tests/test_auth_handler.py",
"target_file": "auth_handler.py",
"ui_file": "main_window.py"
}'
Architecture
graph LR
A[AI Agent] -->|MCP / HTTP| B{Verdict}
B --> C[AST Auditor]
B --> D[UI Enforcer]
B --> E[Test Runner]
C --> F[pass/TODO/err/docstring checks]
D --> G[glassmorphism/neon/layout]
E --> H[pytest + coverage + mutation]
F & G & H --> I{TASK COMPLETED?}
I -->|Yes| J[Git Snapshot]
I -->|No| A
API Endpoints
| Method | Path | Description |
|---|---|---|
GET |
/health |
Server health |
POST |
/plan/init |
Initialize plan |
GET |
/plan/summary |
Get task states |
GET |
/plan/task/{id} |
Task details |
POST |
/audit |
AST audit files |
GET |
/ui/style-guide |
Design tokens |
POST |
/ui/validate |
Validate UI |
POST |
/tests/run |
Coverage + mutation |
GET |
/coverage |
Coverage report |
POST |
/pipeline/run |
Full lifecycle |
Multi-Language Support
| Language | Extensions | Checks Applied |
|---|---|---|
| Python | .py |
Full AST audit (pass, TODO, try-except, docstrings) |
| JavaScript | .js |
TODO, empty functions, missing try-catch |
| TypeScript | .ts |
TODO, empty functions, missing try-catch |
| React | .jsx, .tsx |
TODO, empty components, missing error handling |
| Go | .go |
TODO, empty funcs, missing error handling |
| Rust | .rs |
TODO, empty fn, missing error handling |
| Java | .java |
TODO, empty methods, missing try-catch |
| Kotlin | .kt |
TODO, empty fun, missing error handling |
CLI Commands
# Scaffold a new project
verdict init myproject
# Run Verdict checks on current project
verdict verify
# Start MCP server
python -m verdict_mcp
# Start REST API
python -m verdict_mcp.api_server
# Run tests locally
python -m pytest tests/ -v --cov=verdict_mcp --cov-report=term-missing
Docker
# Start REST API
docker-compose up verdict-mcp
# Start MCP stdio mode
docker-compose up verdict-mcp-stdio
VS Code Extension
- Copy
.vscode-extension/folder to~/.vscode/extensions/verdict-mcp/ - Restart VS Code
- Open a Python file → press
Ctrl+Shift+V - Or enable auto-audit on save in settings
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
<p align="center"> <a href="https://github.com/Zubair-z/VERDICT-MCP/issues">🐛 Report Bug</a> · <a href="https://github.com/Zubair-z/VERDICT-MCP/issues">✨ Request Feature</a> · <a href="CONTRIBUTING.md">🧑💻 Contribute</a> </p>
<div align="center"> <sub>Built with ❄️ by the Verdict Team</sub> <br> <sub>MIT License · Copyright 2026</sub> <br><br> <a href="https://github.com/Zubair-z/VERDICT-MCP"> <img src="https://img.shields.io/badge/GitHub-VERDICT--MCP-00f0ff?style=flat-square&logo=github"> </a> </div>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。