
T1/T2 Protocol
io.github.Fauxetine由 GitHub 帳號 Fauxetine 發布v0.1.1更新於 Oct 24, 2026
Caller-side T1/T2 heterogeneous validation MCP server. Stdlib-only Python.
概覽
一個本機參考用 MCP 伺服器,把含糊問題拆成分層結構並交叉檢驗答案,另附確定性的校驗和檢查工具。
- 可以做什麼
- 用 t1_protocol 把問題拆成事實、假設、猜想與未知項,回傳供宿主模型填寫的提示範本。用 t2_protocol 從另一個模型的角度評估草稿答案,回傳信心程度與採納建議的提示範本。用 checksum 依確定性正規表達式規則檢查結構化答案文字,回傳通過與否的 JSON。可選指定英文或中文範本,以及事實優先、成本優先等權重提示。
- 適用情境
- 適合在決策或含糊問題上需要一套可重複的推理流程,並對最終文字做低成本結構檢查時使用。它是供實驗的參考實作,並非生產級驗證或安全工具。
- 執行需求
- 需要 Python 3.10 或更新版本,以及支援 MCP 的宿主(如 Cursor、Claude Desktop)。可從 PyPI 安裝 t1-t2-protocol(提供命令列入口),或直接執行伺服器腳本。未宣告需要帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 T1/T2 Protocol,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[Python 3.10+] [PyPI] [CI] [License: Apache 2.0] [MCP] [MCP Registry]
T1/T2 Protocol — Heterogeneous Validation for MCP
中文文档 · 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.
Why?
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.
Tools
How tools return data:
t1_protocolandt2_protocolreturn structured prompt templates for your MCP host's LLM to execute. Onlychecksumreturns deterministic JSON (checksum_passed,errors).
Tool inputs (MCP schema)
t1_protocol
t2_protocol
checksum
Returns JSON: {"checksum_passed": bool, "errors": [...]}.
Quick Start
Requirements
- Python 3.10+
- An MCP client: Cursor, Claude Desktop, Windsurf, or any MCP-compatible host
Install
From PyPI (recommended):
From source (development):
Or run directly without installing:
Configure
After pip install, use the console script in MCP config (recommended):
Cursor — .cursor/mcp.json (same as above).
Claude Desktop — claude_desktop_config.json:
From source (no pip install) — point at the script:
On macOS/Linux use "command": "python3" instead of "python".
Verify it works
- Restart or reload your MCP host after editing config.
- Confirm three tools appear:
t1_protocol,t2_protocol,checksum. - Call
t1_protocolwith{"question": "Should we adopt microservices?", "locale": "en"}— you should receive a structured T1 prompt template. - Call
checksumwith sample[L1 Facts]…---text — you should receive JSON withchecksum_passed.
Usage
T1: Structure a vague question
Call t1_protocol with your question. The host LLM receives a structured prompt template with four tiers:
T2: Cross-validate a decision
Call t2_protocol with a decision or answer text. Returns an evaluation prompt for the host LLM:
checksum: Validate output structure
Call checksum with structured text. It returns pass/fail based on deterministic rules:
Full pipeline
For time-sensitive factual claims, search on the caller side before T2 — see Caller-side web verification (v2.6).
Configuration
Locale
Both t1_protocol and t2_protocol accept an optional locale parameter:
Example: {"question": "...", "locale": "zh"}
Weight hints
Both t1_protocol and t2_protocol accept an optional weight_hint parameter to bias evaluation criteria:
Recursion protection
T2 automatically detects recursion depth and terminates at depth >= 3, where marginal information gain drops below 5%.
Design Philosophy
See docs/philosophy.md for the full design rationale.
Core tenets:
- Separate intelligence from trust — AI capability and AI safety should be guaranteed by different systems
- Heterogeneous over self-referential — Cross-model validation is more reliable than self-reflection
- Deterministic over probabilistic — What can be checked by code should not be left to model judgment
Examples
See examples/ for step-by-step walkthroughs:
Positioning
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.
Versioning
Two version numbers — do not conflate them:
Recommended install: pip install "t1-t2-protocol>=0.1.0". Erroneous PyPI releases 2.5.2–2.5.4 are yanked.
License
Apache License 2.0 — see LICENSE.
Built for the MCP ecosystem. Part of a broader exploration into AI safety through deterministic architecture.
Links
- Contributing
- MCP Registry —
io.github.Fauxetine/t1-t2-protocol - Security policy
- Changelog
- Design philosophy
- Caller-side web verification v2.6
- Agent / MCP host instructions
來源:README.md,提交 0f519dd
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分