Runtime constitutional verification for AI answers β claim reasoning, ECS, red team, audits.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Runtime constitutional verification for AI answers. Every claim carries a reasoning chain. Every score breaks down. Every verdict is traceable.
βοΈ Star this repo if you want runtime AI verification to become the default. Every star moves Glassbox up the search ranking on GitHub, the MCP Registry, and Smithery β which means more developers find this before they ship an AI feature without a Trust Card.
The Glass Box Framework hands an (question, answer) pair to a runtime verification pipeline and returns a structured Trust Card containing:
trust / caution / reject, with the exact reasoning that derived it.It is intentionally not a wrapper around a single LLM call β the reasoning chain on every claim, the formula on the ECS, and the determinism of the audit hash together form the "Glass Box" principle: no opaque scores.
| Tool | Purpose |
|---|---|
glassbox_verify_answer | Full pipeline β Trust Card |
glassbox_extract_claims | Atomic claims with reasoning chains |
glassbox_score_ecs | ECS with full breakdown + formula |
glassbox_red_team | Glassbox Court β 7 adversarial probes |
glassbox_generate_trust_card | Assemble a Trust Card from prebuilt parts (no LLM call) |
glassbox_export_audit_report | Full pipeline + deterministic SHA-256 audit log |
Full schemas, examples, and configuration: mcp/README.md. Python pip-specific docs: mcp/python/README.md.
The Python client makes zero LLM calls itself; it forwards arguments to the MCP server over stdio and renders the returned JSON. Set ANTHROPIC_API_KEY once and both layers use it.
~/Library/Application Support/Claude/claude_desktop_config.json on macOS.
Audit log_ids are SHA-256 over canonicalised JSON of (inputs_hash, claims, ECS dimensions, red-team probe verdicts, constitution evaluations). Timestamps are recorded but never enter the hash, so identical inputs and identical engine outputs always produce the same log_id β across runs, machines, and even languages (the Python client β Node server β JSON canonicalisation produces byte-identical hashes).
Verifiable example, no API key needed:
Glassbox is open source under Apache 2.0 and actively wants forks and PRs. A few specific places we'd love help:
mcp/src/engines/redteam.ts has // v2: placeholders for alignment_faking, reasoning_trace_deception, eval_awareness_gaming, agentic_misalignment, and sustained_jailbreak. Each is a tractable PR β same shape as the existing 7 probes, just a different angle. See .github/ISSUE_TEMPLATE/good_first_issue.md.glassbox-framework) and Node (@glassbox-framework/mcp). Go, Rust, Ruby, Swift, Kotlin would all be welcome as thin JSON-RPC clients that spawn the existing MCP server.Process:
good first issue or open one with your idea.github/workflows/ci.yml) β TS strict mode, Python wheel build, cross-language determinism on the canonical audit hashCode of conduct: Contributor Covenant 2.1. Be kind, stay on substance, no harassment, contact thebarmaeffect@gmail.com for anything off-public-channel.
The fastest way to help right now is to star the repo. Every star:
Karthik Barma Β· MS Artificial Intelligence Β· Northeastern University.
Powered by Aura.
Issues + PRs: https://github.com/TheBarmaEffect/glassbox/issues
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/glassbox-framework)<a href="https://allmcps.com/mcp/glassbox-framework"><img src="https://allmcps.com/api/badge/glassbox-framework?style=directory" alt="Glassbox Framework on AllMCPs" /></a>