How yangpan2020/debugforge works
DebugForge is an MCP server that lets AI agents operate local or remote Lauterbach TRACE32 sessions. The principal workflow is agent tool calls → connection and target inspection/control → debugging evidence returned to the agent; build and ELF analysis, reusable debugging skills, multicore controls, trace, and hardware triggers are additional capabilities. Groups reflect the MCP interface, session/configuration layer, debugging tools, and project/hardware integrations. Tool registration and core runtime calls are shown in excerpts; broader capability links rely on README documentation where noted.
Main entry points: server.py MCP Server · state.py Connection State · views.py Debug Views · execution.py Execution Control
Components 27
MCP Interface
- MCP Server
src/debugforge/server.py
Session Runtime
- Project Config
src/debugforge/config.py - Connection State
src/debugforge/state.py - Connection Tools
src/debugforge/tools/connection.py
Debug Operations
- Execution Control
src/debugforge/tools/execution.py - Breakpoints
src/debugforge/tools/breakpoints.py - Advanced Breakpoints
src/debugforge/tools/breakpoints_advanced.py - Advanced Inspection
src/debugforge/tools/debug_advanced.py - Memory Inspection
src/debugforge/tools/memory.py - Register Inspection
src/debugforge/tools/registers.py - Variable Inspection
src/debugforge/tools/variables.py - Symbols
src/debugforge/tools/symbols.py - Debug Views
src/debugforge/tools/views.py - TRACE32 Commands
src/debugforge/tools/commands.py - Notifications
src/debugforge/tools/notifications.py - Benchmark Tools
src/debugforge/tools/benchmark.py
Project Analysis
- Build and ELF
src/debugforge/tools/build.py - Debug Workflow
src/debugforge/tools/workflow.py - Debug Skills
src/debugforge/tools/skills.py
Hardware Features
- TRACE32
- Target MCU
- On-chip Trace
src/debugforge/tools/trace.py - Multicore Debug
src/debugforge/tools/multicore.py - WatchPin Triggers
src/debugforge/tools/watchpin.py - System Configuration
src/debugforge/tools/system_config.py
Other components
- AI Agent
- Remote Windows
Connections 39
- AI Agent → MCP Server: sends tool calls
README.md - MCP Server → Execution Control: registers tools
src/debugforge/server.py - MCP Server → Connection Tools: registers tools
src/debugforge/server.py - MCP Server → Memory Inspection: registers tools
src/debugforge/server.py - MCP Server → Register Inspection: registers tools
src/debugforge/server.py - MCP Server → Breakpoints: registers tools
src/debugforge/server.py - MCP Server → Variable Inspection: registers tools
src/debugforge/server.py - MCP Server → Symbols: registers tools
src/debugforge/server.py - MCP Server → TRACE32 Commands: registers tools
src/debugforge/server.py - MCP Server → Debug Views: registers tools
src/debugforge/server.py - MCP Server → Advanced Breakpoints: registers tools
src/debugforge/server.py - MCP Server → Advanced Inspection: registers tools
src/debugforge/server.py - MCP Server → Build and ELF: registers tools
src/debugforge/server.py - MCP Server → Debug Workflow: registers tools
src/debugforge/server.py - MCP Server → Debug Skills: registers tools
src/debugforge/server.py - MCP Server → On-chip Trace: registers tools
src/debugforge/server.py - MCP Server → Multicore Debug: registers tools
src/debugforge/server.py - MCP Server → System Configuration: registers tools
src/debugforge/server.py - MCP Server → WatchPin Triggers: registers tools
src/debugforge/server.py - MCP Server → Notifications: registers tools
src/debugforge/server.py - MCP Server → Benchmark Tools: registers tools
src/debugforge/server.py - Connection State → Project Config: loads settings
src/debugforge/state.py - MCP Server → Connection State: manages lifecycle
src/debugforge/server.py - Connection Tools → Connection State: connects session
src/debugforge/tools/connection.py - Execution Control → Connection State: requires session
src/debugforge/tools/execution.py - Advanced Inspection → Connection State: requires session
src/debugforge/tools/debug_advanced.py - On-chip Trace → Connection State: requires session
src/debugforge/tools/trace.py - Multicore Debug → Connection State: requires session
src/debugforge/tools/multicore.py - WatchPin Triggers → Connection State: requires session
src/debugforge/tools/watchpin.py - Advanced Inspection → Debug Views: reads windows
src/debugforge/tools/debug_advanced.py - Execution Control → Debug Views: reads windows
src/debugforge/tools/execution.py - Multicore Debug → Debug Views: reads windows
src/debugforge/tools/multicore.py - WatchPin Triggers → Debug Views: reads windows
src/debugforge/tools/watchpin.py - System Configuration → Debug Views: reads windows
src/debugforge/tools/system_config.py - TRACE32 → Target MCU: controls hardware
README.md - MCP Server → TRACE32: bridges via PYRCL
README.md - MCP Server → Remote Windows: supports remote mode
README.md - Remote Windows → TRACE32: runs debugger
README.md - Remote Windows → MCP Server: transfers files
README.md