跳到正文
AddMCP

rea doctor 显示 healthy: false 怎么办

你看到的情况

运行 rea doctor --json 后,结果里是 "healthy": false,下面列了一堆失败项:Hopper、Ghidra、IDA、JADX……

报错原文

npx rea-agents doctor --json 中失败的检查项(节选,路径已缩写为 ~)
{"healthy": false, "scope": {"mode": "audit-wide"}}
{"name": "hopper", "ok": false, "remediation": "Run rea setup to install Hopper, or set HOPPER_LAUNCHER_PATH."}
{"name": "ghidra", "ok": false, "detail": "GHIDRA_INSTALL_DIR is not set", "remediation": "Set GHIDRA_INSTALL_DIR to an extracted Ghidra 12.1.x release directory."}
{"name": "ida-registration", "ok": false, "detail": "IDA MCP registration is not configured.", "remediation": "Set REA_IDA_MCP_CONFIG to your upstream IDA MCP registration JSON; see docs/ida-provider.md."}
{"name": "jadx", "ok": false, "detail": "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.", "remediation": "…"}
{"name": "skill:identity", "ok": false, "detail": "Installed REA skill identity is missing.", "remediation": "Run rea setup to update the installed REA skill."}

实测:2026-10-27,macOS 15.6.1,REA 6.8.0。输出来自尚未安装任何分析引擎的电脑。

原因

不加参数时,doctor 会检查它能找到的**所有**助手和**所有**分析引擎。你没用到的引擎(比如没装的 Hopper、IDA)也会算作失败,所以即使你的配置完全能用,healthy 也可能是 false。官方文档也说明了这一点。

解决步骤

  1. 只检查你用到的部分。指定范围后,healthy 只取决于这些检查:

    终端
    npx rea-agents doctor --client cursor --json
    终端
    npx rea-agents doctor --provider ghidra --json
    终端
    npx rea-agents doctor --skill --json
  2. 看结果里的 scope_checks,它们决定 healthy;informational_checks 只是参考,不影响结果。

  3. 如果你确实要用 Ghidra,而它报 GHIDRA_INSTALL_DIR is not set,就设置路径后再检查,见 安装教程:

    终端
    export GHIDRA_INSTALL_DIR="/absolute/path/to/ghidra_12.1.4_PUBLIC"
    export JAVA_HOME="/absolute/path/to/jdk-21"
    npx rea-agents doctor --provider ghidra --json
  4. Windows 的 PowerShell 写法:

    PowerShell
    $env:GHIDRA_INSTALL_DIR = "C:\path\to\ghidra_12.1.4_PUBLIC"
    $env:JAVA_HOME = "C:\path\to\jdk-21"
    npx rea-agents doctor --provider ghidra --json
重新生成我的安装清单 →

按你的助手和系统,重新生成一份安装步骤。