GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Caller-side T1/T2 heterogeneous validation MCP server. Stdlib-only Python.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"t1-t2-protocol": {
"command": "uvx",
"args": [
"t1-t2-protocol"
]
}
}
}在终端中运行这条命令
claude mcp add t1-t2-protocol -- uvx t1-t2-protocol粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"t1-t2-protocol": {
"command": "uvx",
"args": [
"t1-t2-protocol"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"t1-t2-protocol": {
"type": "stdio",
"command": "uvx",
"args": [
"t1-t2-protocol"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 Fauxetine 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.1)于5个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
中文文档 · MCP Registry entry (io.github.Fauxetine/t1-t2-protocol)
Reference implementation. This is a stdlib-only MCP reference server for structured reasoning discipline — not a production security product. Evaluate your own threat model before deploying in sensitive environments. Unlike official Python MCP servers, it does not use the
mcpSDK; it speaks JSON-RPC over stdio directly.
T1/T2 is an MCP server that makes AI reasoning verifiable, auditable, and trustworthy — by decomposing ambiguous questions into structured tiers (T1), then validating answers through cross-model evaluation (T2), with a deterministic checksum layer that doesn't depend on any LLM.
When an LLM checks its own answer, it uses the same training data, the same reasoning preferences, and the same systematic biases. Self-reflection cannot catch its own blind spots.
T1/T2 introduces heterogeneous validation: the model that produces the answer and the model that evaluates it should be different. Their different training distributions cover each other's blind spots.
| Tool | Function | Why it matters |
|---|---|---|
| t1_protocol | Decomposes ambiguous questions into L1 (facts) / L2 (assumptions) / L3 (hypotheses) / L4 (unknowns) | Forces structured reasoning before answering |
| t2_protocol | Evaluates answer quality from another model's perspective (qualitative five-level confidence) | Catches blind spots self-reflection misses |
| checksum | Deterministic structural validation — pure regex, zero LLM dependency | Safety that doesn't scale with intelligence |
How tools return data:
t1_protocolandt2_protocolreturn structured prompt templates for your MCP host's LLM to execute. Onlychecksumreturns deterministic JSON (checksum_passed,errors).
| Input | Type | Required | Description |
|---|---|---|---|
question | string | yes | The ambiguous question to decompose |
locale | string | no | en (default) or zh |
weight_hint | string | no | fact-first, efficiency-first, cost-first, robustness-first, general-first (or Chinese equivalents) |
| Input | Type | Required | Description |
|---|---|---|---|
answer | string | yes | Text to evaluate (often the host LLM's draft answer) |
locale | string | no | en (default) or zh |
weight_hint | string | no | Same values as t1_protocol |
| Input | Type | Required | Description |
|---|---|---|---|
text | string | yes | Structured answer text to validate |
Returns JSON: {"checksum_passed": bool, "errors": [...]}.
From PyPI (recommended):
pip install "t1-t2-protocol>=0.1.0"
From source (development):
git clone https://github.com/Fauxetine/t1-t2-protocol.git
cd t1-t2-protocol pip install -e ".[dev]" T1T2_DISABLE_COUNTERS=1 python -m pytest tests/ -v
Or run directly without installing:
python src/t1_t2_mcp_server.py # Windows
python3 src/t1_t2_mcp_server.py # macOS / Linux
After pip install, use the console script in MCP config (recommended):
{
"mcpServers": { "t1-t2-protocol": { "type": "stdio", "command": "t1-t2-protocol" } } }
Cursor — .cursor/mcp.json (same as above).
Claude Desktop — claude_desktop_config.json:
{
"mcpServers": { "t1-t2-protocol": { "command": "t1-t2-protocol" } } }
From source (no pip install) — point at the script:
{
"mcpServers": { "t1-t2-protocol": { "type": "stdio", "command": "python", "args": ["C:/path/to/t1-t2-protocol/src/t1_t2_mcp_server.py"] } } }
On macOS/Linux use "command": "python3" instead of "python".
t1_protocol, t2_protocol, checksum.t1_protocol with {"question": "Should we adopt microservices?", "locale": "en"} — you should receive a structured T1 prompt template.checksum with sample [L1 Facts] … --- text — you should receive JSON with checksum_passed.Call t1_protocol with your question. The host LLM receives a structured prompt template with four tiers:
Input: {"question": "Should we migrate our monolith to microservices?"}
Output: Prompt template instructing the host to produce: [L1 Facts] Team size, codebase size, current stack [L2 Assumptions] Expected benefits that need verification [L3 Hypotheses] Testable claims about migration risk [L4 Unknown] Future growth trajectory [Core Question] The precise feasibility question
Call t2_protocol with a decision or answer text. Returns an evaluation prompt for the host LLM:
Input: {"answer": "Decision text for approach A..."}
Output: Prompt template requesting: Confidence: high | medium-high | medium | medium-low | low Adoption table with: ✅ Adopt — verified conclusions (L1) ⚠️ Reserved — needs more evidence (L2) ❌ N/A — blind spots to address
Call checksum with structured text. It returns pass/fail based on deterministic rules:
Input: "[L1 Facts]\n1. ...\n[L2 Assumptions]\n1. ...\n---"
Output: {"checksum_passed": true, "errors": []}
Vague question → T1 structured decomposition → Decision based on structure → checksum (optional) → T2 validation → Refined decision
For time-sensitive factual claims, search on the caller side before T2 — see Caller-side web verification (v2.6).
Both t1_protocol and t2_protocol accept an optional locale parameter:
| Value | Output |
|---|---|
en (default) | English templates |
zh | Chinese templates |
Example: {"question": "...", "locale": "zh"}
Both t1_protocol and t2_protocol accept an optional weight_hint parameter to bias evaluation criteria:
| Weight | Effect |
|---|---|
事实优先 / fact-first | Prioritizes factual accuracy |
效率优先 / efficiency-first | Prioritizes efficiency |
成本优先 / cost-first | Prioritizes cost |
鲁棒性优先 / robustness-first | Prioritizes robustness |
通用优先 / general-first | No specific bias |
T2 automatically detects recursion depth and terminates at depth >= 3, where marginal information gain drops below 5%.
See docs/philosophy.md for the full design rationale.
Core tenets:
See examples/ for step-by-step walkthroughs:
| Project | Layer | What it does | T1/T2 relationship |
|---|---|---|---|
| Sequential Thinking (official MCP) | Caller-side chain-of-thought | One model logs iterative steps | Complementary — T1 adds L1–L4 tiers + T2 cross-model review |
| ThoughtProof / verdict APIs | Server-side verification | APPROVE/DENY/UNCERTAIN with confidence | Complementary — T1/T2 structures reasoning *before* verdict APIs act |
| Self-reflection / prompt chains | Same model | Re-reads or re-prompts its own output | Replaced — heterogeneous validation catches shared blind spots |
| Tool integrity (e.g. Phionyx) | Transport / tool schema | Detects tool poisoning, schema drift | Orthogonal — T1/T2 does not secure tool definitions |
T1/T2 is a stdlib reference implementation for MCP Discussion #2574-style reasoning discipline: structure first (T1), cross-validate second (T2), checksum what code can verify. It is not a signed verdict API and not a security scanner.
Two version numbers — do not conflate them:
| Example | Meaning | |
|---|---|---|
| Package (PyPI) | 0.1.0 | Distribution lifecycle. 0.x = experimental (SemVer, FastAPI policy). |
| Protocol (spec) | v2.5 | T1/T2 tool semantics in server output footer. Caller-side web verify docs use v2.6. |
Recommended install: pip install "t1-t2-protocol>=0.1.0". Erroneous PyPI releases 2.5.2–2.5.4 are yanked.
Apache License 2.0 — see LICENSE.
*Built for the MCP ecosystem. Part of a broader exploration into AI safety through deterministic architecture.*
io.github.Fauxetine/t1-t2-protocol