ceco proof gate
MCP server that evaluates agent actions against a Policy State Machine, emits a tamper-evident audit trail, and dispatches approved transitions to internal or federated handlers.
README
ceco proof gate
Runtime policy enforcement extracted from ceco-offline
(development @ 484bb16, 2026-07-04).
This package is the proof gate only: an MCP server that evaluates agent actions against a Policy State Machine, emits a tamper-evident audit trail, and optionally dispatches approved transitions to internal / federated handlers.
It does not include the ceco compile / synthesis pipeline (ceco derive,
SMT/Lean generation, ceco-mcp analysis server, or supplier-onboarding demo).
What is included
| Area | Modules |
|---|---|
| Gate MCP + SSE daemon | gate_mcp_server, gate_daemon, gate_config |
| Transition evaluation | runtime, dsl, sexp, simulate (concrete), validator |
| Federation / handlers | mcp_client, mcp_federation, internal_mcp_server, internal_handlers |
| Context & anchors | context_resolvers, policy_anchor, code_guards, proof_cache |
| Audit / attestation | audit/ (hash chain, CPAR/CCPB, optional ZK backends) |
Docs
- Proof Gate API — MCP tool reference
- MCP Architecture — tiered gate / internal / domain
- Gate Runtime Performance — SSE daemon, machine cache, transition index
- Gate Security Findings
- Audit Trail
- Proof Gate State Machine
- Full specification — Part II is the runtime gate; Parts I/III describe the offline compile pipeline (not shipped here)
- Operating notes
Install
cd /home/martyn/repos/ceco
poetry install
# or: pip install -e ".[dev]"
Quick start (payment example)
export CECO_GATE_CONFIG=examples/gate_config.payment.yaml
export CECO_GATE_INTERNAL_MODE=inprocess
# stdio MCP (Cursor / Claude Desktop spawn this)
poetry run ceco-gate-mcp
# or persistent SSE daemon for multi-turn agents
poetry run ceco-gate-daemon
curl http://127.0.0.1:14780/health
Point an MCP client at stdio ceco-gate-mcp, or at
http://127.0.0.1:14780/sse for the daemon.
Entry points
| Script | Module |
|---|---|
ceco-gate-mcp |
ceco.gate_mcp_server:main |
ceco-gate-daemon |
ceco.gate_daemon:main |
ceco-internal-mcp |
ceco.internal_mcp_server:main |
Tests
poetry run pytest tests/ -q
Provenance
Source: /home/martyn/repos/ceco-offline branch development commit 484bb16.
Feature branches feat/gate-daemon, feat/machine-cache, and feat/transition-index
are already merged into that tip. Local uncommitted edits in ceco-offline that
removed the machine cache / transition index were not carried over.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.