mcp-cross-check
Sends review prompts with diffs, plans, or artifacts and invariants to an OpenAI-compatible chat completions endpoint and returns a review verdict with findings.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-cross-check Use audit_diff to review my staged diff for regressions and missing tests."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-cross-check
Ask a second model to review a proposed change before applying it. This Python 3.10+ Model Context Protocol server gives Claude Code and Claude Desktop three tools for reviewing a git diff, challenging a plan, or checking an artifact against explicit invariants. Its runtime uses only the Python standard library.
Claude Code or Claude Desktop
| tool name + arguments
v JSON-RPC over local stdio
mcp-cross-check
| review instructions + supplied arguments
v POST /chat/completions
OpenAI-compatible reviewer
|
+-- review text --> mcp-cross-check --> ClaudeThe host supplies the material for each review. The server sends those arguments, including optional context, to the configured endpoint. It never needs a repository checkout or a shell to answer a tool call. Remove credentials and customer data from patches and context before sending them to an external provider.
Install
With Git and Python 3.10+ available, install into a dedicated virtual environment. The shell examples below use macOS or Linux.
python3 -m venv "$HOME/.venvs/mcp-cross-check"
. "$HOME/.venvs/mcp-cross-check/bin/activate"
pip install git+https://github.com/multisystemalaga/mcp-cross-check.git
mcp-cross-check --version
command -v mcp-cross-checkKeep the absolute executable path printed by the last command for host registration. On Windows, the corresponding executable is Scripts\mcp-cross-check.exe inside the virtual environment.
Related MCP server: antigravity-claude-mcp
Configure the reviewer
Variable | Default | Purpose |
| Required for reviews | Bearer credential for the reviewer endpoint. |
|
| API root. The server appends |
|
| Model ID accepted by that endpoint. Choose a reviewer independent of the model proposing the change. |
|
| Positive timeout in seconds for the HTTP request. |
Load the key from your secret manager, or use these commands to enter it once in the current Bash or Zsh session with echo disabled.
printf 'Reviewer API key: '
read -rs CROSS_CHECK_API_KEY
printf '\n'
export CROSS_CHECK_API_KEY
mcp-cross-check --check-config--check-config validates the local settings without making a model request. Starting the server and listing its tools also work offline. To use a different provider, set the API key, base URL and model together so the credential is sent to its intended endpoint.
Register with Claude Code
Run this in the activated environment. The single quotes preserve the variable reference in Claude's user-scoped configuration. Launch Claude Code from a shell that exports the reviewer settings.
claude mcp add --scope user \
--env 'CROSS_CHECK_API_KEY=${CROSS_CHECK_API_KEY:-}' \
--transport stdio cross-check -- "$(command -v mcp-cross-check)"
claude mcp listOpen /mcp in Claude Code and select cross-check to see its tools. For a first review, try “Use cross-check’s review_plan on this migration plan. Identify any step that could discard data before it has been verified.” Claude Code MCP documentation
Register with Claude Desktop
Open Settings → Developer → Edit Config. Merge the cross-check entry below into the existing mcpServers object in claude_desktop_config.json. Replace the example path with the installed executable's absolute path and the example key with your reviewer credential.
{
"mcpServers": {
"cross-check": {
"command": "/absolute/path/to/mcp-cross-check",
"env": {
"CROSS_CHECK_API_KEY": "replace-with-your-reviewer-key"
}
}
}
}The env block stores its values in plain text. Keep this file private, or point command at a local launcher that reads the key from your secret manager. Add provider overrides to the same env block if needed. Fully quit and reopen Claude Desktop to load the configuration. Local MCP server setup
Tool reference
Tool | Required arguments | What to ask |
|
| Inspect a proposed patch for regressions and missing tests. Pass the actual patch text, such as the output of |
|
| Challenge the plan's assumptions, dependencies and rollback steps before implementation. |
|
| For each stated rule, ask whether the supplied code or design upholds it. |
Each tool also accepts an optional context string. In this example, verify_invariants checks whether a migration preserves archived accounts and keeps a rollback path open.
{
"artifact": "Copy active accounts into accounts_v2, compare row counts, then drop accounts_v1.",
"invariants": [
"Every account, including archived accounts, must survive the migration.",
"Rollback must remain possible until row-level verification succeeds."
]
}The reviewer is asked for a PROCEED, REVISE, or BLOCK verdict and findings grouped under CRITICAL, WARNING, and SUGGESTION. Claude receives the model's review as text. A BLOCK verdict leaves the decision with the caller. A tool execution failure, such as a missing API key, returns isError: true.
Develop and test
Run the suite from the repository root. Installing the checkout then lets you check the console entry point.
PYTHONPATH=src python3 -m unittest discover -s tests -v
python3 -m pip install -e .
mcp-cross-check --versionThe tests inject an offline reviewer transport. CI runs on Python 3.10, 3.11 and 3.12. The stdio server speaks newline-delimited JSON-RPC 2.0 and negotiates MCP revisions 2025-03-26 and 2024-11-05.
Roadmap
Query multiple independent reviewers in parallel and reconcile disagreements by severity.
Expose the staged git diff as a read-only MCP resource at
git://diff/staged.Add a non-interactive
--fail-on criticalgate for pre-commit hooks and CI.
Available Tools
3 toolsaudit_diffC
Review a proposed git diff for regressions and missing checks.
Inputs: diff (required), context.
review_planC
Review an implementation plan's assumptions and failure modes.
Inputs: plan (required), context.
verify_invariantsC
Check whether a supplied artifact preserves each stated invariant.
Inputs: artifact (required), invariants (required), context.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct artifact type: a git diff, an implementation plan, and an artifact plus stated invariants. The main overlap risk is between audit_diff and verify_invariants when invariants are checked directly against a diff, but the descriptions make the input shape and intent separable.
All three names follow a clean verb_noun snake_case pattern (audit_diff, review_plan, verify_invariants). The verbs are also semantically distinct rather than near-synonyms, reinforcing the pattern.
Three tools is on the thin side, but for a focused cross-check/review server it is a coherent, well-scoped set with no filler. A fourth tool (e.g. reviewing a code file or PR description) might round it out, but nothing here feels extraneous.
The review surface covers the three common artifacts an agent would want cross-checked (plans, diffs, invariant claims), so no obvious dead ends in core workflows. Minor gaps exist around reviewing non-diff code artifacts or producing a consolidated verdict across multiple checks.
Maintenance
Related MCP Connectors
Multi-brand AI code review for Claude: up to 12 reviewers and a judge, no install.
AI code governance and code review for Claude Code, Copilot and Cursor. Checks rules and security.
Security reviews for coding agents: diffs checked against your org policy and live infrastructure.
Merge gate for AI-written code: deterministic vetoes plus a Claude Haiku 5.5 review. No signup.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides real-time oversight for Claude Code by connecting it to an OpenClaw agent that reviews, approves, blocks, or modifies actions before they execute.3MIT
- AlicenseAqualityDmaintenanceEnables Claude Code to request independent code reviews and second opinions from other AI models (like Gemini, GPT-OSS) via the Antigravity CLI, directly from the chat.11MIT
- AlicenseAqualityDmaintenanceAllows Claude Code to request an independent code review from Google Antigravity (Gemini, Claude, or GPT-OSS) via the Antigravity CLI, providing a second opinion on plans or diffs.1267 npm3MIT
- AlicenseNot gradedqualityCmaintenanceUses Claude as an independent second-model reviewer inside Codex, performing reviews on disposable Git snapshots with structured findings.MIT