trace32-mcp
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., "@trace32-mcpshow me the current program counter value"
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.
TRACE32 MCP Server
An MCP server that wraps Lauterbach TRACE32's
public remote API (RCL) via the official lauterbach-trace32-rcl
(PyRCL) package. It lets an AI agent (e.g. GitHub Copilot agent mode) drive
TRACE32 PowerView for three MVP use cases:
Debugging — read/write memory, registers and variables; run control (go / break / step); breakpoints
Resource inspection — connection/run state, CPU, memory & register snapshots, PRACTICE function evaluation
Script execution & flash — run PRACTICE
.cmmscripts, including SW target flash
Prerequisites
Python 3.9+
TRACE32 PowerView already running with the remote API (RCL) enabled. Add this to your
config.t32(blank line before/after each block):RCL=NETTCP PORT=20000Sanity-check it works before wiring up MCP:
t32rem localhost PRINT VERSION.SOFTWARE()
Related MCP server: GDB MCP Server
Install
pip install -e .Configuration (environment variables)
Variable | Default | Description |
|
| PowerView host |
|
| RCL port |
|
|
|
|
| UDP packet length (ignored for TCP) |
|
| Connection/request timeout (s) |
|
| Enables |
|
| Enables |
Safety guards
All read and debug-control tools are always available. Destructive operations are OFF by default and must be explicitly enabled:
T32_ALLOW_WRITE=true→ memory/register writes, arbitrary command passthrough, script executionT32_ALLOW_FLASH=true→ flash programming (independent ofT32_ALLOW_WRITE)
When a guard is closed, the tool returns an error explaining which flag to set — it never silently touches the target.
Register with GitHub Copilot (VS Code)
Workspace file .vscode/mcp.json is included. Adjust the env
values (host/port, and the guard flags when you intend to write/flash), then start
the server from the MCP view or the MCP: List Servers command. You can also run it
standalone:
python -m trace32_mcpTools
Tool | Guard | Purpose |
| — | Connection, run state, CPU, software build |
| — | Read N bytes → hex |
| — | Read register(s) |
| — | Read an HLL variable/symbol |
| — | Evaluate a PRACTICE function expression |
| — | Run control |
| — | Breakpoints |
|
| Write memory/register |
|
| Arbitrary TRACE32 command |
|
| Run a PRACTICE |
|
| Program target flash via a flash |
Tests
pytestUnit tests mock PyRCL, so no running TRACE32 is required. For end-to-end checks, the TRACE32 Instruction Set Simulator can stand in for real hardware.
Roadmap (post-MVP)
Trace/CTS inspection, symbol/source browsing, multicore selection, call stack, peripheral register views, structured variable trees, multi-instance routing.
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.
Latest Blog Posts
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/coldclosewin-design/trace32-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server