mcp-e2studio-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-e2studio-serverBuild the active project and show me any compile errors"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-e2studio-server
Renesas e2studio(RA / RX MCU)嵌入式开发的 MCP (Model Context Protocol) Server, 让 Claude Code / opencode 等 AI 工具能够自主完成:
接线 → 提需求 → AI 写代码 → 编译 → 烧录 → 调试 → 故障诊断 的完整闭环。
所有工具返回结构化 JSON(structuredContent),失败时 isError=true 并携带
error/error_type 等字段,便于 AI 精确处理错误。
English docs: README_EN.md
功能一览(15 个工具 + 2 个资源)
类别 | 工具 | 说明 |
环境 |
| 扫描 e2studio CLI / GCC / GDB / objcopy / make / RFP / J-Link,报告 FOUND/MISSING |
工程 |
| 解析工程名、MCU 型号、FSP 版本、源文件数、构建配置目录 |
构建 |
| 用 e2studio-cli 增量构建;返回解析后的错误列表(file/line/column/message) |
构建 |
| 真清理(仅删 |
构建 |
| 读取最近一次构建的原始输出/错误清单 |
烧录 |
| 用 Renesas Flash Programmer CLI 烧录(自动定位工程名/ELF/RFP 设备) |
烧录 |
| 用 J-Link Commander 烧录(需安装 SEGGER J-Link 软件) |
调试 |
| 启动 J-Link GDB Server 并烧录 ELF 到目标 |
调试 |
| 通过 GDB 运行固件指定秒数,超时自动触发 HardFault 寄存器抓取 |
调试 |
| 挂起 / 恢复 CPU |
调试 |
| 读取内存(hex dump + ASCII) |
调试 |
| 读取核心寄存器 + 自动解析 CFSR/HFSR/BFAR 故障寄存器与含义 |
调试 |
| 查看 / 停止 J-Link GDB Server 后台进程 |
资源:
e2studio://tools— 工具发现结果(JSON)e2studio://workspace— 工作区目录与工程列表
Related MCP server: EmbedForge
安装 / 注册
依赖:Python 3.10+,mcp>=1.0.0(实测 1.28.1)
pip install "mcp>=1.0.0"Claude Code — .mcp.json
{
"mcpServers": {
"e2studio": {
"command": "C:\\Users\\<you>\\AppData\\Local\\Programs\\Python\\Python312\\python.exe",
"args": ["D:\\path\\to\\mcp-e2studio-server\\server.py"]
}
}
}opencode — opencode.json
{
"mcp": {
"e2studio": {
"type": "local",
"command": ["python", "D:\\path\\to\\mcp-e2studio-server\\server.py"],
"enabled": true
}
}
}建议
command使用 Python 绝对路径(避免 PATH 里混入其他版本)。
配置 config.json
将 config.example.json 复制为 config.json 并修改路径(config.json 已被
.gitignore 忽略,不会提交到仓库):
键 | 说明 | 默认 |
| e2studio 安装目录(含 |
|
| e2studio 自带 GCC 工具链根目录 | 同上目录下的 |
| Renesas Flash Programmer 根目录 |
|
| 工作区目录(资源 |
|
| J-Link GDB Server 端口 |
|
| 默认 MCU(找不到时兜底) |
|
| 额外扫描 arm-none-eabi-gcc 的根目录列表 | 见 config.json |
| SEGGER J-Link 安装根目录列表 |
|
| GCC 版本优先级(前缀匹配) |
|
环境变量(优先于 config.json)
E2STUDIO_CLI_PATH、ARM_GCC_PATH、ARM_GDB_PATH、ARM_OBJCOPY_PATH、
GNU_MAKE_PATH、JLINK_GDB_PATH、JLINK_PATH、RFP_CLI_PATH、
E2STUDIO_WORKSPACE、RFP_DEVICE、RFP_TOOL_TYPE。
前提条件
e2studio + FSP:构建/烧录必需。
Renesas Flash Programmer:
flash_firmware必需。SEGGER J-Link 软件:
debug_*与flash_jlink必需(discover_tools会 报告jlink_gdb/jlinkMISSING)。
测试
# 单元测试(纯函数,无需硬件/工具链)
python -m unittest test_server -v
# 协议自测(启动 server 做 initialize / tools/list / tools/call / resources/read)
python "C:\Users\32725\AppData\Local\Temp\opencode\mcp_e2studio_handshake_test.py"备注
日志写入 stderr(stdout 是 MCP 传输通道,不得污染)。
构建/烧录/调试通过全局互斥锁串行化,避免并发冲突。
J-Link GDB Server 作为后台进程常驻主事件循环,调试结束后用
debug_stop释放。Windows 控制台中文乱码仅为 GBK 显示问题,协议传输为 UTF-8。
This server cannot be deployed
Maintenance
Related MCP Connectors
Project management shared by people and AI agents, with persistent project state through MCP.
151- MaShop MCPOAuthapp.mashop
Build, deploy and manage MaShop e-commerce projects from Claude, Cursor or any MCP client.
List, read, edit, and deploy your GenMB AI-generated apps from any MCP client.
Build and update complete applications in Apper through AI assistants using MCP.
Related MCP Servers
- AlicenseAqualityCmaintenanceStateful MCP server for driving debug probes (J-Link) to flash, debug, and inspect embedded targets. Enables AI agents to perform flash, memory, breakpoint, and ELF/SVD-aware operations conversationally.4121 PyPI10MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI-driven embedded development: generate, build, flash, and debug firmware using natural language commands through MCP.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to drive the E-language IDE locally through MCP tools, allowing them to read, search, edit, and compile .e/.ec source files with workspace mirroring and instance routing.MIT

cspy-debuggerofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to connect to and control the IAR C-SPY debugger through MCP tools, supporting session lifecycle, run control, breakpoints, memory inspection, stack and locals viewing, disassembly, symbol lookup, and terminal I/O capture.2MIT