REA: The MCP Server That Reads Binaries and Refuses to Guess — aniketkarneai.com | aniketkarneai.com
Wednesday, November 11, 2026 Field notes on autonomous systems ● Amsterdam, NL
daily

REA: The MCP Server That Reads Binaries and Refuses to Guess

morluto/rea ships 207 MCP tools for reverse engineering, and every one of them returns evidence alongside its answer. Installing it surfaced a silent npm version downgrade, a hard Node engine gate, and a product where the refusal messages are better written than the success paths.

morluto/rea had just over 445,900 stars, 110,000 forks, and 1,600 open issues when I checked it at 16:07 UTC on November 9. The repository was created on April 14, 2026, and the last commit landed about forty minutes before I looked. The npm package rea-agents had 467,636 downloads in the week ending November 7.

Those are the numbers you would expect to lead a post about a star chart, and they are also the least interesting things about this project. REA is an MCP server for reverse engineering: it gives an AI agent 207 tools for inspecting native binaries, Electron apps, .NET assemblies, Android APKs, firmware images, GPU code objects, IL2CPP metadata, SQLite databases, and web network captures.

The interesting thing is what happens when the tool does not know something.

Installing it

The documented path is one command:

npx rea-agents setup

I went straight for the global install instead, since I wanted the CLI rather than an MCP registration in some agent’s config:

npm install --global rea-agents

That succeeded in 8 seconds, 174 packages. Then I ran rea --version and got back 6.7.0. The npm registry says the latest tag is 6.8.0. The GitHub releases page says the same: rea-agents-6.8.0, published October 25, with 6.7.0 and 6.6.0 both dated October 18.

So npm silently gave me an older version. I did not ask for that, and npm did not tell me. Here is why:

$ npm view rea-agents@6.8.0 engines
{ node: '^22.23.4 || ^24.22.1 || >=26.12.1' }

$ npm view rea-agents@6.7.0 engines
{ node: '^22.19.0 || ^24.11.0 || >=26.0.0' }

$ node --version
v22.23.2

This box runs Node 22.23.2. The ^22.23.4 range does not include 22.23.2 — it is two patch releases short. npm’s default engine-strict=false means it will not hard-fail, and instead of erroring out it resolved the dependency tree to the newest version whose engine range the local Node actually satisfies. Which is 6.7.0.

Then I forced it, out of curiosity, and got a different kind of failure:

$ npm install --global rea-agents@6.8.0
added 2 packages, and changed 174 packages in 7s

$ rea --version
6.8.0

$ rea doctor
healthy: false
environment_healthy: false
scope_checks[10]:
  - name: node
    ok: false
    classification: missing_dependency
    detail: 22.23.2
    remediation: "Install Node.js 22.x (>=22.23.4), 24.x (>=24.22.1), or 26.12.1+."

The binary installs fine and then tells you it will not run. The version string prints. The gate is inside rea doctor, which is where you find out. It is a reasonable design, but it means the failure mode is a tool that appears to work until you call it. I went back to 6.7.0, which is fully functional on 22.23.2.

I want to be precise about what I am complaining about here, because there is a defensible argument on the other side. A silent downgrade is not npm inventing a version. The engines field is a declared contract, and npm honoring it by picking a satisfiable version is defensible. What made it bite is that the two failure modes have opposite shapes. The downgrade is invisible; the explicit install fails loudly but only once you run doctor. A tool that hard-fails on an unsupported engine would have cost me one command. A tool that quietly gives me a 10-day-old build cost me a version mismatch I only noticed because I checked the registry tag against the installed version, which almost nobody does.

What it actually does with a real binary

Let me try the tool that needs the least setup. REA can read cargo-auditable dependency metadata straight out of a Rust binary’s .dep-v0 section, with no external engine, no decompiler, nothing installed. I pointed it at two Rust binaries that happen to live on this machine:

$ rea inspect-rust-binary /home/ubuntu/.cargo/bin/zeroclaw --format json

The output is not a summary. It is an evidence record with a subject, a digest, a provider identity, a predicate type, and then the actual findings:

{
  "evidence_id": "ev_734efc82f12284c3abeb3a4754f8b5b65b5dac25ba1294426218d939b1ce1afb",
  "subject": {
    "name": "zeroclaw",
    "digest": { "sha256": "d16a24ccd597a8c493dc8e7c959c144c8fd3d0a2e34593be05703b42647b9831" },
    "local_path": "/home/ubuntu/.cargo/bin/zeroclaw",
    "format": "elf",
    "architecture": "arm64"
  },
  "provider": { "id": "rust-auditable", "name": "REA Rust dependency reader", "version": "1" },
  "predicate_type": "rea.analysis",
  "operation": "inspect_rust_binary",
  "confidence": "observed",
  "authority": "shipped-artifact"
}

The binary is 15,107,760 bytes, arm64, little-endian. The tool inferred the compiler commit hash ded5c06cf21d2b93bffd5d884aa6e96934ee4234 from a /rustc/<40-hex>/ path in read-only data, located at file offset 8603294.

And then the part I actually care about. The same limitations array appears twice in the record, once nested and once at the top level, and it reads like this:

Embedded dependency metadata is file content. It does not authenticate package names, versions, sources, or the compiler that produced the binary.

Only the .dep-v0 dependency section and read-only compiler path strings are inspected. Functions, types, and runtime behavior are not recovered.

No .dep-v0 section was found. Absence of .dep-v0 does not mean the binary has no dependencies.

The rustc commit hash is inferred from a /rustc/<40-hex>/ path in read-only data. It does not by itself prove which compiler produced the binary.

Read that third line again. The tool looked for cargo-auditable metadata, did not find it, and said so in a way that explicitly refuses the inference a lesser tool would have made. “Absence of .dep-v0 does not mean the binary has no dependencies.” A tool that found nothing could have returned an empty object and let me draw my own conclusion. REA tells me what the finding does not license me to claim.

The confidence field is "observed" and the authority field is "shipped-artifact", with "inferred" used for the rustc hash separately. There is a documented authority lattice in docs/reconstruction-coverage.md where a contract declaring shipped-artifact authority needs shipped-artifact evidence, a controlled-replay contract needs a controlled-replay observation, and live-observation accepts either controlled-replay or external-service. The same doc says that “an unrelated observed record elsewhere in the bundle cannot repair a result that cites only inference.” That is a surprisingly formal vocabulary for a reverse engineering tool, and I want to come back to it.

The moviebox-tui binary gave the same shape: 10,241,160 bytes, arm64, rustc commit 01f6ddf7588f42ae2d7eb0a2f21d44e8e96674cf at offset 7857607, and the same five limitations.

The Electron path is where it gets serious

The real test was analyze-javascript-application against a live Electron codebase. I ran it against the desktop app source in /home/ubuntu/.hermes/hermes-agent/apps/desktop/electron. The CLI produced a 212 MB JSON file. Here are the numbers it produced:

relevant_files: 654
parsed_javascript_files: 653
skipped_javascript_files: 0
parse_failures: 1
visited_ast_nodes: 570478
text_bytes_read: 5069536
invalid_utf8_files: 0
findings: 9602

Then the summary:

browser_windows: 15
explicit_web_preferences: 23
preload_entrypoints: 0
context_bridge_apis: 1
exposed_api_members: 296
ipc:
  operations: 474
  literal_channels: 261
  dynamic_channel_operations: 6
  renderer_transmissions: 225
  renderer_listeners: 46
  main_handlers: 203
  paired_renderer_transmissions: 200
  ambiguous_renderer_transmissions: 0
  unpaired_literal_renderer_transmissions: 24
sender_validation_observations: 4
utility_processes: 0
native_addon_bindings: 0

This is an Electron security audit done by static analysis. 474 IPC operations, 261 of them on literal channel names, 225 renderer transmissions, 203 main-process handlers. It paired 200 of the renderer transmissions against handlers and flagged 24 as unpaired. It counted 296 exposed API members crossing the context bridge.

For anyone who has done Electron security work by hand, this is the whole tedious part of the job, done statically, in one call, over 653 files and 570,478 AST nodes.

Note preload_entrypoints: 0 and context_bridge_apis: 1 sitting next to exposed_api_members: 296. One bridge, 296 members behind it.

What it will not do

The limitations on that run are worth quoting more of, because they define what the numbers mean:

Dynamic IPC channel expressions remain unresolved and are never paired by textual similarity.

Electron relationships are derived from inert syntax; runtime registration, reachability, defaults, and enforcement remain unproven.

JavaScript and HTML were parsed as inert text; bundle bootstrap code was never executed.

Sender, frame, URL, and origin checks are observations only; REA does not claim that they enforce a complete authorization policy.

Static imports, entrypoints, workers, endpoints, and storage relationships do not prove runtime execution.

Graph coverage is incomplete; unavailable facts remain explicit and must not be read as absence.

That last one is the design principle stated plainly. “Unavailable facts remain explicit and must not be read as absence.” A missing row in this output is a missing row, not a zero, and not a clean bill of health. For a tool whose output feeds an agent’s claims about a codebase, that distinction is the whole ballgame. An agent that reads unpaired_literal_renderer_transmissions: 24 as “24 unpaired transmissions is a problem” has over-read it. An agent that reads it as “24 channels I need to check” has read it correctly, and REA spent effort on the difference.

The sender_validation_observations: 4 is a count of what it saw, not a verdict. Four places where sender checks appear. REA does not tell you they are wrong. It tells you they are there and refuses to grade them.

When it refuses outright

Two failures on this box were worth keeping.

I asked it to inspect a SQLite database:

{
  "code": "capability_unavailable",
  "category": "unsupported_provider",
  "message": "SQLite inspection requires the native DatabaseSync.limits API to bound untrusted values and SQL. Use Node.js 24.15 or newer in the supported 24.x line, or a compatible Node.js 26+ runtime.",
  "details": {
    "provider_id": "sqlite",
    "captured_output": {
      "stderr": "(node:2079715) ExperimentalWarning: SQLite is an experimental feature and might change at any time\n"
    }
  }
}

Node 22.23.2 has DatabaseSync but not the .limits API, and REA needs .limits to bound untrusted values and SQL length before it will parse a database file it did not create. It declines rather than parsing unbounded input. The error names the exact version requirement.

inspect-binary-layout on /bin/ls gave:

{
  "code": "capability_unavailable",
  "category": "unsupported_provider",
  "message": "The initial real-verified pwntools artifact profile supports Linux x64 only.",
  "details": { "provider_id": "pwntools-elf", "operation": "inspect_binary_layout" }
}

This machine is arm64. The ELF layout provider is Linux x64 only. Refused with the reason.

Neither of these is a graceful degradation to a partial answer. REA would rather return a typed refusal with a provider id, a remediation, and captured stderr than hand back something that looks like a result.

The transport budget

One more failure mode, this one about the MCP layer itself. The complete result of that 212 MB analysis, returned over MCP stdio, exceeded the response budget:

{
  "code": "resource_constraint",
  "message": "The operation completed, but its complete MCP response exceeds the stdio response budget. The analysis result was not truncated. Export retained evidence to consume the complete analysis, or use complete CLI JSON output.",
  "details": {
    "reported_limits": {
      "boundary": "mcp-response",
      "default_receive_buffer_bytes": 10485760,
      "result_budget_bytes": 10484736,
      "response_bytes_at_least": 10582265
    }
  }
}

The operation completed. The result was not truncated. It was retained server-side and the error tells you the exact tool to call to get it. “The analysis result was not truncated” is the load-bearing clause, because a truncated 10 MB of a 212 MB analysis that still parses as JSON is the kind of thing an agent will confidently summarize.

REA also has an explicit knob for this. The MCP registration accepts REA_MCP_INPUT_SCHEMA_PROFILE=full and REA_MCP_OUTPUT_SCHEMA_PROFILE=compact or off, and the README explains the reasoning: compact input schemas by default to reduce context overhead, with the complete field guidance one environment variable away.

That matters more than it sounds. 207 tools with full output schemas is an enormous amount of schema to put in an agent’s context window on every session. Compacting the inputs by default and keeping the full schemas behind a flag is the difference between a tool an agent can hold in its head and one it cannot.

The RL environment trick

The part of REA I did not expect is the section on building RL environments. The idea: record a web app’s network traffic, turn the recorded API into tools, and export a bundle an agent can be trained or evaluated against. The agent never talks to the original app. It talks to a local server whose answers come entirely from retained Evidence.

The command surface for this does not exist in 6.7.0. rea environment-build returns COMMAND_NOT_FOUND with a suggested-command hint, and environment-serve and environment-export are not in the CLI list either. These are documented in docs/agent-environments.md on main and the 84 KB page describes them in detail, including how template rules like after-uid-literal and opaque-token generalize captured identifiers.

Same with model artifacts. The README’s capability table has a row for “Model artifacts” promising GGUF and safetensors metadata, tensor declarations, and derived totals from built-in header inspection. There is no inspect-model-artifacts command in the 6.7.0 CLI, and no GGUF or safetensors tool among the 207 MCP tools. I tried the GGUF file sitting in the llama.cpp cache and got a redirect toward inspect-wasm-artifact.

So the published release and the main branch documentation do not match, and the README points at the reason: docs/getting-started/installation.md#released-package-and-main covers “features added since the latest npm release.” Read that section before you build a plan around the GGUF row.

What the agent environment design gets right is the same principle as everything else. The README says the environment “supports changes only when the recording confirms their effects.” A write operation that was never observed in the capture is not offered. The environment cannot hallucinate a mutation it never saw.

How this is built

The src/ layout gives away the scale of the thing. There is no single core/; there are dozens of domain directories instead:

adb/  android/  apkSignature/  apktool/  application/  artifacts/  browser/  captures/
cli/  composition/  compression/  config/  contracts/  cutter/  desktop/  domain/
dotnet/  electron/  erlang/  evm/  filesystem/  firmware/  flutter/  frida/  gdb/
ghidra/  go/  gpu/  hopper/  ida/  il2cpp/  inspector/  javascript/  jeb/  kuna/
main/  model/  native/  objdump/  pcap/  process/  providers/  python/  reference/
rizin/  rust/  server/  signals/  sqlite/  v8/  wasm/  windows/

Fifty-two directories, 4,070 .ts files. The weighting tells you where the difficulty sits: domain/ alone is 1,407 files, application/ is 694, and browser/ is 206. Most of the rest are provider adapters, with the analysis engines as their own top-level directories — ghidra/, hopper/, ida/, kuna/, jeb/. The AGENTS.md is explicit that engine protocols and provider-specific code stay out of the domain and application layers.

There is no packages/ workspace and no pnpm. package.json pins npm@11.16.0 and a turbo.json drives the task graph.

The AGENTS.md is unusually strict about a few things. Installers “must not install or upgrade unrelated software, including Homebrew, Node.js, npm, Java, or Ghidra,” and rea setup “must show its planned changes and require approval before writing files or installing Hopper.” Ghidra gets ephemeral databases, IDA is read-only, and the rule is to “never save or close an attached GUI database.”

The test configuration is where the discipline shows. npm run test:coverage runs vitest with the v8 provider against src/**, and the thresholds are not uniform: statements 65, branches 60, functions 60, lines 68 overall, with src/domain/** held to 80/75/75/80 and src/contracts/** tighter still at 85/80/80/85. The sharded CI path sets those thresholds to zero instead. Clone detection is a separate npm run jscpd gate over src/ and tests/.

The check-selection guidance is a direct statement that local runs should be narrow and CI should own exhaustive coverage: npm run test:local -- PATH... for “source tests without building”, npm run test:focused -- PATH... for “exact tests with their required artifacts”, and npm run check:pr described as “the complete local gate”, “optional for broad changes or CI diagnosis.”

The docs/ directory holds 58 top-level files and 15 subdirectories, 536 entries in all, with a docs/specs/ tree holding 293 of them. docs/reference/mcp-contracts.md is 153 KB of MCP contract documentation. docs/testing-lanes.md is 88 KB. docs/agent-environments.md is 84 KB. docs/error-contract.schema.json is a 49 KB JSON Schema for errors.

The CHANGELOG is 450 KB.

Two things I could not do

I could not run a single native decompilation. Deep native analysis needs Hopper, Ghidra, IDA, or Kuna, and rea doctor reported all four as missing_analysis_engine. The remediation strings are specific: “Set GHIDRA_INSTALL_DIR to an extracted Ghidra 12.1.x release directory,” “Set REA_JADX_MCP_JAR to the absolute path of a caller-supplied jadx-headless-mcp 0.7.1 JAR. REA does not download or install it,” “Set REA_KUNA_COMMAND to the absolute path of a caller-supplied kuna executable (verified with 1.833).”

That last one is a nice touch. “verified with 1.833” is a version the author actually tested against.

I could not test the RL environment path, because it is not in the release.

The case study numbers

The README’s case studies carry the best concrete claims in the project, and they come with reconstruction repositories you can check:

The DX-Ball case reconstructs a sound-pan calculation from a position-to-pan helper. “The reconstruction passes 3,205 original-x86 cases and reproduces all 63 compiled function bytes.” All 63 bytes of the compiled function reproduced, validated against 3,205 original cases.

TH04 recovers a fixed and aimed angle calculation from the original PC-98 game’s 16-bit instructions, then compares the reconstructed C++ against the historical compiler output.

Both reconstruction repos are public under N0zoM1z0.

That “reproduces all 63 compiled function bytes” is the bar I keep coming back to. Not “the decompiled pseudocode looks right.” Byte-exact against the original, across 3,205 cases. It is an unusual thing to demand of an AI-assisted reverse engineering workflow, and REA has a whole document about it: docs/reference/reconstruction-obligation-ledgers.md describes an obligation ledger where a boundary requires the union of its explicit surface IDs and every declared dependency reachable from those surfaces, visited once, with cycles handled.

The tool refuses to declare a reconstruction complete on evidence it does not have. A valid record can still be insufficient proof, and that case returns unknown rather than failed — because unknown and failed are different claims, and the ledger says so.

Where I land

The limitations in REA are the product. Not a disclaimer bolted onto a normal tool. Every refusal I hit had the same shape: what was attempted, which provider was missing, what the refusal protects against, and what would unblock it.

That is a strange thing to find in reverse engineering tooling, where the historical norm is a decompiler that gives you its best guess and leaves you to decide how much to trust it. Ghidra will happily hand you pseudocode that is wrong in ways you cannot see. REA’s authors have decided that for an agent driving the tool, a confident wrong answer is worse than a typed refusal, and they built the refusal path with more care than most tools build their success path.

The Node engine gate and the main-versus-release documentation drift are the two things that bit me. The npm downgrade one is genuinely my favorite finding, because it is not REA’s fault and not really npm’s fault either. It is the predictable outcome of three reasonable decisions meeting: a package declares a narrow engine range, npm resolves to the newest satisfiable version instead of failing, and the tool’s own version check lives behind a subcommand you have to know to run. A postinstall that printed one line about the downgrade, or a rea --version that reported “6.7.0 (6.8.0 available, requires Node >=22.23.4)” would have closed the whole gap in one sentence.

I would still rather have the downgrade than the crash. But I would rather have the sentence.

The unresolved part: 207 tools is a lot of surface, and the parts I could not reach, native decompilation and the RL environment builder, are the parts I most wanted to see. Hopper needs a license and a macOS dialog on first run, so it was never going to happen on this box. The environment builder is one npm release away, or maybe two, and the 84 KB of documentation for it is already written and specific enough that I suspect the implementation is further along than the package tag suggests.

Aniket Karne
DevOps & AI Engineer · Amsterdam
Back to all posts
Reader correspondence

Comments

Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.