How tawaraashish/rea-revers works
REA is a local reverse-engineering MCP server and CLI. The principal workflow is an agent or terminal user requests an investigation; REA dispatches analysis, returns evidence and limitations, and supports follow-up questions. The sampled code confirms the CLI-to-service path and the service’s process-management and evidence/error boundaries. README capabilities include native, JavaScript/Electron, .NET, and website analysis; provider and browser subsystems are shown where supported by the tree, but their internal wiring was not sampled.
Main entry points: ReverseEngineeringService.ts Reverse analysis · main.ts MCP server · registerReverseEngineeringTools.ts MCP analysis tools · reverseEngineeringCommands.ts CLI commands
Components 20
User entry points
- MCP server
src/main.ts - MCP analysis tools
src/server/registerReverseEngineeringTools.ts - CLI commands
src/cli/reverseEngineeringCommands.ts - Agent setup
src/application/Setup.ts
Analysis workflow
- Reverse analysis
src/application/reverse/ReverseEngineeringService.ts - Provider processes
src/process/ProviderProcess.ts - Tool contracts
src/contracts/reverseEngineeringToolContracts.ts
Analysis engines
- Ghidra
src/ghidra/GhidraClient.ts - Hopper
src/hopper/HopperClient.ts - IDA
src/ida/IdaSessionClient.ts - Debug sessions
src/gdb/GdbSessionManager.ts - Rizin sessions
src/rizin/RizinDebugSessionManager.ts - JavaScript analysis
src/javascript/analysis/JavaScriptAnalysisWorker.ts - Browser observations
src/application/BrowserObservationService.ts
Evidence and results
- Evidence records
src/domain/evidence.ts - Result type
src/domain/result.ts - Analysis errors
src/domain/analysisErrorCore.ts - Error projection
src/domain/analysisErrorProjection.ts
Other components
- Agent
- Terminal user
Connections 19
- Agent → MCP server: asks through MCP
README.md - Terminal user → CLI commands: runs commands
README.md - CLI commands → Reverse analysis: calls
src/cli/reverseEngineeringCommands.ts - MCP analysis tools → Reverse analysis: calls
src/server/registerReverseEngineeringTools.ts - Reverse analysis → Provider processes: manages processes
src/application/reverse/ReverseEngineeringService.ts - Reverse analysis → Evidence records: returns evidence
src/application/reverse/ReverseEngineeringService.ts - Reverse analysis → Result type: uses results
src/application/reverse/ReverseEngineeringService.ts - Reverse analysis → Analysis errors: reports failures
src/application/reverse/ReverseEngineeringService.ts - MCP analysis tools → Tool contracts: uses contracts
- Analysis errors → Error projection: projects errors
src/domain/analysisErrorProjection.ts - Agent setup → Agent: registers REA
README.md - Agent → Evidence records: receives findings
README.md - Reverse analysis → Ghidra: dispatches analysis
- Reverse analysis → Hopper: dispatches analysis
- Reverse analysis → IDA: dispatches analysis
- Reverse analysis → Debug sessions: dispatches sessions
- Reverse analysis → Rizin sessions: dispatches sessions
- MCP server → JavaScript analysis: offers analysis
- MCP server → Browser observations: offers observations