glassbox-framework
v1.0.3Runtime constitutional verification for AI answers — claim reasoning, ECS, red team, audits.
Values you need
| Variable | What it is | |
|---|---|---|
ANTHROPIC_API_KEY | required secret | Your Anthropic API key (sk-ant-...). Required for the claim extractor, red team, constitution engines, and ECS coherence checks. One v1 tool (generate_trust_card) works without an API key — it's pure assembly + deterministic audit hashing. |
GLASSBOX_MODEL | optional | Override the Claude model used by the verification engines. Defaults to claude-sonnet-4-6. Default: claude-sonnet-4-6 |
GLASSBOX_MAX_TOKENS | optional | Per-engine-call max-tokens cap. Defaults to 2048; raise for verifying long-form content. Default: 2048 |
GLASSBOX_ECS_MODE | optional | ECS aggregation mode: arithmetic (weighted mean, default) or geometric (stricter — any zero dimension collapses the total). Default: arithmetic |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add glassbox-framework -e 'ANTHROPIC_API_KEY=<ANTHROPIC_API_KEY>' -- npx -y --package=@glassbox-framework/mcp@1.0.3 glassbox-mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"glassbox-framework": {
"args": [
"-y",
"--package=@glassbox-framework/mcp@1.0.3",
"glassbox-mcp"
],
"command": "npx",
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"glassbox-framework": {
"args": [
"-y",
"--package=@glassbox-framework/mcp@1.0.3",
"glassbox-mcp"
],
"command": "npx",
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "ANTHROPIC_API_KEY",
"id": "anthropic-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"glassbox-framework": {
"args": [
"-y",
"--package=@glassbox-framework/mcp@1.0.3",
"glassbox-mcp"
],
"command": "npx",
"env": {
"ANTHROPIC_API_KEY": "${input:anthropic-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.glassbox-framework]
command = "npx"
args = ["-y", "--package=@glassbox-framework/mcp@1.0.3", "glassbox-mcp"]
env = { "ANTHROPIC_API_KEY" = "<ANTHROPIC_API_KEY>" }For AI agents
- Ask the user for: ANTHROPIC_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: glassbox_verify_answer, glassbox_extract_claims, glassbox_score_ecs, glassbox_red_team, glassbox_generate_trust_card, glassbox_export_audit_report.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json