J-Link RTT Viewer MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| connectA | 连接到 J-Link 调试器和目标 MCU Args: target: 目标设备型号 (如 STM32F103C8, STM32F407VG, nRF52840) interface: 调试接口 (SWD 或 JTAG),默认 SWD speed: 连接速度 (kHz),默认 4000 channel: RTT 通道号,默认 0 retry_attempts: 重试次数,默认 3 Returns: 连接状态和设备信息的 JSON 字符串 |
| disconnectA | 断开 J-Link 连接 安全地断开与 J-Link 调试器的连接,清理所有资源。 Returns: 断开状态的 JSON 字符串 |
| get_device_infoA | 获取当前连接设备的信息 返回 J-Link 调试器和目标 MCU 的详细信息。 Returns: 设备信息的 JSON 字符串 |
| read_rttB | 读取 RTT 日志数据 从目标 MCU 读取 RTT (Real-Time Transfer) 日志数据。 默认读取所有通道 (0-15),返回结构化的日志数据。 Args: channels: 要读取的通道列表,None 表示所有通道 (默认) max_size: 最大读取字节数,默认 4096 Returns: RTT 数据的 JSON 字符串,包含时间戳、通道、内容和元数据 |
| write_rttA | 向 RTT 通道写入数据 向目标 MCU 的 RTT 通道发送数据。 Args: data: 要写入的数据 channel: 通道号,None 使用默认通道 is_hex: 是否为十六进制数据,默认 False Returns: 写入结果的 JSON 字符串 |
| set_rtt_channelB | 设置默认 RTT 通道 设置后续 RTT 操作使用的默认通道。 Args: channel: 通道号 (0-15) Returns: 设置结果的 JSON 字符串 |
| resetA | 重置目标 MCU 重置连接的目标 MCU。支持多种重置模式。 Args: mode: 重置模式 - "normal": 标准重置,保留连接会话 (默认) - "auto_reconnect": 重置后自动断开重连 - "halt": 重置后暂停 CPU(停在复位状态) wait_time: 重置后等待时间(秒),默认 0.3 Returns: 重置结果的 JSON 字符串 |
| flash_firmwareA | 烧录固件到 MCU 将固件文件烧录到连接的目标 MCU。 Args: firmware_path: 固件文件路径 (.hex, .bin) Returns: 烧录结果的 JSON 字符串 |
| read_memoryA | 读取 MCU 内存 从目标 MCU 的指定地址读取内存数据。 Args: address: 起始地址 (如 0x08000000) size: 读取字节数 (1-1048576) Returns: 内存数据的 JSON 字符串(十六进制格式) |
| write_memoryB | 写入 MCU 内存 向目标 MCU 的指定地址写入数据。 Args: address: 起始地址 (如 0x08000000) data: 要写入的数据(十六进制字符串或普通字符串) is_hex: 是否为十六进制数据,默认 True Returns: 写入结果的 JSON 字符串 |
| start_log_recordingC | 开始日志记录 开始将 RTT 数据记录到文件。 Args: log_dir: 日志目录,默认 "logs" Returns: 记录状态的 JSON 字符串 |
| stop_log_recordingB | 停止日志记录 停止将 RTT 数据记录到文件。 Returns: 停止状态的 JSON 字符串 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| debugging_guide | 调试指南提示 提供 STM32 调试的最佳实践和常见问题解决方案。 |
| error_diagnosis | 错误诊断提示 根据错误信息提供诊断建议。 Args: error_message: 错误信息 |
| flash_wizard | 烧录向导提示 引导用户完成固件烧录流程。 |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| get_device_status | 获取设备状态信息 返回当前 J-Link 连接状态和设备信息。 Returns: 设备状态的 JSON 字符串 |
| get_rtt_logs | 获取 RTT 日志历史 返回最近的 RTT 日志数据。 Returns: RTT 日志的 JSON 字符串 |
| get_firmware_metadata | 获取固件元数据 返回当前连接设备的固件相关信息。 Returns: 固件元数据的 JSON 字符串 |
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/MisakaMikoto128/J-Link-RTT-Viewer-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server