When you attach a new MCP server to an agent, the configuration file is the biggest worry.
If you approve an installer without knowing how it changes files like ~/.claude.json, it is hard to know what to roll back when something goes wrong.
REA's setup
shows the plan of what it will write and where before changing anything
, which eases that worry.
In this part, we go through installing REA and connecting it to an agent step by step.
What I actually ran were version checks, the package check and global install, a setup preview (--dry-run), and the health check commands.
I did not run the setup apply step that actually changes the agent configuration file, or the plugin installs, in this post
; I only introduce the commands from the official docs.
๐จโ๐ป
The lab environment, as of November 23, 2026, is macOS 26.3.1 (arm64), Node 26.13.0, npm 11.20.0, and rea-agents 6.10.1.
Every screenshot is something I ran myself in Terminal in this environment.
REA updates often, so check rea --help and the official docs again when you follow along.
REA ships as an npm package, so you need Node.js and npm.
The supported range given in the installation guideโ is as follows.
Supported
Not supported
22.x (22.23.4 or later)
23.x
24.x (24.22.1 or later)
25.x
26.12.1 or later
26.x before 26.12.1, prereleases
The odd-numbered releases (23, 25) and early 26 releases are not supported
, and this is a common trap.
The engines value in the npm registry was the same: ^22.23.4 || ^24.22.1 || >=26.12.1.
The installation guide says REA does not upgrade Node.js, npm, or Homebrew for you, so you need to match the version yourself.
๋ฒ์ ํ์ธ
node --version; npm --version; rea --version
Running node --version, npm --version, and rea --version in Terminal, printing v26.13.0, 11.20.0, and 6.10.1 in order
This screenshot was taken after REA was already installed, so the last line shows 6.10.1.
On a fresh machine, a message saying rea was not found is normal.
Operating systems
Linux (x64, arm64) and macOS (x64, arm64) are supported, and on Windows x64 the Ghidra integration is provided as experimental (experimental P0).
Static JavaScript and .NET analysis
Works right away without an engine.
Native decompilation
Needs one of Hopper, Ghidra, IDA, or Kuna.
Ghidra needs 12.2 or later and a 64-bit JDK, and 12.1 is not accepted.
Ghidra on macOS and Linux ARM64
The official release archive does not include a decompiler executable for these platforms, so you have to build it yourself.
I described installing Ghidra and building the macOS ARM64 decompiler in detail in part 5, based on what I actually did.
This part focuses on what you can start with without an engine.
Checking the official package and where to install ๐
The installation guide contains a recommendation worth noting.
Package runners such as npx can read project configuration in the current folder, so get REA from a trusted directory outside the target project and any REA source checkout.
If a setting such as .npmrc is planted inside the target, it can affect things from the moment the package is fetched.
The same document states that REA cannot validate package acquisition that happens before its own code starts.
That is why this series runs every command in ~/rea-lab, separate from the blog and other project folders.
Before installing, check that the package points to the official repository.
ํจํค์ง ํ์ธ
npm view rea-agents name version repository.url
Running npm view rea-agents in a Terminal window, printing name rea-agents, version 6.10.1, and repository.url git+https://github.com/morluto/rea.git
The name is rea-agents and the repository is git+https://github.com/morluto/rea.git.
This command only queries registry information and does not run install scripts.
Part 9 covers how to tell look-alike fake packages apart in more detail.
There is one official command for connecting an agent.
์์ด์ ํธ ์ฐ๊ฒฐ (์ ์ฉ)
npx rea-agents setup
The flow the installation guide describes is as follows.
Choose agents
The supported clients appear in a multi-select list.
Clients that already have an REA registration are selected by default, and newly detected clients are shown unselected.
Review the plan
It lists the configuration file paths to change, the skill locations to install, and external software and network origins.
Approve
Files are written only after you approve.
Declining or pressing Ctrl-C changes nothing.
Restart the agents
Restart the agents named in the completion message.
It also says configuration writes preserve unrelated entries and comments, create backups, and verify the result.
There is a note to fully quit Claude Desktop before approving, because a running app can overwrite the registration.
At first, it is safer to look at only the plan with --dry-run.
According to the installation guide, --dry-run returns a read-only plan with status planned and exit code 0.
I picked only Claude Code and previewed it without the skill install.
Output of rea setup --client claude_code --skill=false --dry-run --json trimmed with jq: status planned, one planned action with kind configure_client, label Claude Code, target /Users/promlee/.claude.json, operation update, backupPath /Users/promlee/.claude.json.rea.backup, applied an empty array, exit=0
The result was status: "planned", and the actually applied actions (applied) were an empty array.
The plan held one item:
update ~/.claude.json and keep its previous contents in ~/.claude.json.rea.backup
.
The original output before trimming with jq has more information.
It showed that the registered command would consist of the absolute paths of node and the globally installed rea, plus the mcp argument, and that the already installed Hopper path would be passed along as HOPPER_LAUNCHER_PATH.
The installation guide also explains that setup registers
the installation that ran setup to be launched directly
, instead of resolving a package runner again.
After reviewing the --dry-run result, you apply it by running setup again with the same scope.
๊ฐ์ ๋ฒ์๋ก ์ ์ฉ
rea setup --client claude_code
๐
Even with --yes, if you do not specify a scope it applies only to clients that already have an REA registration.
For automation with --yes, the installation guide says to name the scope explicitly, such as --client codex, or to use --all-detected only when you intend that broad scope.
A --yes placed before npx only approves the package download; it does not approve REA's setup changes.
As of November 23, 2026, the supported agents table in the installation guide lists 42 clients.
It includes Claude Code (claude_code), Claude Desktop (claude_desktop), Codex (codex), Cursor (cursor), Gemini CLI (gemini_cli), Windsurf, GitHub Copilot CLI, VS Code, Zed, Goose, and more.
It notes that some clients can be registered through setup only in releases after 6.5.0, 6.8.0, or 6.9.0.
Clients not in the table can still connect through manual registration if they support local MCP.
Cursor installs it from the Cursor Marketplace, which brings in both the skill and the MCP server.
If you want only the skill (the agent's workflow instructions), there is this command.
This command installs only the instructions, not the MCP registration or any analysis engine.
๐๏ธ
Use either a plugin or an rea setup registration for a client, not both.
Using both registers two rea servers.
Also, with a plugin install, rea doctor cannot see the plugin's state and reports it as missing, and the installation guide says not to follow that advice and run rea setup in this case.
To keep using the rea command in your terminal, install it globally.
์ ์ญ ์ค์น
npm install --global rea-agentsrea --version
npm install --global rea-agents log: prebuild-install deprecated warning, a warning that the frida@17.23.2 install script is not covered by allowScripts, changed 43 packages in 8s, and rea --version printing 6.10.1
The prebuild-install deprecation warning is a message the installation guide describes as
coming from transitive dependencies such as Frida, and unrelated to REA's behavior or setup failure
.
There was also a warning that the install script of frida@17.23.2 was not covered by npm's allowScripts and did not run, but static analysis does not need it, so I did not allow it.
The log from the first install was added 30 packages in 17s; the screenshot was taken during a reinstall, so it shows changed 43 packages.
rea doctor only reads host prerequisites and agent configuration without changing them.
์ ์ฒด ์ ๊ฒ (์ด๋ฆ๊ณผ ๋ถ๋ฅ๋ง)
rea doctor --json | jq -r '"healthy: \(.healthy)", (.scope_checks[] | [.name, .classification] | @tsv)' | column -t
rea doctor result: healthy false. node, host, and hopper are healthy; ghidra, ida-registration, jadx, and kuna-installation are missing_analysis_engine; skill:identity and seven registration entries are config_drift; registration:codex is unknown
The result was healthy: false.
Without options it audits every detected registration and optional engine, so the installation guide also explains that
the overall value can be false even while the workflow you want works
.
In practice, it is better to narrow the check to the scope of your task.
What you want to do
Check command
Static JS and Electron analysis
Run rea analyze-javascript-application PATH --json directly
rea doctor --provider ghidra result: healthy true; node, ghidra, ghidra-platform, ghidra-architecture, ghidra-installation, ghidra-version, ghidra-headless, ghidra-native_decompiler, and ghidra-java all healthy; registration_environment:codex unknown
With the scope narrowed, it returned healthy: true.
The docs also explain why registration_environment:codex on the last line is unknown.
Doctor checked the engine
with the current terminal's environment variables
, but the Codex registration file does not record those settings, so it cannot know whether the server the agent launches will receive the same values.
This item does not change the healthy value.
There is one thing to remember here.
An MCP server inherits the agent client's environment, not your terminal's.
If you set GHIDRA_INSTALL_DIR only in the terminal, it does not reach the REA server the agent launches.
The installation guide says to rerun setup from that terminal to record the settings in the registration file, then restart the agent.
You can also check whether the MCP server starts properly without going through an agent.
MCP ์๋ฒ ์ ๊ฒ
rea mcp doctor --json 2>/dev/null \ | jq '{healthy, server, tools: .inventory.tools.observed, prompts: .inventory.prompts.observed, checks: [.checks[] | "\(.name): \(.ok)"]}'
rea mcp doctor result: healthy true, server rea 6.10.1, protocol_version 2025-11-25, tools 263, prompts 6, and initialize, inventory:tools, inventory:prompts, server-identity, and request-flow all true
The server initialized with protocol version 2025-11-25 and exposed exactly the expected 263 tools and 6 prompts.
The final request-flow check is the result of calling the binary_session tool once without a target file.
When REA tools do not show up in your agent, start with this command to tell whether the problem is on the server side or the connection side.
Beyond that, rea providers --json and rea capabilities --json show what each engine can do and its side effects (launching processes, writing files, and so on).
The maintenance commands in the installation guide are as follows.
์ ๋ฐ์ดํธ์ ์ ๊ฑฐ (ํ์)
rea updaterea uninstallrea uninstall --purge-data
rea update updates only the npm or Bun global installation that owns the running CLI.
If you use npx, refresh the registration with npx rea-agents@latest setup.
rea uninstall removes only the registrations and skill files REA created, and leaves Hopper, Node.js, analysis result files, and other MCP servers in place.
You can enable zsh completion with eval "$(rea completions zsh)".
If you are on Node 23 or 25, switch to a supported version before running REA.
If you use nvm, installing an even-numbered LTS release such as with nvm install 24 is the simple route.
According to the README's FAQ, the first time Hopper runs on macOS, a dialog may ask you to choose demo mode or activate a license.
It advises finishing that choice
in the same user session
before your first use of REA.
In part 5, I started an analysis with Hopper, the launch failed, and I recorded that this license prompt window was open right after the failure.
On Linux, REA checks ownership with a procps-compatible ps before launching child processes.
The installation guide says that not only Ghidra, JADX, and firmware tools but also static JS and Electron analysis go through this check.
In environments without ps, such as minimal containers, install your distribution's procps or procps-ng package first.
looking at the plan before changing anything, and narrowing the scope when you check
.
Node is supported only at 22.23.4 or later, 24.22.1 or later, and 26.12.1 or later; 23 and 25 are not supported.
Get the official rea-agents package from a trusted folder outside the analysis target.
Use rea setup --dry-run first to see which configuration file it changes and where it backs it up.
Use either a plugin or a setup registration for a client, not both.
Read rea doctor with the scope narrowed by --provider or --client, and check the server itself with rea mcp doctor.
Engine paths and timeouts take effect only when they are in the environment of the server the agent launches.
In the next part, we use static JavaScript analysis, which works right away without an engine, to analyze the official Electron sample app and compare it with the original source.