agent-gate — fail-closed quality gate + hash-chained receipt led…
@Jott2121
About agent-gate — fail-closed quality gate + hash-chained receipt led…
MCP server that adds a fail-closed quality gate and hash-chained receipt ledger to any AI agent workflow.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"agent-gate": {
"command": "python",
"args": [
"-m",
"agent_gate.server"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is agent-gate?
agent-gate is an MCP server that lets an AI agent gate its own work before claiming completion. It enforces deterministic checks, an independent refute-first review, and records tamper‑evident, hash‑chained receipts. It is designed for developers operating AI agent systems who need formal quality assurance rather than self‑grading.
How to use agent-gate?
Install with pip install mcp-agent-gate. Add it to an MCP client configuration (e.g., Claude Desktop or Claude Code) using the command python -m agent_gate.server. The agent then calls verify_gate() before reporting done, and receipts are stored at ~/.agent-gate/receipts.jsonl (overridable with AGENT_GATE_LEDGER). It can also be used directly via Python imports.
Key features of agent-gate
- Fail‑closed checklist: a check passes only if explicitly true.
- Tamper‑evident, hash‑chained receipt ledger.
- Human‑gated by default for irreversible actions.
- Pure stdlib core (gate and ledger modules).
- MCP adapter for easy integration with AI clients.
Use cases of agent-gate
- Agent must satisfy a ‘ship’ gate before delivering output.
- Record and later verify an append‑only decision log.
- Hard‑enforce independent review and no‑secrets policies.
- Detect tampering by past receipt edits via
verify_chain().
FAQ from agent-gate
What does fail‑closed mean?
A check counts as satisfied only if it is explicitly true. Missing proof is treated as not passing, mirroring a promotion gate.
How does the receipt ledger work?
Every receipt is appended as a (decision, metric, value, verdict) entry linked by a SHA‑256 hash chain. Calling verify_chain() returns false if any past receipt is edited or deleted.
What are the runtime dependencies?
The core agent_gate/gate.py and agent_gate/ledger.py use only the Python standard library. The MCP server adds one runtime dependency: the mcp package.
Can I use agent-gate without an MCP client?
Yes. Import the gate and ledger classes directly from Python. See the demo in the README for a complete example.
What checks are in the default ‘ship’ gate?
The default gate requires: deterministic checks pass, independent refute review, no secrets exposed, human approval if the action is irreversible, and an honest receipt logged.
Frequently asked questions
What does fail‑closed mean?
A check counts as satisfied only if it is *explicitly* true. Missing proof is treated as not passing, mirroring a promotion gate.
How does the receipt ledger work?
Every receipt is appended as a `(decision, metric, value, verdict)` entry linked by a SHA‑256 hash chain. Calling `verify_chain()` returns false if any past receipt is edited or deleted.
What are the runtime dependencies?
The core `agent_gate/gate.py` and `agent_gate/ledger.py` use only the Python standard library. The MCP server adds one runtime dependency: the `mcp` package.
Can I use agent-gate without an MCP client?
Yes. Import the gate and ledger classes directly from Python. See the demo in the README for a complete example.
What checks are in the default ‘ship’ gate?
The default gate requires: deterministic checks pass, independent refute review, no secrets exposed, human approval if the action is irreversible, and an honest receipt logged.
Basic information
More AI & Agents MCP servers

Transform MCP
UnstructuredThe Unstructured Transform MCP Server connects your ADK agent to Unstructured, a document processing platform that turns raw files into structured, AI-ready data. This integration gives your agent the ability to parse PD
Model Context Protocol for Unreal Engine
chongdashuEnable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
MCP Server - Remote MacOs Use
baryhuangThe only general AI agent that does NOT requires extra API key, giving you full control on your local and remote MacOs from Claude Desktop App

bsv.cx
Andy RoweTimestamp and verify evidence on-chain. Let your agent prove what it saw and when. bsv.cx gives an AI agent verifiable memory. Timestamp a hash of any output, archive a web page as it looked, or fetch a URL with a recei
21st.dev Magic AI Agent
21st-devIt's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
Comments