/mpy-workbench:micropython-boardfrom MPY Workbench – MicroPython
Runs, uploads, and debugs MicroPython code on USB-connected boards (ESP32, Pico, etc.). Syncs project files, runs scripts, reads live output, and handles tracebacks.
Ships in MPY Workbench – MicroPython. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The board MCP tools of this plugin talk to the board over USB. Work on the files in the
project as usual; the board mirrors the project: lib/util.py here is /lib/util.py on the board.
main.py).run_file with its path: it uploads every project file that changed (the file and the modules it
imports; nothing on the board is deleted), runs the file and returns the output and the traceback.
Tracebacks name the project file and line, so fix that line and run again..py files are syntax-checked on this computer first: with a syntax error nothing is
uploaded or run, and the error names the file and line. Fix it and run again.read_output to see what they printed since and stop before doing something else.run_file returns when the program ends or at its timeout. A program left running keeps writing
what it prints, live, to .mpy-workbench/output.log in the project; the result of run_file
gives the exact command to watch it. When the user wants to see the output as it happens (a sensor
simulation, a long test), give them that command, tail -f .mpy-workbench/output.log, to run in a
terminal (or open it in one if you can), and keep using read_output yourself.
Never run mpremote, screen or a serial monitor on the port yourself to show output: only one
program can hold the port, so it fights with these tools and ends the live log.
.mpy-workbench/ or .mpyignore present) every file you write or
edit is uploaded right away by a hook; its note tells you if an upload failed.diff shows what differs between the project and the board (with a path: a line diff).sync uploads everything that differs. Use dry_run first; only use delete after the user
agrees, since it removes files that are only on the board.board_info first when you don't know the board: chip, MicroPython version, free memory.run_code is for quick checks, like the REPL: import machine; print(machine.freq()),
scanning I2C (machine.I2C(0).scan()), reading a pin.soft_reset clears what was imported.port (see list_ports).main.py or boot.py unless that is the task: they run at every power-up.The same actions work from the shell:
python3 "${CLAUDE_PLUGIN_ROOT}/bin/mpywb" run main.py --timeout 10
python3 "${CLAUDE_PLUGIN_ROOT}/bin/mpywb" follow # a running program's output, live
python3 "${CLAUDE_PLUGIN_ROOT}/bin/mpywb" --help
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub danielbustillos/mpy-workbench --plugin mpy-workbenchOther plugins' skills for the same job