agent-evidence-check-mcp
Uses git state as deploy evidence: flags dirty worktrees (and forbids stash/checkout clearing), requires an explicit commit SHA that is present on a remote-tracking branch, and detects hotpatch drift so the host returns to git.
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.
agent-evidence-check
Package rename: published as
agent-evidence-check(formerly@majiturbo/deploy-check). Config filedeploy-units.jsonand MCP toolsdeploy_check_*are unchanged.
Coding agents treat “right direction / fixed / tests green / it’s live” as settled facts, while the worktree, test exit code, and live units often hold no receipt. Vendor sandboxes stop dangerous commands; agent-evidence-check stops judgments without evidence—closed-registry checks at four moments, not semantic interrogation on every message.
In day-to-day use the model sounds confident: it follows the prompt without naming a nearer path, stays in one failing approach class for eight edits and still says “fixed,” claims green without a recorded exit 0, or ships one unit and announces the whole surface is live. That is not a permissions miss—it is the conclusion arriving before the evidence.
This library is CLI + MCP (same tools) plus optional thin hooks for direction, loop, done, and deploy. It does not scrape chat and is not premise middleware on every message. The caller (or the agent via MCP) submits the record; the checks only ask whether the receipt holds.
They say | What’s missing |
“I’ll just follow the prompt.” | A nearer / cheaper path written down |
“Fixed.” | Leaving the approach class that already failed |
“Tests are green / we’re done.” | A recorded exit code |
“It’s live.” | Clean tree, pushed SHA, every unit matches observe |
Who this is for
You run Cursor / Claude Code / Codex (or similar) agents and get confident “done / fixed / live” claims without a record
You want hooks + MCP, not another every-message prompt wrapper
You care about direction mistakes, repair loops, fake-green tests, and partial deploys—the failure modes sandboxes do not close
Search-ish keywords agents and humans use: coding agent evidence, agent hooks, stop gate, repair loop, test wash, deploy verify, MCP judgment tools.
Related MCP server: Living Stack Community
Features
Four judgments —
direction,loop,done, and deploy (pre/verify)Closed check registry — agents pick ids; they cannot invent check names (
custom:only for extensions)CLI + MCP — same API; tools
deploy_check_direction/_loop/_done/_pre/_verifyOpt-in per repo — hooks may be installed user-wide, but no-op unless the repo has
deploy-units.jsonOptional hard gates — Stop / edit / done gates force the matching call when configured
Post-deploy observe —
http_json,http_text,file_sha256,command,literalFail open on hook errors — missing Node / bad JSON / unknown payload → allow + reason
English default UX — Chinese via
"lang": "zh"orDEPLOY_CHECK_LANG=zhHost matrix — Cursor, Claude Code, Codex, Trae, Copilot, Qoder, DSH (honest matrix)
Install
npm i -g agent-evidence-check
# or one-shot:
npx agent-evidence-check --helpNote: run
npxfrom outside a checkout of this repo. Inside the clone,npxresolves the local package and there is no.binlink — usenode bin/agent-evidence-check.mjs …instead.
Requirements: Node ≥ 22, git on PATH. macOS / Linux / Windows.
Quick start
cd /tmp
npx agent-evidence-check init --cwd /tmp/sample-app
# nearer path identical to current path → blocked
npx agent-evidence-check direction --cwd /tmp/sample-app \
--moment start \
--goal 'speed up the slow page' \
--path 'rewrite the renderer' \
--nearer 'rewrite the renderer' \
--why 'keep going' \
--evidence 'user said the page is slow'Trimmed result (advisory mode still returns allow: true; open gates to enforce):
{
"ok": false,
"findings": [{
"checkId": "direction_review",
"severity": "block",
"premise": "Continuing the current path is justified without writing down another one",
"evidence": "nearer path is the same as the current path"
}]
}Pass by naming a different nearer path:
npx agent-evidence-check direction --cwd /tmp/sample-app \
--moment start \
--goal 'speed up the slow page' \
--path 'rewrite the renderer' \
--nearer 'profile first, then change the hot path' \
--why 'no profile data yet' \
--evidence 'user said the page is slow'Loop and done
# same approach class + "fixed" → blocked
npx agent-evidence-check loop --cwd /tmp/sample-app \
--target src/page.tsx --edits 8 --rejections 3 --claims-fixed \
--tried 'tweak CSS' --next 'tweak CSS'
# leave the class → passes
npx agent-evidence-check loop --cwd /tmp/sample-app \
--target src/page.tsx --edits 8 --rejections 3 --claims-fixed \
--tried 'tweak CSS' --next 'drop the effect' --alternative 'drop the effect'
# no green test on the record → blocked
npx agent-evidence-check done --cwd /tmp/sample-app --no-run --exit-code 1
# recorded exit 0 → passes (also scans uncommitted test diffs for wash)
npx agent-evidence-check done --cwd /tmp/sample-app --no-run --exit-code 0Full contract: docs/judgments.md.
Use it in an app repo
npx agent-evidence-check init --cwd /path/to/your-app
npx agent-evidence-check doctor --cwd /path/to/your-app
# optional user-level hooks (Cursor, Claude Code, Codex, …)
npx agent-evidence-check-install-hooksinit writes deploy-units.json + an AGENTS.md fragment. Edit units and observe blocks — see docs/verify.md and examples/deploy-units.example.json.
Hard gates
"judgments": { "stopGate": true, "editGate": true, "doneGate": true }Then re-run install-hooks. Stop / edit events require a recent passing direction / loop / done receipt in .deploy-check/. Consumer paste rules: docs/rules/agent-evidence-check.md.
Undo hooks: npx agent-evidence-check-install-hooks --uninstall (or node scripts/install-hooks.mjs --uninstall from a clone).
MCP
npx agent-evidence-check-mcpWire stdio MCP in your host; pass { "cwd": "/path/to/your-app" } on each tool call. Fragments: examples/mcp.cursor.fragment.json, examples/mcp.claude-desktop.fragment.json. Details: docs/mcp.md.
Deploy path
npx agent-evidence-check --cwd /path/to/your-app --shadow
npx agent-evidence-check verify --cwd /path/to/your-appDefault mode is advisory. Prefer worktrees + push + CI/GitOps for release; use this when agents still claim “live” without a receipt.
Checks (closed registry)
Agents may only select these ids.
Direction / loop / done (CLI or MCP)
Id | Role |
| Before sinking work: force a record that names a nearer/substitute path |
| When thresholds trip, next step must leave the failed approach class |
| Recorded test exit code |
| Uncommitted test diff must not delete tests or add skip / assert-true washes |
Deploy (shell hooks + pre / verify)
Id | Role |
| Dirty worktree; forbids stash/checkout clearing |
| Require an explicit git SHA |
| SHA must be on a remote-tracking branch |
| Declared units; post-deploy observe matches target |
| Host drift must return to git |
Custom checks: custom: prefix only.
What you get
Piece | Role |
| Opt-in enrollment; units, |
CLI |
|
| Same five judgment tools over stdio MCP |
| Deploy shell bridge; optional Stop / edit gates |
Hook matrix per host |
Non-goals
Semantic premise interception on every message
Replacing vendor shell sandboxes / Auto-review
Invented token-savings or anti-loop marketing numbers
Claiming a host without a documented hook + smoke payload
Documentation
Doc | Contents |
When to call direction / loop / done; evidence fields | |
Consumer | |
Observe types and | |
MCP server setup | |
Install / uninstall hooks | |
Host support matrix | |
Pattern cases that motivated each check | |
Config fragments (hooks, MCP, units) | |
Dev commands and publish checklist | |
Release notes | |
Reporting |
Status
v0.1, experimental. English UX by default; "lang": "zh" or DEPLOY_CHECK_LANG=zh. Trial with DEPLOY_CHECK_MODE=shadow. Some host UIs need a one-time toggle — see docs/hook-setup.md.
Package: agent-evidence-check
Source: Majiturbo/agent-evidence-check
License
MIT
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
Preflight, approve, and prove consequential agent actions with signed evidence and x402 tools.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
MCP deployment checks: required tools, schema drift and verifiable receipts. Free preflight.
Patterns for designing and reviewing AI skills, agents, and multi-agent workflows. Find guidance on context economy, delegation, verification, and tool design; inspect claims, worked examples, maturity labels, and source references. Five read-only tools let agents discover relevant patterns, compare concise cards, read specific sections, and explore relationships. Hosted Streamable HTTP at https://agentic-atlas.dev/mcp/ — no installation, account, or API key required. Browse the atlas at https://agentic-atlas.dev/.
Related MCP Servers
- AlicenseBqualityDmaintenanceA local, evidence-driven MCP runtime and control plane for open-source maintainers that provides workspace-bounded tools including controlled file operations, command execution, validation primitives, durable execution records, and human review workflows via stdio and Streamable HTTP transports.33MIT
- AlicenseAqualityBmaintenanceFree seven-tool proof loop for MCP agents: scoped sessions, bounded authorization, typed outcomes, evidence-bound claims, and tamper-evident local closure. Upgrade to Complete Local for durable memory, recovery, signed traces, release verification, and multi-agent workflows.7Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables MCP-capable harnesses to apply TypeSafe/Jev's System One decision model through judgment primitives and task-shaped tools, with local event logging and Prometheus metrics for impact tracking.1MIT
- AlicenseNot gradedqualityCmaintenanceProvides MCP tools that wrap Jev's finite typed judgments to give agents a semantic decision-control layer for task routing, pre-execution risk gating, and completion verification, keeping final execution authority in code.MIT