# realism-gate

> realism-gate is an open-source MCP server for security testing. Offline checker that flags weak exploit PoC tests and checks report claims against them. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows, Self-hosted
- **Website:** https://khomdev.org/tools
- **Repository:** https://github.com/khomdev/realism-gate
- **MCP Registry name:** io.github.KhomDev/rgate
- **Categories:** [security testing](https://ai-powered.com/categories/security-testing)
- **Listing updated:** 2026-11-27

## About

It reads Foundry, Solana and Move test files and flags patterns where a passing test depends on things a real attacker could not do, such as privileged roles, direct storage writes, or balances injected with deal(). A separate report mode binds each claim in a finding to the evidence the test actually contains, marking each row as shown, not shown, contradicted or not checkable.

The tool runs entirely offline with no API key or account. It does not execute the tests itself, apart from an optional verify-fix command that runs forge twice to confirm a patch changes the outcome. Output is available as text, JSON, SARIF or Markdown, and an evidence card can be generated for submission.

It is aimed at bug bounty hunters, contest auditors and triagers, and at developers who run AI agents to draft findings and want the PoC checked before a report is written. A clean result means no known pattern fired, not that the bug is real or payable.

## Features

- **Static PoC pattern rules:** Twenty rules flag privileged steps, storage writes, injected balances, missing baselines and similar test-design problems.
- **Claim binding for reports:** Each claim in a finding is matched to evidence in the PoC and labelled with one of four statuses, with no numeric score.
- **Evidence card output:** Produces a reproducible card listing tool version, file hashes, target commit and the exact rerun command.
- **Foundry, Solana and Move support:** Reads Solidity Foundry tests, Rust and Anchor TypeScript Solana tests, and Move unit tests without running them.
- **MCP server for agents:** A stdio server exposes read-only check, claim, rule listing and explanation tools for AI coding clients.
- **Path-restricted MCP mode:** An environment variable can confine path arguments to a chosen root directory, and runs are time-limited.

## Good for

- Check a Foundry or Solana exploit test for privilege shortcuts before submitting a bounty report
- Confirm that each claim in a finding is backed by what the PoC actually asserts
- Generate a signed-by-reproduction evidence card to attach to a triage submission
- Let an AI agent run PoC and claim checks before it drafts a finding
- Run the checks in CI through the GitHub Action on report and PoC files

## Tools

From the tool list in its README, going by the names, 4 of 5 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `check_poc` (name suggests: reads): Runs the PoC rule checks on test files.
- `check_claims` (name suggests: reads): Binds a finding's claims to PoC evidence.
- `dump_program`: Dumps program accounts for offline Solana checks.
- `list_rules` (name suggests: reads): Lists the available checker rules.
- `explain_rule` (name suggests: reads): Explains why a rule exists and how it can be wrong.

## FAQ

### Does realism-gate run the exploit tests?

No. The check reads test files and does not execute them. Only the separate verify-fix command runs forge, twice, to compare before and after a patch.

### Does realism-gate need an account or API key?

No. It runs offline with no account or API key, and check has no network code.

### Which languages and frameworks are supported?

Foundry Solidity tests, Solana tests in Rust (solana-program-test, LiteSVM, Mollusk, anchor-client, anchor-litesvm), Anchor TypeScript tests, and Move unit tests for Sui and Aptos.

### Does a clean result mean the bug is valid?

No. A clean result means no known defect pattern was found. It does not confirm the bug is real, the severity is right, or a program pays for it.

### Is realism-gate free?

Yes. realism-gate is open source, so you can use and self-host it for free.

### What are the best alternatives to realism-gate?

The closest alternatives to realism-gate are MCP OAuth 2.1 & Tool Poisoning Security Auditor, Insomnia Offensive Security & SAST MCP Server, Caido HTTPQL & Findings MCP Server, Internal Systems Gateway and cypress-mcp.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.

## Alternatives

- [MCP OAuth 2.1 & Tool Poisoning Security Auditor](https://ai-powered.com/mcp/mcp-oauth-2-1-and-tool-poisoning-security-auditor): MCP OAuth 2.1 & Tool Poisoning Security Auditor is a paid MCP server for security.
- [Insomnia Offensive Security & SAST MCP Server](https://ai-powered.com/mcp/insomnia-offensive-security-and-sast-mcp-server-2): Insomnia Offensive Security & SAST MCP Server is a freemium MCP server for security.
- [Caido HTTPQL & Findings MCP Server](https://ai-powered.com/mcp/caido-httpql-and-findings-mcp-server): Caido HTTPQL & Findings MCP Server is an open-source MCP server for web search and scraping.
- [Internal Systems Gateway](https://ai-powered.com/mcp/internal-systems-gateway): Internal Systems Gateway is an open-source MCP server for security testing.
- [cypress-mcp](https://ai-powered.com/mcp/cypress-mcp-2): cypress-mcp is an open-source MCP server for qa testing.
- [MCP Health Audit](https://ai-powered.com/mcp/mcp-health-audit): MCP Health Audit is an MCP server for health and science.
- [CraftCI](https://ai-powered.com/mcp/craftci): CraftCI is a paid MCP server for developer tools.
- [Injection Check](https://ai-powered.com/mcp/injection-check): Injection Check is a freemium MCP server for security testing.

---
Source: https://ai-powered.com/mcp/realism-gate
