Deterministic trust gate for AI output: leaked-secret, prompt-injection & PII in one call.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Deterministic trust layer for AI/agent output. One call β one verdict. No model, no API key, no network.
The other four Spektre repos are routing protocols β they move value, capability, promises, and identity
across networks. Ο-gate is not a routing protocol, and does not pretend to be one. It is the suite's
deterministic trust verdict: the gate that sits at the edge of any pipeline and answers, in ~85Β΅s and
identically every time, is this output safe to ship? LLM-as-judge guards are slow, burn a model call per
check, and silently degrade under rate-limits. But the highest-frequency risks β a leaked AKIAβ¦ key, a
Luhn-valid card number, an "ignore all previous instructions" β are structurally detectable: you don't
need a model, you need a gate that gives the same answer every time. That determinism is the
primitive. Ο = declared β realized: a block is always nameable (secret[high]: github_pat), never an
opaque float, so what the gate declares unsafe is exactly what it refuses to realize. guard is that gate.
Block a bad output:
Pass a clean output through:
| Dimension | What it catches |
|---|---|
| secret | Leaked credentials β 20+ providers (AWS, GitHub, Stripe, GCP, β¦), entropy-ranked |
| injection | Prompt-injection and jailbreak patterns β structural, not heuristic |
| pii | Email, phone, card (Luhn-verified), SSN, IBAN, IP β compliance-class detection |
Every dimension runs independently. A combined hit fires all three:
Zero dependencies, pure stdlib, Python 3.9+.
No install is even required to import β from guard import guard works from the cloned directory.
Inline gate in any pipeline:
CLI β pipe any output through:
Self-test β prove every threat class fires:
Tune the threshold via env var (default: medium):
Ο-gate ships a zero-dependency MCP server β give any agent
(Claude Code, Claude Desktop, Cursor, Cline) a deterministic guard tool it can call before shipping
output. No model, no key, no token cost.
Claude Code:
Claude Desktop (claude_desktop_config.json):
Exposes two tools: guard(text, β¦) β the ship/block verdict, and guard_selftest() β proof every
threat class fires. Pure stdlib stdio JSON-RPC.
Ο-gate also runs as a hosted remote MCP server (scale-to-zero), listed in the
official MCP Registry as io.github.spektre-labs/sigma-gate.
Connect with zero local setup:
MCP clients that browse the registry discover it automatically.
| Open core (this repo) | Hosted Ο scoring | |
|---|---|---|
| What | Deterministic gate: secret + injection + PII | Coherence / hallucination Ο-scoring on a hot path |
| Latency | ~85Β΅s | Network round-trip |
| Dependencies | Zero | None on your side |
| Cost | Free, always | Pay-per-call via x402 β no signup |
| Offline | Yes | No |
| Model | None | Optional |
The open core handles what models cannot do reliably β structural pattern detection with identical verdicts on identical inputs. The hosted layer adds probabilistic coherence scoring for the cases where structure alone is insufficient.
Hosted endpoint:
severity: "error" β the call does not silently pass.REAL β shipped, deterministic, deployed. CI green, 7/7 tests passing, zero dependencies; live as a local MCP tool and as a hosted scale-to-zero MCP server listed in the official registry.
Ο-gate is the deterministic trust verdict of a five-part estate. The other four are routing protocols; this one is the gate they ship through:
Apache-2.0 β see LICENSE.
Part of Spektre Labs β coherence-theory research lab.
Ο = declared β realized Β· 1 = 1, made executable.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sigma-gate)<a href="https://allmcps.com/mcp/sigma-gate"><img src="https://allmcps.com/api/badge/sigma-gate?style=directory" alt="Sigma Gate on AllMCPs" /></a>