How morluto/rea works
REA is a local reverse-engineering toolkit exposed through an MCP server and terminal commands. An agent or engineer submits an analysis request; the application routes work to analysis capabilities and returns evidence-backed results. Documented capabilities span static JavaScript/Electron analysis, browser/runtime inspection, and native binary analysis through optional engines. The graph connects only relationships supported by the README or shown source/index references; several capability implementations are unsampled, so those connections are omitted rather than inferred.
Main entry points: ReverseEngineeringService.ts Reverse service · main.ts MCP server · reverseEngineeringCommands.ts Analysis CLI · serviceToolBindings.ts Tool bindings
Components 20
User entry points
- MCP server
src/main.ts - Analysis CLI
src/cli/reverseEngineeringCommands.ts
Request orchestration
- Tool bindings
src/server/serviceToolBindings.ts - Reverse service
src/application/reverse/ReverseEngineeringService.ts - Provider composition
src/composition/reverseEngineering.ts - Tool contracts
src/contracts/reverseEngineeringToolContracts.ts
Analysis capabilities
- JavaScript analysis
src/domain/javascript/javascriptRouteScan.ts - Browser scenarios
src/browser/PlaywrightScenarioStorage.ts - Capture fingerprints
src/browser/CdpCaptureStorageFingerprints.ts - Ghidra integration
src/ghidra - Hopper integration
src/hopper - IDA integration
src/ida/IdaSessionClient.ts - Kuna integration
src/kuna/KunaSessionClient.ts - Cutter integration
src/cutter
Results and evidence
- Evidence records
src/domain/evidence.ts - Analysis errors
src/domain/analysisErrorBase.ts - JSON validation
src/domain/jsonValue.ts - Result type
src/domain/result.ts
Other components
- Agent
- Terminal user
Connections 18
- Agent → MCP server: requests analysis
README.md - Terminal user → Analysis CLI: runs commands
README.md - MCP server → Tool bindings: serves tools
- Analysis CLI → Provider composition: uses composition
src/cli/reverseEngineeringCommands.ts - Provider composition → Reverse service: constructs service
src/composition/reverseEngineering.ts - Reverse service → Analysis errors: reports failures
src/application/reverse/ReverseEngineeringService.ts - Reverse service → Evidence records: returns evidence
src/application/reverse/ReverseEngineeringService.ts - Tool bindings → Tool contracts: binds contracts
- Agent → JavaScript analysis: requests inspection
- Agent → Browser scenarios: requests inspection
- Browser scenarios → Capture fingerprints: stores capture data
src/browser/CdpCaptureStorageFingerprints.ts - Agent → Ghidra integration: requests analysis
- Agent → Hopper integration: requests analysis
- Agent → IDA integration: requests analysis
- Agent → Kuna integration: requests analysis
- Agent → Cutter integration: requests analysis
- Evidence records → JSON validation: validates payloads
src/domain/evidence.ts - Reverse service → Result type: returns outcomes
src/application/reverse/ReverseEngineeringService.ts