Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/adancurusul/embedded-debugger-mcp/embedded-debuggernpx skills add Adancurusul/embedded-debugger-mcp --skill embedded-debuggergit clone --depth 1 https://github.com/Adancurusul/embedded-debugger-mcpWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00075 | $0.01415 |
| Opus 5 | $0.00037 | $0.00707 |
| Sonnet 5 | $0.00015 | $0.00283 |
| Haiku 4.5 | $0.00007 | $0.00142 |
Grade A, and why
embedded-debugger scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Embedded Debugger
Use the local embedded-debugger-mcp binary as the source of truth. Prefer CLI
checks first, then MCP tools when an MCP client is available.
Entry Decision
- If the user has an MCP client configured, start or verify the server:
embedded-debugger-mcp serve - If the user wants no MCP install, use CLI-first mode:
embedded-debugger-mcp doctor,embedded-debugger-mcp probes list, andembedded-debugger-mcp skill print-prompt. - If hardware access is required, confirm the probe and target are connected before destructive actions such as flash erase or program.
CLI Workflow
Run these in order and report the exact outcome:
embedded-debugger-mcp doctor
embedded-debugger-mcp probes list
embedded-debugger-mcp config show
Use JSON for automation:
embedded-debugger-mcp doctor --json
embedded-debugger-mcp probes list --json
Backends
One tool set runs over two interchangeable engines, chosen at connect:
backend: "probe-rs"(default) — native probe-rs; supports flash and RTT.backend: "openocd"(experimental) — talks to an already-runningopenocdover its GDB port viaopenocd_address(default127.0.0.1:3333). Use for chips probe-rs does not cover well (e.g. Xtensa ESP32 via openocd-esp32). Memory access and halt/run/step/reset are validated on real ESP32-S3; flash and RTT are not available on this backend. Register reads currently use ARM gdb register numbers, so PC/SP are wrong on Xtensa (known limitation).diagnose_faultandunwind_exceptionare Cortex-M specific and do not apply to Xtensa targets.- Start openocd with
gdb_memory_map disable, otherwise it probes flash on the GDB connect, fails, and REJECTS the connection. Example:openocd -f board/esp32s3-builtin.cfg -c "gdb_memory_map disable".
- Start openocd with
The AI uses the same tools regardless of backend; only connect differs.
MCP Workflow
Use MCP tools for session-based operations:
list_probesconnect(addbackend: "openocd"andopenocd_addressto use OpenOCD)- Read-only checks such as
probe_info,get_status, andread_memory - On a crash or halt, call
diagnose_fault: it reads the Cortex-M SCB fault registers (CFSR/HFSR/MMFAR/BFAR/SHCSR/CPUID) plus PC/SP/LR and returns a compact structured evidence bundle in one call. Halt the target first for meaningful values; reason over the set fault bits yourself. Then callunwind_exceptionwithelf_pathto map the crash to a source line (full DWARF backtrace on probe-rs; faulting PC/LR on OpenOCD). - Mutating operations only after the user confirms target, file path, and risk:
write_memory,flash_erase,flash_program,run_firmware(probe-rs) - RTT operations after firmware is running:
rtt_attach,rtt_channels,rtt_read,rtt_write,rtt_detach(probe-rs) disconnect
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 127 lines · 75 tokens per session scan A 1cce4fb05f8a
embedded-debugger is a skill published in the GitHub repository Adancurusul/embedded-debugger-mcp (171 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 1,415 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
serial-debug
CLI-first serial port debugging and macro automation with serial-mcp-server for Codex and Claude Code. Use when working with UART or USB-serial devices, listing serial ports, probing STM32/Arduino/ESP32 boards, writing or reading serial data, running JSON serial macros, controlling RTS/DTR, or using serial-mcp-server…
cortex-m-patterns
Real ARM Cortex-M patterns used in production firmware. All code targets C11 with arm-none-eabi-gcc unless noted.
bare-metal-patterns
Production bare-metal C patterns for ARM Cortex-M. All code uses arm-none-eabi-gcc, C11.
bootloader-patterns
Production bootloader patterns for STM32, nRF52, and SAM MCUs.
comm-bus-patterns
Production communication bus patterns for embedded C. STM32 HAL and LL examples.
debug-trace-patterns
Practical debug patterns for ARM Cortex-M firmware. Tools: OpenOCD, GDB, J-Link, logic analyzer.