
一款强大的J-Link调试器模型上下文协议(MCP)服务器,提供包括内存操作、闪存编程和实时数据传输在内的全面调试功能......
概览
JLink MCP 服务器是一款综合调试工具,通过模型上下文协议将 J-Link 调试器功能与 AI 助手集成。它提供无缝访问硬件调试功能,包括内存操作、闪存编程、寄存器访问和实时数据传输。 - : 3.8 或更高 - :Segger 提供的最新版本 - :任何支持的 J-Link 调试器 - :Windows、Linux 或 macOS 创建 .env 文件或设置环境变量: 添加到你的MCP配置文件(通常是~/.config/mcp/settings.json或C:\Users\ .iflow\settings.json): 服务器采用模块化、基于插件的架构: 该服务器支持灵活的插件架构,以实现设备特定功能: 服务器涵盖9个类别: : 1. 检查J-Link是否通过USB 2正确连接。确认J-Link软件已安装 3.尝试运行JLinkExe以验证设备检测 4.检查接口类型(SWD与JTAG的区别) 5.确认目标设备供电
概述(AI 翻译)
一个强大的模型上下文协议(MCP)服务器用于J-Link调试器
J-Link调试器的强大模型上下文协议(MCP)服务器
英文 |中文文档
英文文献
🚀 概述
JLink MCP 服务器是一款综合调试工具,通过模型上下文协议将 J-Link 调试器功能与 AI 助手集成。它提供无缝访问硬件调试功能,包括内存操作、闪存编程、寄存器访问和实时数据传输。
✨ 主要特色
| 特色 | 描述 |
|---|---|
| 🔌 设备连接 | 通过支持自动检测的SWD/JTAG连接(chip_name=None 或 "auto") |
| 🔍 智能芯片匹配 | 智能芯片名称匹配(例如,FC7300F4MDD →FC7300F4MDDxXxxxT1C) |
| 💾 内存操作 | 可配置访问宽度的读写内存(8/16/32位) |
| 🔥 闪存编程 | 编程、擦除和验证闪存 |
| 🎯 调试控制 | 停止,运行,单步执行带断点 |
| 📊 寄存器访问 | 带SVD字段解析的CPU读写寄存器 |
| 📡 RTT 支持通过 Segger RTT 实现实时数据传输 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
English Documentation
🚀 Overview
JLink MCP Server is a comprehensive debugging tool that integrates J-Link debugger capabilities with AI assistants through the Model Context Protocol. It provides seamless access to hardware debugging features including memory operations, flash programming, register access, and real-time data transfer.
✨ Key Features
| Feature | Description |
|---|---|
| 🔌 Device Connection | Connect via SWD/JTAG with auto-detect support (chip_name=None or "auto") |
| 🔍 Smart Chip Matching | Intelligent chip name matching (e.g., FC7300F4MDD → FC7300F4MDDxXxxxT1C) |
| 💾 Memory Operations | Read/write memory with configurable access widths (8/16/32-bit) |
| 🔥 Flash Programming | Program, erase, and verify flash memory |
| 🎯 Debug Control | Halt, run, single-step execution with breakpoints |
| 📊 Register Access | Read/write CPU registers with SVD field parsing |
| 📡 RTT Support | Real-time data transfer via Segger RTT |
| 🔧 SVD Integration | Access peripheral registers via SVD files with pickle cache |
| 🧩 Plugin Architecture | Extensible device-specific patch system |
| 🌐 GDB Server | Integrated GDB server support |
| 📚 Usage Guidance | Built-in help tools for best practices and scenarios |
📋 Prerequisites
- Python: 3.8 or higher
- J-Link Software: Latest version from Segger
- J-Link Hardware: Any supported J-Link debugger
- Operating System: Windows, Linux, or macOS
🛠️ Installation
Method 1: Install from PyPI
pip install jlink-mcp
Method 2: Install from Source
# Clone the repository
git clone https://github.com/cyj0920/jlink_mcp.git
cd jlink_mcp
# Install in development mode
pip install -e .
Method 3: Install with UV (Recommended for better performance)
# Install UV
pip install uv
# Install with UV
uv pip install jlink-mcp
⚙️ Configuration
Environment Variables
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"jlink": {
"command": "python",
"args": ["-m", "jlink_mcp"],
"env": {
"JLINK_SVD_DIR": "C:\\path\\to\\svd\\files",
"JLINK_PATCH_DIR": "C:\\path\\to\\patches",
"JLINK_DEFAULT_INTERFACE": "JTAG"
}
}
}
}