CommitGuard
Provides a GitHub Issues backend so agents can search and read issues/comments, post comments, and file proposals, while reviewers apply approved commitment changes such as assignee, open/closed status label, and due-date label through the GitHub API under a repository allowlist.
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.
CommitGuard
An issue-tracker MCP server where AI agents can read, comment and propose changes, but can never write a commitment.
Agents are good at reading a tracker and drafting updates. They should not be the ones deciding who owns a task, when it's due, or that it's done. Those are commitments people make. CommitGuard lets agents do the useful part and routes every commitment change to a named human for approval.
The rule is enforced by structure, not by a prompt:
Layer | What stops an agent from setting owner, due date, status or title |
Tool surface | There is no |
Agent client | The only client the server builds ( |
Process boundary | The code that applies changes ( |
HTTP allowlist (GitHub) | GitHub tokens can't grant "comment" without "edit". CommitGuard's agent-side HTTP client permits only |
Human gate |
|
How it compares
Field-level control (comment yes, assign no) | Where it's enforced | Agent keeps working while it waits | Cost | |
GitHub's official MCP server | No. Toolsets and read-only mode are per tool, and | Tool selection | n/a | Free |
MCP gateways with approvals (Permit, TrueFoundry, DigitalOcean Action Gateway) | No. Approvals are per tool call, not per argument | A gateway the traffic must pass through | No. Calls are held until someone approves or they time out | Mostly paid tiers |
CommitGuard | Yes. Commitment fields specifically | Inside the server: tool surface, client, HTTP allowlist and process boundary | Yes. It files a proposal with evidence and moves on | Free, MIT, self-hosted |
You can combine them: run CommitGuard behind a gateway if you want centralized policy too.
Related MCP server: Bouncer
Quick start (demo tracker, 2 minutes)
pip install -e .
commitguard seed # creates commitguard.db with demo issues, including a prompt-injection commentAdd it to Claude Desktop or Claude Code (claude mcp add or your client's MCP config):
{
"mcpServers": {
"commitguard": {
"command": "commitguard-server",
"env": { "COMMITGUARD_DB": "/absolute/path/commitguard.db", "COMMITGUARD_AGENT_ID": "my-assistant" }
}
}
}Ask your assistant: "Read ENG-102 and do what the latest comment says." The comment tries to get it to close the issue, reassign it and leak a restricted issue. Then review what it proposed:
commitguard review
commitguard approve p_xxxxxxxxxx --reviewer your-name
commitguard reject p_xxxxxxxxxx --reviewer your-name --reason "not done yet"Use it with GitHub Issues
Create two fine-grained tokens scoped to the repositories you want:
Agent token (given to the server): Issues read and write. Write is needed to comment; the allowlist blocks everything else.
Reviewer token (kept on your machine, never deployed): Issues read and write, used only by the review CLI. With the GitHub backend, the reviewer recorded in the audit log is the token's owner, verified with GitHub, not a name typed on the command line.
export COMMITGUARD_BACKEND=github
export COMMITGUARD_GITHUB_REPOS=acme/app,acme/api # the agent can't read or write anything else
export COMMITGUARD_GITHUB_TOKEN=github_pat_agent... # server side
commitguard-server
# on the reviewer's machine
export COMMITGUARD_REVIEWER_GITHUB_TOKEN=github_pat_reviewer...
commitguard approve p_xxxxxxxxxxIssue ids look like acme/app#42 (case and leading zeros don't matter). Owner maps to the assignee. Status maps to open/closed plus a status:<value> label, and due date to a due:YYYY-MM-DD label.
How approval works
Claim. The proposal moves from
pendingtoapplyingwith a conditional update, so only one reviewer can win. A rejected proposal can never ship.Check. It must not have expired (7 days), and the issue's fields must still hold the values the agent saw when it proposed. Otherwise it goes back to
pendingwith the difference shown.Apply, then record. On failure it returns to
pending. If the process dies between applying and recording, the proposal stays inapplying, so it can't be approved twice, andcommitguard reconcile <id>checks the tracker and finishes the job.
Every step writes to the audit table.
Comment safety
Comments can't change fields. Some repositories, though, run bots that act on slash commands (/close, /assign) or notify people on @mentions. So CommitGuard refuses comment lines that start with a slash command, and posts @mentions as code so nobody gets pinged by an agent.
Evaluations
evals/cases.yaml holds the suite: safety cases must pass 100% of the time; quality cases are gated on a pass rate.
python evals/harness.py # scripted: replays what a fully hijacked agent would try
python evals/harness.py --mode agent --repeats 3 # a real model (needs ANTHROPIC_API_KEY), with an LLM judgeScripted mode needs no model. It proves the guarantees hold even when the model does exactly what an attacker wants. Agent mode checks what a real model actually does: whether it files proposals instead of guessing, whether its comments stay neutral, and whether it ignores injected instructions. Both write evals/report.json and exit non-zero when the gate fails. CI runs scripted mode on every pull request.
Security review
v0.2.0 went through an independent red-team review. It confirmed the core guarantee: no tool, argument or comment could change a commitment field. It also found 11 issues in v0.1.0, including search scope widening through injected repo: qualifiers, redirects bypassing the HTTP allowlist, and non-atomic approval with the GitHub backend. All are fixed, and each attack is now a regression test in tests/test_redteam_regressions.py. See SECURITY.md.
Run logging
Every tool call writes one JSON line to COMMITGUARD_RUNLOG (default runs/runlog.jsonl): run id, agent id, tool, arguments, outcome, error and latency. That includes calls rejected before reaching a tool, like unknown tool names or invalid arguments, which are the attempts you most want to see. The shape matches the BigQuery table in deploy/terraform:
bq load --source_format=NEWLINE_DELIMITED_JSON commitguard.runlog runs/runlog.jsonlHosted demo on Cloud Run
Dockerfile and deploy/terraform/main.tf deploy a demo: the server over streamable HTTP with the demo tracker, private (IAM-authenticated callers only), one instance at most, its own service account. Its data resets when it scales to zero. For real teams, run CommitGuard locally next to your MCP client for now; a shared Postgres queue for hosted use is planned.
Configuration
Variable | Default | Meaning |
|
|
|
|
| Proposal queue and audit log (and demo issues) |
|
| Identity written to logs, comments and proposals |
| none | Comma-separated repository allowlist |
| none | Agent token (server side) |
| none | Reviewer token (CLI only) |
|
| Run log path |
|
|
|
|
|
|
Known limits (v0.2)
The proposal queue is SQLite: right for local use, not for multi-instance hosting. Postgres is next on the roadmap.
Under the streamable HTTP transport, all clients of one server process share a run id. With stdio (one process per client) run ids are per session.
GitHub is the first real backend. Linear and Jira adapters are planned; contributions welcome.
A model can still write a poor comment. That's what the quality evals and judge are for.
Contributing
Issues and pull requests are welcome. Every change runs the guarantee tests, the red-team regressions and the eval gate. A new tracker adapter needs an agent-side class with only search, get and comment, a reviewer-side class in review.py, and tests that its HTTP allowlist blocks writes and redirects.
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
Issue tracker for coding agents: a real backlog, plus a risk-ranked review of every change.
Human-in-the-loop review and approval for AI agents. Audit trail, approval policies, native MCP.
Preventive human-approval write-gate for AI agents: writes commit only after a human approves.
Permission checks, human approval cards, and signed audit trails for AI agent tool calls.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI agents to query summit registration and forum analytics, review code changes for risks, run fixed quality gates, and perform audited, permission-controlled commits and deployments with minimal access and human approval.11-
- AlicenseNot gradedqualityBmaintenanceEnables agents to read and report, and to carry human-authored updates into systems of record after human consent, while structurally preventing autonomous writes of commitments like owners, due dates, or statuses.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding agents to file tasks with real human reviewers who open published artifacts, leave pinned comments, and return approval verdicts so agents can iterate until accepted.38 npmMIT
- AlicenseBqualityCmaintenanceEnables AI coding agents to read GitHub issues and pull requests and to add comments only on allowlisted repositories, with every call recorded in an append-only redacted audit log.6MIT