bug-vet
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
bug-vet hunts the bugs ordinary linters miss: a sibling provider quietly drops a kwarg, a parser eats a trailing backtick, a Sequence parameter is narrowed to list, a generator is drained twice. A promising candidate has to become a self-checked executable probe, survive a falsifier, and clear red/green evidence before it counts as a finding.
Zero runtime dependencies, Python 3.10+, stdlib-only MCP server. Everything runs locally: no account, no telemetry, no code leaves your machine.
Quickstart
pip install "git+https://github.com/zhengqiuyang/bug-vet.git"
# Read-only scan. Artifacts land in the runs dir, never inside the target repo.
bug-vet scan --mode all /path/to/repo --name demo --runs-dir ~/.bug-vet-runs
bug-vet status demo --runs-dir ~/.bug-vet-runsWorking on bug-vet itself: pip install -e ".[dev]" then pytest -q (41 tests).
Related MCP server: Hoplon
Why it exists
Static rules find patterns; LLM review finds plausible stories; coverage finds executed lines. None of them prove that this input breaks this contract. bug-vet starts from a contract (docstring, type, sibling symmetry, round-trip pair), then demands a minimal reproduction that fails for the right reason.
Approach | Typical output | Reproducible? | Rejects weak findings? |
Rule-based linters | pattern matches | no | n/a |
LLM code review | plausible explanations | no | inconsistently |
Coverage | lines executed | no | n/a |
bug-vet | contract violation + probe | yes, exit 0/1 | falsifier + fail-closed gate |
How it works
flowchart LR
A[scan] --> B[candidates]
B --> C[probe + self_check]
C --> D[falsify]
D --> E[ledger]
E --> F[gate / report]Discovery is read-only and produces leads, never findings. The discipline is Hunter != Verifier: a separate falsifier checks upstream compensation, surrounding tests, and probe vacuity. Evidence is ranked doc < probe < test < published < runtime; anything missing a self_check(), run in a different environment, or failing with an uncaught traceback stays unknown and blocks readiness.
Proof
ContractBench replays 12 real bugs that were merged upstream. Pre-fix recall@5 is10/12 (83.3%), with 7/12 at rank #1; the post-fix negative control clears 11/11; zero environment false positives. Full table in BENCHMARK.md, rerun with bug-vet bench --cases bench/cases.json.
The suite covers instructor, litellm, pr-agent, headroom, DeepTutor, haystack, mujoco, home-assistant/core, and testsprite-cli.
What it finds
Scan | Catches |
| ABC subclass kwarg omission, |
| naive fence stripping, incomplete SSE/line-ending terminators, unescaped Markdown round-trips, unsafe |
|
|
| docstring and doc-example contracts, inverse-pair round-trips, unwired callsites, doc drift |
Five compiled playbooks (bug-vet playbook --list) describe each family's probe recipe and the falsification traps to check first.
Integrations
bug-vet is agent-agnostic: the CLI and the MCP server write to the same evidence ledger, so any coding agent can run a full audit.
Host | How to connect |
Any MCP client (Claude Code, Cursor, Codex, dsh, custom agents) | run |
Antigravity (optional) |
|
{ "mcpServers": { "bug-vet": { "command": "bug-vet", "args": ["mcp"] } } }The server exposes nine tools: bv_scan, bv_playbook, bv_probe, bv_falsify, bv_shrink, bv_verify, bv_ledger, bv_gate, bv_report.
The optional Antigravity bundle packages the same workflow as three on-demand skills, a bug-vet-hunter writer plus a read-only bug-vet-falsifier, always-on rules, and two PreToolUse hooks that reject vacuous probes under probes/ and force confirmation before git push, PR creation, or package publishing.
Command | Purpose |
| run every discovery oracle |
| promote a ranked candidate into the ledger |
| scaffold a probe that must define |
| execute probes, record evidence, settle obligations |
| audit a probe for fake-green patterns |
| snapshot pre-fix, compare post-fix (red → green) |
| fail-closed readiness verdict |
| REPORT.md, findings.json, SARIF 2.1.0, PR.md |
Limits
bug-vet produces evidence, not fixes. Each candidate still needs a human- or agent-written probe, and static heuristics miss dynamic contracts, runtime configuration, and cross-language call graphs. The hooks only guard file writes: a probe created by a shell heredoc bypasses them.
Docs
User guide (中文): full CLI/MCP walkthrough and plugin setup.
Benchmark: per-case recall and post-fix control.
Changelog: what changed in each release.
License: MIT.
Issues and PRs are welcome. If you point bug-vet at a repository, please keep the run artifacts outside it (--runs-dir) so the target tree stays clean.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Live GitHub repo AST X-Ray, 42 coding-agent DoD gates, Git worktree guards & brownfield baselines.
Live behavioral security verifier, schema auditor, and trust oracle for A2A, MCP & x402 agents.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Tamper-evident proof creation and verification for AI agents via MCP, A2A, and REST.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to record auditable work ledgers with evidence chains, from contract to proof packet, via MCP tools for file scanning, code review, and issue triage.7MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents and hosts to enforce deterministic repository boundaries via MCP, providing structured reads, supervised edits, snapshots, audits, and recovery with machine-readable evidence.MIT
- FlicenseNot gradedqualityBmaintenanceEnables reproducible evaluation of AI coding agents by exposing repository inspection, code editing, test running, and deterministic verification through MCP tools.-
- FlicenseNot gradedqualityBmaintenanceEnables coding agents to run bounded local profiling, tracing, benchmarking, and capture operations from explicit artifacts or commands, then inspect typed evidence, provenance, coverage, limitations, and preserved replay sources through MCP tools.-