RE-MCP
A safety-first local MCP server for ROM reverse-engineering, enabling project status checks, file verification, Bakugan DS build/quality tasks, and read-only DeSmuME/ARM9 debugging.
README
RE-MCP
A safety-first local Model Context Protocol server for ROM reverse-engineering workflows.
RE-MCP uses stdio and exposes narrow, tested tools rather than an unrestricted shell.
Current capabilities
General
- Project Git status
- Allowlisted npm verification
- SHA-256 file verification
- Capability and policy reporting
Bakugan DS
- Compile, Ruff, mypy, pytest, or full quality suite
- Regenerate Milestone 6E contracts
- Run the Milestone 6E installer in dry-run mode
- Generate the Milestone 6E roster analysis
DeSmuME and ARM9 GDB
- Start, inspect, and stop one server-owned DeSmuME process
- Probe and wait for the owned ARM9 GDB port
- Read the raw ARM9 register packet
- Read up to 4096 bytes of ARM9 memory
- Atomically capture raw registers plus labeled memory regions
RE-MCP does not currently expose breakpoints, execution control, register writes, memory writes, or arbitrary GDB commands.
Requirements
- Node.js 20 or newer
- An MCP host that can launch local stdio servers
- A dedicated workspace containing the intended repositories and private ROM-development inputs
- For emulator tools, a verified DeSmuME debug bundle
Downloadable RE-MCP bundle
The Package GitHub Actions workflow publishes a re-mcp-downloadable-bundle artifact containing:
- Compiled JavaScript
- Production dependencies
- Configuration template
- Installation self-check
- SHA-256 checksum
After downloading and extracting the archive:
cd re-mcp-0.6.0
node scripts/check-install.mjs .
Copy mcp-config.example.json, replace both absolute paths, and add the resulting configuration to your MCP host.
Build the Catalina-native DeSmuME debugger bundle
The manual Build Catalina-Native DeSmuME Debug Bundle workflow builds the DeSmuME 0.9.13 Cocoa dev+ application for Intel x86_64 Macs with a macOS 10.15 deployment target. It applies a narrow patch that starts the existing ARM9 GDB stub when RE_MCP_ARM9_GDB_PORT is supplied.
To run it:
- Open the repository's Actions tab.
- Select Build Catalina-Native DeSmuME Debug Bundle.
- Select branch
feature/catalina-native-desmume. - Choose Run workflow.
- Download
desmume-catalina-native-debug-bundleafter the job finishes. - Verify
desmume-catalina-native-debug.zipagainst the accompanying.zip.sha256file before extraction.
After extraction on the Catalina Mac:
xattr -dr com.apple.quarantine desmume-catalina-native-debug
chmod +x desmume-catalina-native-debug/run-desmume-debug.command
./desmume-catalina-native-debug/run-desmume-debug.command \
/absolute/path/to/Bakugan.nds 20000
Only remove quarantine after verifying the checksum and confirming that the artifact came from the expected workflow run.
Catalina acceptance checklist
Before integrating this launcher mode into RE-MCP, verify on the target macOS Catalina 10.15 system that:
- The Cocoa application opens.
- The ROM boots successfully.
lsof -nP -iTCP:20000 -sTCP:LISTENshows a localhost listener.- RE-MCP's
desmume_probe_gdbsucceeds after the launcher integration is added. - A raw ARM9 register packet can be read.
- One bounded ARM9 memory read succeeds.
The current branch produces and validates the native artifact only. RE-MCP launcher-schema integration is the next milestone after this smoke test passes.
Build RE-MCP from source
npm install
npm run check
npm run build
Run directly:
RE_MCP_WORKSPACE_ROOT=/absolute/path/to/rom-modding \
node dist/index.js
The server refuses to start without an explicit workspace root.
DeSmuME launcher contract
The currently verified Linux launcher contract is:
run-desmume-debug.sh --arm9gdb=20000 /path/to/game.nds
The candidate Catalina-native bundle uses:
run-desmume-debug.command /path/to/game.nds 20000
RE-MCP owns at most one emulator child process per server instance. It rejects duplicate starts, captures bounded logs, and terminates the owned emulator during MCP shutdown.
Security model
- No arbitrary shell tool
- No shell interpolation
- Fixed executable and argument construction
- Workspace path containment
- Process timeouts and bounded output
- Minimal child-process environment
- Milestone 6E installation restricted to dry-run mode
- One server-owned DeSmuME process
- GDB restricted to the owned localhost port
- Read-only
gand boundedmpackets - Runtime evidence restricted to project
analysis/generated - No attachment to unrelated emulator processes
Do not use your general home directory as RE_MCP_WORKSPACE_ROOT. Create a dedicated directory containing only the repositories and private inputs intended for RE-MCP.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。