
Caller-side T1/T2 heterogeneous validation MCP server. Stdlib-only Python.
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)
Inspect callable tools, capabilities, and parameters exposed to AI agents by T2 Protocol.
t1_protocolForces structured reasoning before answering
t2_protocolCatches blind spots self-reflection misses
checksumSafety that doesn't scale with intelligence
ไธญๆๆๆกฃ ยท 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):
From source (development):
Or run directly without installing:
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".
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:
Call t2_protocol with a decision or answer text. Returns an evaluation prompt for the host LLM:
Call checksum with structured text. It returns pass/fail based on deterministic rules:
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-protocolShowcase 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/t1-t2-protocol)<a href="https://allmcps.com/mcp/t1-t2-protocol"><img src="https://allmcps.com/api/badge/t1-t2-protocol?style=directory" alt="T2 Protocol on AllMCPs" /></a>