mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 07:47:29 +00:00
[GH-ISSUE #2301] IDA provider rejects upstream ida-pro-mcp 2.0.0 in both attached and headless modes #763
Closed
opened 2026-10-15 18:28:06 +00:00 by bsakaguchi
·
6 comments
No Branch/Tag specified
main
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
codex/procedure-reference-stacked
codex/kuna-independent-retry
codex/byte-search-overlay-coverage
codex/open-failure-target-receipt
codex/kuna-xref-evidence
codex/ghidra-ambiguous-procedure-recovery
codex/function-source-bundle
codex/trace-function-integration-prototype
codex/snapshot-source-closure
codex/recorded-evidence-array-pages
codex/evidence-recovery-redesign
codex/trace-feature-address-scope
codex/call-discovery-scope
codex/ghidra-literal-candidate-evidence
codex/decompile-directory-independent-retry
codex/retry-provenance-base
codex/value-flow-capability-experiment
codex/ghidra-containing-instruction
cursor/readme-discord-button-ef9f
dependabot/github_actions/actions/setup-node-7.1.0
dependabot/github_actions/actions/upload-artifact-7.0.2
dependabot/npm_and_yarn/npm-minor-and-patch-d8d97ce6df
codex/kuna-1989
fix/8559-native-ui-fixture-ownership
fix/8555-go-verifier-mcp-ownership
codex/provider-capability-recovery
fix/8642-rizin-target-stdin
codex/ghidra-memory-effect-scope
codex/ghidra-annotation-entry-selector
codex/ghidra-readonly-recovery
codex/ghidra-regex-verifier-recovery
codex/evidence-discovery-view-guidance
fix/8545-bulk-append-overflow
fix/8428-navigation-refusal-alternatives
codex/address-context-recovery
codex/matching-member-limitations
codex/unknown-scope-contract
codex/evidence-view-guidance
feat/8373-native-trace-views
codex/ghidra-snapshot-verifier-binding
codex/elf-export-visibility
codex/evidence-view-recovery
codex/native-reference-cli-help
codex/provider-candidate-observation-scope
codex/kuna-session-verification
codex/ghidra-switch-lifetime-guidance
codex/pseudocode-paging-discovery
codex/clarify-evidence-view-support
codex/kuna-xrefs-selector-recovery
codex/context-capacity-recovery
codex/evidence-closure-large-links
codex/same-function-evidence-identity
codex/ghidra-verifier-inspected-jdk
codex/audit-guided-workflows
codex/crash-prompt-retained-dossiers
codex/analysis-view-error-recovery
codex/kuna-verifier-target-selection
codex/ghidra-selected-project-call-coverage
codex/docs-native-analysis-scope
codex/ghidra-java-socket-boundary
codex/ghidra-retained-snapshot-verifier
codex/ghidra-search-inventory-facts
fix/8284-zero-argument-parameter-bindings
fix/8198-ui-action-handler-offset
fix/8257-elf-entry-label-identity
fix/8304-deferred-output-schema-projection
fix/8277-call-path-computed-target-uncertainty
fix/pr-8089-conflicts
fix/ci-static-duplicate-export
dependabot/npm_and_yarn/lint-staged-17.6.0
dependabot/github_actions/actions/download-artifact-8.0.2
dependabot/npm_and_yarn/write-file-atomic-8.0.0
dependabot/npm_and_yarn/canonicalize-5.1.0
dependabot/github_actions/actions/cache/restore-6.1.0
dependabot/npm_and_yarn/toon-format/toon-4.4.0
dependabot/github_actions/actions/deploy-pages-5.0.1
codex/review-fixes-pr-2403
codex/review-fixes-pr-2400
codex/process-terminal-width
codex/test-brittleness-cleanup
verify/7167-browser-connect-macos
fix/7167-browser-connect
feat/native-matching-allowance-setting
feat/browser-scenario-dry-run
test/managed-caller-parameters-20261024
codex/parser-fortythird-boundaries
fix/6926-pinvoke-platform-decorations-20261023
fix/6889-har-body-encoding-20261023
fix/6888-sqlite-schema-budget-20261023
fix/dependency-security-gates-6708
cursor/evidence-overwrite-rebase-b4ac
feat/4057-verify-native-exports
fix/windows-acl-observer-overhead-20261022
cursor/erlang-beam-restack-4476
cursor/pe-certificate-review-bf32
fix/6116-javascript-application-fs-errors
fix/6061-unmapped-runtime-script-unknown
feat/browser-scenario-summary
fix/pe-certificates
codex/verify-3407
cursor/rebase-5699
cursor/rebase-5352
cursor/rebase-5600
cursor/fix-cli-schema-omission-10a8
codex/audit-hopper-shutdown-reasons-20261021
fix/demangle-swift-omitted-record
fix/nib-boolean-value-types
cursor/cancellation-partial-observation-a5ac
fix/ib-object-limit-reasons
fix/electron-fuse-limit-advice
fix/kuna-doctor-dangling-cache
fix/fixed-budget-refusal-advice
fix/js-ipc-listener-dedup
fix/js-return-member-provenance
fix/dmg-integrity-retry-advice
fix/ida-doctor-readiness
fix/kuna-version-probe-output-drain
fix/legacy-swift-runtime-name-matching
fix/dylib-lazy-load-commands
fix/browser-scenario-startup-cancel
fix/swift-nested-punycode-classification
fix/compare-unselected-scopes
fix/objc-method-budget-coverage
fix/dmg-mounted-root-observations
audit/ci-tests-20261019-round2
release/6.7.0
fix/wabt-cleanup-retry-resolution
fix/electron-fuse-elf-pe-architecture
fix/native-plist-descriptor-ownership
fix/kuna-caller-cleanup-ownership
experiment/atomic-codemode-20261016
review/first-contributor-3776
fix/call-resolution-full-read-cycles
fix/member-mutation-selection-repeat
experiment/atomic-re-tools-20261015
perf/member-mutation-lazy-origins
perf/static-network-mutation-index
fix/hopper-startup-lifecycle
audit/3050-windows-proof-20261015
feat/windows-window-capture-2183
audit/3049-windows-proof-20261015
audit/3735-macos-fixtures-20261015
fix/batch-decompile-null-pseudocode
fix/kuna-inventory-honors-jobs
experiment/browser-codemode-tool-design-20261015
fix/hopper-clean-runtime-argv
codex/review-2049-27f1b367
review-fixes/pr-2787-routing
fix/3360-scoped-this-emitters
fix/3367-replaced-global-effects
fix/3838-compact-any-value-items
test/hopper-download-probe-20261015
codex/windows-runtime-creation-red-green-20261015
codex/windows-readonly-root-red-green-20261015
codex/windows-root-share-red-green-20261015
codex/exp-1685-win-mcp-startup
codex/bug-sweep-20261015
investigate/2190-windows-package-phases
investigate/3543-macos-cli-deadline
perf/3281-reverse-tools-feedback-quality
fix/3406-hopper-doctor-fixture
fix/3341-wrapper-require-test-context
fix/3301-owned-uninstall-fixtures
fix/3164-compiler-input-ownership
fix/pcap-cleanup-stdout-newline-20261014
perf/interface-builder-summary
codex/review-fixes-pr-1977
fix/ghidra-effective-jvm-platform
fix/docs-turkish-rust-link-20261013
fix/main-maintenance-ci-20261010
fix/recover-binary-session-process-effects
codex/review-fixes-pr-2457
codex/ci-required-cancellation-gate
fix/main-format-baseline-20261013
fix/setup-preserve-entry-fields
cursor/restore-main-checks-1ffc
fix/ghidra-bridge-hashmap-import
codex/shared-ci-jadx-json-default-20261013
codex/shared-ci-ghidra-test-groups-20261013
codex/shared-ci-java-fixture-format-20261013
codex/fix-intrinsic-invocation-boundaries
test/release-preflight-reusable-jobs
test/js-parameter-provenance-expectation
fix/linux-hopper-verification-current
test/2419-ghidra-elf-probe-size
followup/pr-1544-native-ida
codex/fold-pr-2230-contribution
docs/readme-responsible-use
fix/issue-2064
fix/issue-2050
fix/issue-2053
fix/issue-1968
fix/issue-1945
experiment/codemode-bridge-20261011
fix/tool-effects-negative-wording-1904-20261012
fix/1842-electron-interop-provenance
feat/recover-javascript-multi-input
refactor/website-i18n-prep
fix/nativeaot-pe-virtual-extent
fix/browser-verifier-ci-hang
fix/pe-resources-input-selection
docs/beginner-friendly-guides
docs/beginner-setup-guide
fix/javascript-analysis-worker-1563
fix/1649-ghidra-duplicate-names
fix/javascript-export-keys-integration-1369
test/maintenance-boundary-contracts-20261011
review/javascript-export-keys-1369
review/process-live-progress-1483
test/javascript-1495-growth-ratio
fix/ci-escape-timing
docs/normalized-terminal-geometry-1450
release/6.3.0
archive/release-6.3.0-pr1381
release/6.2.0
fix/electron-preload-dynamic-override
fix/javascript-self-referential-bundler-edges
release/6.1.0
cursor/grok-client-cherry-pick-0b56
feat/signature-posture
feat/dyld-shared-cache
feat/artifact-integrity-policy
feat/pkg-inventory
release/6.0.0
chore/sync-release-5.0.0
release/5.0.0
cursor/cloud-agent-node-787e
fix/javascript-xhr-open-endpoints
review/pr-711-realpath-fallback-wording
cleanup/replay-confinement
codex/test-suite-performance
codex/issue-foundations
codex/address-open-issues-2026-07-20
agent/javascript-vite-rollup-esbuild-adapters
agent/process-cleanup
agent/triage-integration
agent/unknown-commands-registry
feat/mcp-identity-metadata
morlvps/issue_cleanup
codex/installer-redesign
morl/roadmap-investigation-core
morl/roadmap-investigation-docs
release-please--branches--main--components--rea
rea-agents-6.8.0
rea-agents-6.7.0
rea-agents-6.6.0
experiment/atomic-codemode-wait-runtime-20261016
rea-agents-6.5.0
rea-agents-6.4.0
rea-agents-6.3.0
rea-agents-6.2.0
rea-agents-6.1.0
rea-agents-6.0.0
rea-agents-5.0.0
rea-agents-4.1.0
rea-agents-4.0.1
rea-agents-4.0.0
rea-agents-3.2.1
rea-agents-3.2.0
rea-agents-3.1.0
rea-agents-3.0.0
rea-agents-2.7.0
rea-agents-2.6.0
rea-agents-2.5.1
rea-agents-2.5.0
rea-agents-2.4.0
rea-agents-2.3.0
rea-agents-2.2.0
rea-agents-2.1.0
rea-agents-2.0.0
rea-agents-1.7.0
rea-agents-1.6.0
rea-agents-1.5.0
rea-agents-1.4.0
rea-agents-1.3.0
rea-agents-1.2.0
rea-agents-1.1.0
rea-agents-1.0.0
rea-agents-0.5.0
rea-agents-0.4.0
rea-agents-0.3.0
rea-0.2.1
rea-0.2.0
Labels
Clear labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
Mirrored from GitHub Pull Request
question
roadmap
triage
No labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
question
roadmap
triage
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
morluto/rea#763
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vt0x78 on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/2301
Summary
REA 6.4.0 cannot use
mrexodia/ida-pro-mcpat its currentmain(version 2.0.0). Both compatibility profiles inIdaSessionClientfail the startup tool check, so no analysis ever runs.This matters because installing from GitHub is the upstream project's documented method, so anyone following it today lands on 2.0.0. The last tagged upstream release is still 1.4.0, which is the only version the attached profile accepts.
What I observed
#initialize()compares the names fromtools/listagainstlegacyToolsormodernToolsand throws when any are missing.Attached mode expects the 1.4 names (
get_metadata,list_functions,get_function_by_name,decompile_function,disassemble_function,get_callers,get_callees,get_xrefs_to). The 2.0.0 GUI plugin exposes none of them. It ships a redesigned set instead, includingserver_health,lookup_funcs,list_funcs,decompile,disasm,callees,xrefs_to,find_regex.Headless mode is much closer. Against
idalib-mcp --stdio, ten of the eleven entries inmodernToolsare present. The only missing one isidb_close. Searching the installed 2.0.0idalib_supervisor.pyfor that string returns nothing, and the supervisor declares onlyidb_openandidb_listas its session lifecycle tools.So headless support is one tool away, but it is not a trivial rename.
#closeDatabase()callsidb_closeand then verifies the response reportsowned: true,saved: falseandbackend: "worker". If upstream has no close tool at all, that release contract has no equivalent to map onto, and deciding what should replace it looks like a maintainer call rather than something to guess at in a patch.Diagnosability
The failure is hard to trace back to its cause.
AnalysisProtocolErrornames exactly which tools are missing, but runningrea decompileagainst a 2.0.0 GUI instance prints only this:Nothing points at a version or profile mismatch.
rea doctordoes not help either, since it reports the IDA registration as healthy:That line is accurate, but combined with the generic runtime error it points away from the real problem. I only found the cause by logging the JSON-RPC traffic between REA and the proxy, where the exchange stops right after
tools/list.Surfacing the missing tool names in the CLI output would have turned a long debugging session into a quick fix, and that part seems worth addressing regardless of which versions end up supported.
Reproducing
main, which currently builds 2.0.0.idalib-mcp --stdiofor headless.REA_IDA_MCP_CONFIGat the registration and run any native analysis withREA_ANALYSIS_PROVIDER=ida.initializeandtools/listsucceeding, then nothing.Tested with REA 6.4.0, IDA Professional 9.1 on Windows, upstream 2.0.0.
Workaround
For anyone hitting this before it is resolved, upstream 1.4.0 from PyPI still works with the attached profile. Its plugin file is self contained, so it can be dropped into the IDA plugins directory next to a 2.0.0 install rather than replacing it. Two things to watch for. The 1.4 plugin hardcodes its bind address and port, so a second instance needs those edited. The 1.4 proxy also needs
mcp<2pinned, sinceFastMCPwas renamed in the 2.x Python SDK andserver.pyfails to import without it.Suggestion
Three things that would each help on their own:
doctorprobe the live tool list and report the detected profile, rather than validating the registration shape alone.mainis unsupported, which is what most people will install.Happy to help with a patch for the error reporting and docs if that would be useful. I left the lifecycle question alone since the right answer depends on what upstream intends to offer in place of
idb_close.@nikolay-dementiev commented on GitHub (Oct 12, 2026):
The headless supervisor at upstream
main(mrexodia/ida-pro-mcp c133c38,pyproject.tomlversion 2.0.0) does serveidb_close:src/ida_pro_mcp/idalib_supervisor.pydefinesidb_close(database, save=True), added by mrexodia/ida-pro-mcp#495. REA's headless profile works against that build on real IDA Professional 9.1 (macOS arm64): open, every read operation,idb_closewithsave: falseand workspace cleanup. The version string did not change whenidb_closewas added, so a 2.0.0 install built before #495 lacks it. Reinstalling from currentmainprovides it. The attached-mode findings above are unaffected.@matbrgz commented on GitHub (Oct 12, 2026):
Triage & Profile Evolution Notes
Upstream
mrexodia/ida-pro-mcpv2.0.0 represents a significant tool renaming overhaul compared to v1.4.0 (get_functions->list_funcs,decompile_function->decompile,get_callers->callers).ida-pro-mcpshould be version-profiled rather than mutating the legacy contract in place:v1attached profile for 1.4.x setups.v2profile inIdaSessionClientmapping the v2 tool names into REA's internal IDA adapter primitives.idalibtool omissions by falling back gracefully or declaringcapability_unavailablefor absent GUI-only tools.@akushonkamen commented on GitHub (Oct 14, 2026):
Confirmed against
main@131b2d85f— I'll take this with a focused fix for the attached-mode half plus a diagnosable headless error.Root cause (
src/ida/IdaSessionClient.ts, verified at HEAD):#initialize()picks the expected tool profile three-way (src/ida/IdaSessionClient.ts:519-524): attached →legacyTools(hardcoded 1.4 names at:53-64), headless →modernTools. There is no profile for upstream 2.x, so a 2.0.0 attached instance has zero intersection withlegacyTools,missing.length > 0(:525) throwsProviderAdapterError(:530) and startup dies before any tool call.idb_close(:68), which 2.0.0 builds predating mrexodia/ida-pro-mcp#495 lack.Plan: add an explicit v2 attached profile selected by probing the served
tools/list(legacy stays compatibility-first), route v2 attached metadata observation throughserver_health/the existing health schema path (:642-647) instead ofget_metadata/legacyMetadataSchema(:620-631), and make the headless mismatch name the required build (post-#495) so it is diagnosable instead of guessable. Followed up with unit tests mocking a 2.0.0 tool list.Assisted-by: AI (Claude Code); I verified the diagnosis and will run the tests myself.
@akushonkamen commented on GitHub (Oct 14, 2026):
Follow-up to my claim above, with a scope correction.
While preparing the patch I found that
docs/ida-provider.mdon currentmain(commita688c7978, "docs(ida): describe catalog-based lifecycle compatibility") now documents the attached-mode refusal as deliberate: REA "has not established an equivalent attached-mode lifecycle and ownership contract for that catalog" and fails closed, with real attached 2.0.0 workflows required before support is claimed. So I am retracting the attached-mode half of my plan — a v2 profile PR from me would contradict a decision the maintainer documented hours ago, and I cannot run the real IDA verification that docs/ida-provider.md requires for it.For the record, one upstream fact that may help if that contract is ever established: in the 2.0.0 GUI plugin (
src/ida_pro_mcp/ida_mcp/api_core.pyat upstreamc133c385),server_health(_build_health_payload) already returnsstatus,input_path,idb_path,module,imagebase,auto_analysis_ready— field-for-field the shape of REA's existingmodernHealthSchema— so attached identity binding would not need a new upstream surface, only real-GUI verification of the lifecycle contract.What I am contributing instead is the headless diagnosability slice from the issue's suggestion 1, aligned with the catalog-based documentation: when a headless supervisor is missing only
idb_close, the startup error now names the upstream build that added it (mrexodia/ida-pro-mcp#495) in the summary, the recovery hint, and a newupstream_requirementdiagnostic — turning "missing tools: idb_close" into "reinstall from a post-#495 build", which is the actual fix per @nikolay-dementiev's finding. Fail-closed behavior is unchanged. Patch is ready locally with tests; PR to follow.Assisted-by: AI (Claude Code); diagnosis and tests verified by me.
@akushonkamen commented on GitHub (Oct 14, 2026):
The fix is complete and re-verified against current
main, but it has to be delivered via this comment instead of a PR: attempting to open one is currently rejected server-side for my account (CreatePullRequest→ FORBIDDEN, REST returns 404), which looks like the repo's pull-request creation policy or a rate-control measure rather than anything branch-specific. I won't keep retrying against the repo's wishes.Delivered: branch
fix/2301-headless-idb-close-build-hinton my fork @14edd6b5a, rebased ontoorigin/main@7375ab6e3(two files:src/ida/IdaSessionClient.ts,src/ida/IdaSessionClient.test.ts). It implements item 3 from my claim above: when the headless profile missesidb_close, the initialize error namesmrexodia/ida-pro-mcp#495in the summary, the recovery hint, and a newupstream_requirementdiagnostic. Fail-closed behavior, the expected profile, andmissing_toolsare unchanged. The attached v2 profile (items 1–2) stays withdrawn per my follow-up.Re-run on the rebased branch, as measured here:
npx vitest run src/ida/IdaSessionClient.test.ts --testTimeout=20000 -t "names every missing tool"against the pre-fix implementation — 1 failed | 59 skipped (60); with the fix applied, the full file passes 60/60.npx vitest run tests/composition/idaProvider.test.ts src/ida/IdaBusyHealth.test.ts --testTimeout=20000— 9/9 passed.npm run verify:test-discovery— 1246 test files discovered exactly once;npm run verify:module-boundaries— 1861 source files (both counts grew from 1244/1859 becausemainadded files; re-measured after the rebase).npx oxfmt --checkon the two changed files — clean;npx oxlint— 5 warnings / 0 errors, identical to the clean tree;npx tsc --noEmit— clean afternpm cisynced the stalenode_modules. The 4 pre-existingsaxes/cborgerrors reproduced identically on a cleanorigin/mainworktree first, confirming they were environmental and unrelated to this change.The branch stays available — happy to open the PR once policy allows, or maintainers can pull the branch directly. Investigated with AI assistance, as before.
@morluto commented on GitHub (Oct 14, 2026):
Thanks for the report and the follow-up verification. The original “2.0.0 is rejected in both modes” description no longer matches the supported boundary: current headless supervisor builds that serve
idb_open,idb_list, andidb_closeare supported, while older builds with the same2.0.0version string but noidb_closeare rejected with the missing tool and expected profile reported. The current requirements and recovery are documented in docs/ida-provider.md.Attached-mode 2.0.0 remains intentionally unsupported because REA has not verified an equivalent attached GUI lifecycle and ownership contract; the adapter fails closed rather than inferring support from renamed tools. Supporting that catalog would need a separate scope decision and real attached-mode verification. Since neither failure is an undisclosed compatibility bug on the current supported boundary, Closing this report as clarified supported-build requirements. This does not claim attached v2 support or compatibility with older headless builds missing
idb_close.