
T1/T2 Protocol
io.github.FauxetinePublished by GitHub account Fauxetinev0.1.1Updated Oct 24, 2026
Caller-side T1/T2 heterogeneous validation MCP server. Stdlib-only Python.
Overview
A local reference MCP server that structures ambiguous questions into tiers and cross-checks answers, plus a deterministic checksum validator.
- What you can do
- Decompose a question into facts, assumptions, hypotheses and unknowns with t1_protocol, returning a prompt template for the host model to fill in. Evaluate a draft answer from another model's perspective with t2_protocol, returning a confidence and adoption prompt template. Validate structured answer text against deterministic regex rules with checksum, which returns pass/fail JSON. Optionally request English or Chinese templates and a weighting hint such as fact-first or cost-first.
- When to use it
- Useful when you want a repeatable reasoning discipline around decisions or ambiguous questions, and a cheap structural check on the resulting write-up. It is a reference implementation for experimentation, not a production verification or security tool.
- Requirements
- Python 3.10 or newer and an MCP-capable host such as Cursor or Claude Desktop. Installed from PyPI as t1-t2-protocol, which provides a console script, or run directly from the server script. No accounts, API keys or environment variables are declared.
Installation
In SourceWeft
- Open T1/T2 Protocol in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit 0f519dd
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts