OpenEDK
Documentation
Connect your agent, then let it compile, simulate, verify and debug firmware on the server.
Getting started
- Add the server:
claude mcp add --transport http openedk https://mcp.openedk.com/mcp(Codex:codex mcp add openedk https://mcp.openedk.com/mcp). - Sign in: in Claude Code run /mcp → openedk → Authenticate; in Codex,
codex mcp login openedk. A browser opens for Google. - Ask for what you want, for example: "Write an Arduino Uno sketch that blinks pin 13 at 2 Hz, then verify it."
- The agent compiles with
compile_firmware, runs and checks the build withsimulate_firmwareorverify_firmware, and hands you the.hexfromget_firmwareto flash.
Each build has a run_id; the same sources and flags give the same run_id.
MCP tools
| Tool | What it does |
|---|---|
compile_firmware | C, C++ or an Arduino sketch for any of the 8 boards; returns the ELF, a run_id and the flash and RAM it takes. |
simulate_firmware | Runs it on Renode (STM32) or simavr (AVR): UART, GPIO edges, I2C and SPI devices, ADC voltages; sensors and displays on AVR. |
verify_firmware | Compile → simulate → grade the behavior you describe, or assertions on pins, rates, UART text and bus traffic. |
decode_trace | Decodes UART, SPI or I2C from a run's pin trace with sigrok's protocol decoders. |
get_firmware | Downloads a build as Intel HEX or ELF by its run_id, to flash a real board. |
list_simulation_targets | The 8 boards, and which peripherals each one simulates. |
debug_* | debug_start, _break, _continue, _step, _eval, _registers, _stop: breakpoints, stepping and variables in the simulator. |
Simulation targets
| Target | Board | Simulator | Simulated | Not simulated |
|---|---|---|---|---|
stm32f103 | Blue Pill · STM32F103C8 | Renode | GPIO, USART, I2C, SPI, ADC | Timer, DMA, USB, CAN |
stm32f401 | Nucleo · STM32F401RE | Renode | GPIO, USART, I2C, SPI, ADC | Timer, DMA |
stm32f407 | Discovery · STM32F407VG | Renode | GPIO, USART, I2C, SPI, ADC | Timer, DMA, Ethernet, USB, CAN |
atmega328p | Arduino Uno · ATmega328P | simavr | GPIO, UART, Timer, PWM, I2C, SPI, ADC | — |
atmega2560 | Arduino Mega · ATmega2560 | simavr | GPIO, UART, Timer, PWM, I2C, SPI, ADC | — |
atmega328p_8mhz | Pro Mini 3.3 V · ATmega328P 8 MHz | simavr | GPIO, UART, Timer, PWM, I2C, SPI, ADC | — |
atmega32u4 | Leonardo / Micro · ATmega32U4 | simavr | GPIO, UART, Timer, PWM, I2C, SPI, ADC | USB |
attiny85 | ATtiny85 · 8 MHz internal | simavr | GPIO, Timer, PWM, ADC | USI |
- Languages: C, C++, or an Arduino sketch built with Arduino AVR, ATTinyCore or STM32duino.
- AVR runs on simavr at the part's own clock: counts and rates are measured in device time.
- STM32 runs on Renode in virtual time: counts are checked, rates are not, as the CPU runs at a fixed 100 MIPS whatever clock the firmware sets.
- Leonardo: Serial is USB, which is not simulated — print on Serial1. ATtiny85: no UART; decode its software Serial from the pin trace with decode_trace.
Plugin & CLI
$
claude plugin marketplace add jeremy0612/OpenEDK
$
claude plugin install openedk@openedk
The plugin runs two MCP servers: openedk, this hosted endpoint, and openedk-probe, which runs openedk probe serve on your machine for a board on its USB.
- Board tools:
probe_status,probe_flash,probe_debug_start,_break,_continue,_halt,_step,_read,_registers,_stop, and the logic analyzer:probe_analyzer,probe_capture,probe_decode. - Flash and debug: STM32F103, F401 and F407 over ST-Link, CMSIS-DAP or J-Link. The first call downloads xPack OpenOCD 0.12.0-7, checked against its SHA-256, into
~/.openedk/bridge. - Logic analyzer: an 8-channel FX2 analyzer (Saleae-style clones) through sigrok-cli; on Linux,
apt install sigrok-cli sigrok-firmware-fx2lafw. Channels take the names of the simulation's pins, so decode_trace's options decode the board too.
Status: openedk-probe needs the openedk CLI with the probe commands. install.sh still installs v0.1.0, which predates them, and the Windows sigrok-cli bundle is not published yet.