原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Glassbox Framework

作者:TheBarmaEffect版本 1.0.3i★ –i在你的电脑上运行
注册名称io.github.TheBarmaEffect/glassbox-framework

安装

概览

作者提供的说明(英文原文)

Runtime constitutional verification for AI answers — claim reasoning, ECS, red team, audits.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:ANTHROPIC_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: ANTHROPIC_API_KEY, GLASSBOX_MODEL, GLASSBOX_MAX_TOKENS, GLASSBOX_ECS_MODE

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "glassbox-framework": {
      "command": "npx",
      "args": [
        "-y",
        "@glassbox-framework/mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "your-value",
        "GLASSBOX_MODEL": "your-value",
        "GLASSBOX_MAX_TOKENS": "your-value",
        "GLASSBOX_ECS_MODE": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add glassbox-framework --env ANTHROPIC_API_KEY=your-value --env GLASSBOX_MODEL=your-value --env GLASSBOX_MAX_TOKENS=your-value --env GLASSBOX_ECS_MODE=your-value -- npx -y @glassbox-framework/mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "glassbox-framework": {
      "command": "npx",
      "args": [
        "-y",
        "@glassbox-framework/mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "your-value",
        "GLASSBOX_MODEL": "your-value",
        "GLASSBOX_MAX_TOKENS": "your-value",
        "GLASSBOX_ECS_MODE": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "glassbox-framework": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@glassbox-framework/mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "your-value",
        "GLASSBOX_MODEL": "your-value",
        "GLASSBOX_MAX_TOKENS": "your-value",
        "GLASSBOX_ECS_MODE": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • ANTHROPIC_API_KEY 机密 必填 env
    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…
  • GLASSBOX_MODEL env
    Override the Claude model used by the verification engines. Defaults to claude-sonnet-4-6.
  • GLASSBOX_MAX_TOKENS env
    Per-engine-call max-tokens cap. Defaults to 2048; raise for verifying long-form content.
  • GLASSBOX_ECS_MODE env
    ECS aggregation mode: arithmetic (weighted mean, default) or geometric (stricter — any zero dimension collapses the total).

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 TheBarmaEffect 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32476 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32476 个服务器的 10% 更新
  • 基础检查结果等于或优于此分类中其他 32476 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Glassbox Framework 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:ANTHROPIC_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.3)于5个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, zanadir

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

zanadir

作者:MustacheCase

Find what a repository's CI is missing, and which security checks cannot fail the build.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Glass Box Framework

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.

pip install glassbox-framework         # Python

npm install -g @glassbox-framework/mcp # Node / MCP brew install thebarmaeffect/glassbox/glassbox-mcp # macOS

Zero-cost public GlassBox Lite

The repository also ships a separate deterministic Lite verifier and cross-platform gateway that require no paid model API:

Lite performs bounded structural checks and does not browse or establish factual truth. The original six-tool model-assisted MCP documented below remains a separate surface.

See PLATFORMS.md for the exact live, downloadable, pilot, and external-review status of every integration.

What it is

The Glass Box Framework hands an (question, answer) pair to a runtime verification pipeline and returns a structured Trust Card containing:

  • Claims — every atomic assertion in the answer, paired with a *reasoning chain* explaining why it's asserted, what would support it, and what would falsify it.
  • Epistemic Confidence Score (ECS) — a transparent, weighted aggregate over five dimensions with a *published formula* and an always-visible per-dimension breakdown.
  • Glassbox Court — seven adversarial probes (fabrication, source manipulation, bias injection, context attack, overconfidence, underspecification, constitutional violation).
  • Constitution — your natural-language deployer intents compiled into structured runtime rules and evaluated against the answer.
  • Verdict — trust / caution / reject, with the exact reasoning that derived it.
  • Audit reference — a deterministic SHA-256 log_id; identical inputs reproduce the same identifier across runs and languages.

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.

Quick start (Python)

from glassbox_framework import Glassbox

with Glassbox() as gb: card = gb.verify_answer( question="Can intermittent fasting cure type 2 diabetes?", answer="Yes ...", intents=[ "Never make specific medical claims without citing peer-reviewed sources.", "Always recommend consultation with a licensed healthcare professional.", ], )

print(card["verdict"]) # "reject" print(card"ecs") # 0.6032 print(card"audit") # glassbox-85cc09903bd4... (deterministic)

The six tools

ToolPurpose
glassbox_verify_answerFull pipeline → Trust Card
glassbox_extract_claimsAtomic claims with reasoning chains
glassbox_score_ecsECS with full breakdown + formula
glassbox_red_teamGlassbox Court — 7 adversarial probes
glassbox_generate_trust_cardAssemble a Trust Card from prebuilt parts (no LLM call)
glassbox_export_audit_reportFull pipeline + deterministic SHA-256 audit log

Full schemas, examples, and configuration: mcp/README.md. Python pip-specific docs: mcp/python/README.md.

Architecture (two-layer)

┌──────────────────────────────────────────────────────────┐

│ glassbox-framework (PyPI) Python client │ │ thin JSON-RPC stdio wrapper │ │ spawns ↓ │ ├──────────────────────────────────────────────────────────┤ │ @glassbox-framework/mcp (npm) Node MCP server │ │ 6 tools, Zod-validated I/O │ │ ↳ verify_answer ↳ extract_claims ↳ score_ecs │ │ ↳ red_team ↳ generate_trust_card │ │ ↳ export_audit_report │ └──────────────────────────────────────────────────────────┘

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.

Use with Claude Desktop

{

"mcpServers": { "glass-box": { "command": "npx", "args": ["-y", "@glassbox-framework/mcp"], "env": { "ANTHROPIC_API_KEY": "sk-ant-..." } } } }

~/Library/Application Support/Claude/claude_desktop_config.json on macOS.

Determinism

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:

pip install glassbox-framework

python -c " import json from glassbox_framework import Glassbox with open('mcp/demo/raw-inputs.json') as f: i = json.load(f) with Glassbox() as gb: c = gb.generate_trust_card( question=i['question'], answer=i['answer'], claims=i['claims'], red_team=i['red_team'], ecs=i['ecs'], constitution=i['constitution']) print(c'audit') # glassbox-85cc09903bd4b3f8022a4087 "

Project layout

mcp/                       — the MCP server + Python client (this release)

├── src/ — TypeScript MCP server (6 tools) ├── python/ — Python pip package (glassbox-framework) ├── homebrew/ — Homebrew formula ├── assets/ — Launch video + reveal + title cards ├── demo/ — Live terminal demo with prebuilt Trust Card ├── Dockerfile — Container image ├── server.json — MCP Registry manifest ├── smithery.yaml — Smithery.ai manifest ├── LAUNCH.md — Launch kit └── DISTRIBUTION.md — Every channel's status + commands LICENSE — Apache 2.0 ROADMAP.md — Phase 5 (governor) plans for the broader framework CONTRIBUTING.md CHANGELOG.md

Contributing

Glassbox is open source under Apache 2.0 and actively wants forks and PRs. A few specific places we'd love help:

  • More red-team probes — 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.
  • More language clients — currently Python (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.
  • More integrations — Cursor / Cline / Continue / Roo Cline / Zed / Neovim — wherever MCP is read, Glassbox should be one paste away.
  • Real-world Trust Card examples — submit (Q, A) pairs from your own AI workflows so the test suite covers more terrain.

Process:

  1. Pick a good first issue or open one with your idea
  2. Fork, branch, work — the PR template walks you through verification
  3. CI must pass (.github/workflows/ci.yml) — TS strict mode, Python wheel build, cross-language determinism on the canonical audit hash
  4. Open the PR; we aim for review within 48 hours

Code of conduct: Contributor Covenant 2.1. Be kind, stay on substance, no harassment, contact thebarmaeffect@gmail.com for anything off-public-channel.

Star ⭐ this repo

The fastest way to help right now is to star the repo. Every star:

  • Surfaces Glassbox higher in GitHub's MCP topic listings
  • Pushes the project up on the MCP Registry and Smithery rankings
  • Tells the next developer evaluating AI-safety tooling that this is the one with eyes on it

⭐ Star Glassbox

Author

Karthik Barma · MS Artificial Intelligence · Northeastern University.

Powered by Aura.

Issues + PRs: https://github.com/TheBarmaEffect/glassbox/issues

问 PopNx