mcp-e2studio-server
Click on "Install 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 里混入其他版本)。 本机已知:PATH 中的python为 3.12.10;C:\...\Python314环境损坏不可用。
配置 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.418MIT
- Alicense-qualityBmaintenanceEnables AI-driven embedded development: generate, build, flash, and debug firmware using natural language commands through MCP.MIT
- Flicense-qualityCmaintenanceEnables AI agents to read and modify Mendix application models through MCP tools for creating modules, entities, pages, microflows, deploying, and querying runtime data.1
- FlicenseAqualityCmaintenanceEnables AI assistants to flash firmware, program memory, modify option bytes, erase chips, reset boards, and capture SWO printf traces for STM32 microcontrollers via STM32CubeCLT.12
Related MCP Connectors
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Project management MCP for AI agents with safe task reads and writes.
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Helistana/mcp-e2studio-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server