How jungyunseong/rea works
REA is a local reverse-engineering MCP server and CLI. An agent or terminal user selects a target and requests an investigation; REA routes work to a suitable analyzer and returns findings with evidence and limitations. The README documents multiple target-specific capabilities, while the source index confirms the main server, provider, browser, JavaScript, and analysis layers. Several capability implementations are represented by their exact source paths, but unsampled internal dispatch links are omitted or identified as documented rather than inferred.
Main entry points: main.ts REA entrypoint · AnalysisProvider.ts Provider contract · contractToolHandler.ts MCP tool handler · SessionProviderRouter.ts Session provider router
Components 23
Runtime and tools
- REA entrypoint
src/main.ts - MCP tool handler
src/server/contractToolHandler.ts - Provider contract
src/application/AnalysisProvider.ts - Session provider router
src/application/binary/SessionProviderRouter.ts
Binary analysis
- Native analyzers
src/ghidra/GhidraProviderClient.ts - Hopper analyzer
src/hopper/HopperClient.ts - IDA analyzer
src/ida/IdaSessionClient.ts - ELF diagnostics
src/application/binaryDiagnostics/BinaryLayoutService.ts - Go inspection
src/application/go/GoBinaryService.ts - WASM inspection
src/application/wasm/WasmInterfaceComparisonService.ts - EVM inspection
src/application/evm/EvmInterfaceService.ts
Application analysis
- JavaScript analysis
src/application/javascript/JavaScriptApplicationService.ts - Analysis worker
src/javascript/analysis/JavaScriptAnalysisWorker.ts - Android analysis
src/application/android/AndroidAnalysisService.ts - .NET analysis
src/application/AnalysisProvider.ts - SQLite inspection
src/sqlite/SqliteDatabaseInspection.ts
Web and runtime
- Browser inspection
src/application/BrowserObservationService.ts - Browser capture storage
src/browser/CdpCaptureStorage.ts
Evidence and results
- Evidence records
src/domain/evidence.ts - Reconstruction coverage
src/application/ReconstructionCoverageService.ts - Typed results
src/domain/result.ts
Other components
- Agent
- Terminal user
Connections 23
- Agent → REA entrypoint: requests analysis
- Terminal user → REA entrypoint: runs workflows
- REA entrypoint → MCP tool handler: starts MCP
src/main.ts - REA entrypoint → Session provider router: creates binary session
src/main.ts - MCP tool handler → Provider contract: invokes analysis
src/server/contractToolHandler.ts - Session provider router → Provider contract: routes operations
src/application/binary/SessionProviderRouter.ts - Provider contract → Native analyzers: analyzes binaries
src/ghidra/GhidraProviderClient.ts - Provider contract → Hopper analyzer: analyzes binaries
src/hopper/HopperClient.ts - Provider contract → IDA analyzer: analyzes binaries
src/ida/IdaSessionClient.ts - REA entrypoint → ELF diagnostics: offers ELF diagnostics
- REA entrypoint → Go inspection: offers Go inspection
- REA entrypoint → WASM inspection: offers WASM inspection
- REA entrypoint → EVM inspection: offers EVM inspection
- REA entrypoint → JavaScript analysis: offers app analysis
- JavaScript analysis → Analysis worker: analyzes modules
- REA entrypoint → Android analysis: offers Android analysis
- REA entrypoint → .NET analysis: offers .NET analysis
- REA entrypoint → Browser inspection: offers website inspection
- Browser inspection → Browser capture storage: captures observations
- REA entrypoint → SQLite inspection: offers database inspection
- MCP tool handler → Evidence records: returns findings
src/server/contractToolHandler.ts - MCP tool handler → Typed results: returns outcomes
src/server/contractToolHandler.ts - REA entrypoint → Reconstruction coverage: offers coverage evaluation