Repository navigation
v1.5.1
This is a patch release on the MCP server only. No rule, rule severity, CLI
flag, default, report field or archive layout changed; the new MCP tools and
settings wrap existing CLI commands. 1.5.0 shipped the broken transport, and
1.5.1 supersedes it for MCP use. The library crates are unchanged and stay at 1.5.0,
except rg-render 1.5.1 (same code; it carries the tool version printed in
reports, SARIF and cards).
Fixed (MCP)
realism-gate-mcpspeaks the MCP stdio transport. Up to and including
1.5.0 it wrote every response with an LSP-styleContent-Lengthheader.
MCP's stdio transport is one JSON message per line, so current clients did
not connect: the MCP Inspector timed out after 15 s ontools/listagainst
the 1.5.0 binary. Responses are now one line each. A request framed with
Content-Lengthis still read and answered in that framing
(src/mcp.rsserve,read_message;docs/agents.md).initializeechoes the client's protocol revision when it is2025-06-18,
2025-03-26or2024-11-05(it always said2024-11-05).- JSON-RPC error codes: unknown method
-32601, bad arguments-32602,
invalid request-32600(batches, a null or fractional id, a missing
jsonrpc), unreadable JSON-32700. A complete line that is not JSON no
longer stops the server. Every error used to be-32601. - A checker that cannot start is a tool result with
isError: trueand the
reason, not a protocol error.
Added (MCP)
- Three more tools:
dump_program(check --dump-program),list_rules
(rules --format json) andexplain_rule(explain -- RULE). All five
tools carryreadOnlyHintannotations andadditionalProperties: false
schemas; an argument a tool does not list is refused.check_poctakes
fragment. - Limits the operator sets:
REALISM_GATE_MCP_ROOT(every path argument
must resolve inside it, symlinks followed),REALISM_GATE_MCP_TIMEOUT_SECS
(default 120; the run is killed past it), a 4 MiB cap per output stream
(refused, not cropped), a 4096-byte cap per argument. The checker's stdin is
closed. realism-gate-mcp --versionand--help.serverInfoisrgate/
realism-gate, andinitializereturnsinstructionsthat carry the
DEV-ONLY caveat.- MCP Registry metadata:
server.json(io.github.khomdev/rgate,
registryType: cargo) and a visiblemcp-name:line in the README, which
is how the registry checks a crates.io package. - Tests:
tests/mcp_props.rs(9 proptest properties),tests/mcp_bounded.rs
(deadline, cap, closed stdin, against a real child process),
tests/mcp_stdio.rs(a real newline-delimited client session whose tool
text is compared byte for byte with direct CLI runs), and 38 unit tests in
src/mcp.rs(was 11). - The skill names the five tools and says the
measurednumbers are
DEV-ONLY.
Install
cargo binstall realism-gate
or download an archive below and check it:
sha256sum -c SHA256SUMS --ignore-missing
gh attestation verify <archive> --repo KhomDev/realism-gate
Three binaries are included: realism-gate (the checker), rgate
(the same program under a short name) and realism-gate-mcp (the MCP
server). cargo binstall installs all three. Linux builds are static
(musl).
Built with rustc 1.95.0 and repacked deterministically, so the
archives can be compared with a local rebuild. From a checkout of this
repository:
scripts/reproduce-release.sh v1.5.1 x86_64-unknown-linux-musl