Repository avatar
Other Tools
v0.2.1
active

dutchmate

io.github.leonahi/dutchmate

Debug embedded devices over local stdio MCP. Requires a separately started DUTchMate Device Core.

Documentation

DUTchMate

Connect your coding agent to your embedded device.

DUTchMate

DUTchMate gives your coding agent access to UART logs, firmware commands, and configured reset and boot controls through MCP. Your agent can investigate device behavior alongside your source code, using recorded evidence.

Use your coding agent's existing model. The separate DUTchMate Debug Agent package is not required.

1. Install DUTchMate

Requires Python 3.10+ on Linux or macOS. Choose one tool installer.

uv tool install dutchmate
pipx install dutchmate

Install the dutchmate package to get the CLI, service, and MCP launcher together. If your shell cannot find dutchmate, run uv tool update-shell or pipx ensurepath for your installer, then reopen your terminal.

For a pinned installation or upgrade guidance, see the latest published release notes. To run from a checkout, see the developer setup.

2. Connect your device

ConnectionAvailable capabilities
TTL USB-to-UART adapter (Basic)UART logs and optional firmware commands
RP2350 Pico 2 Debug Helper (Enhanced)UART plus configured reset, boot and GPIO control

Connect your adapter and configure the matching baud rate and wiring. See the setup guide for configuration. Replace YOUR_UART_PORT with your adapter's actual serial port:

dutchmate start --backend basic --serial-port YOUR_UART_PORT
dutchmate status

For the Debug Helper, use dutchmate start --backend enhanced instead. Follow the wiring guide to connect its DUT_VIO reference to the DUT's logic supply.

3. Connect your coding agent

Register the local stdio MCP server using your client's settings. The agent launches the adapter and Device Core from step 2 handles device access. MCP setup and troubleshooting · Native install prompts for VS Code and Cursor

Clients that support Agent Plugins can load the optional bundle with MCP registration and two workflow skills. DUTchMate agent plugin

Once the tools appear, ask your agent to call get_status and report the connection state.

4. Start debugging

Try these prompts in your coding agent:

Check the device connection and summarize the latest UART logs.

Observe UART for 15 seconds and identify errors or unexpected behavior.

Investigate this boot failure using the UART evidence and this repository. Propose a fix, and ask before resetting the board or sending commands.

DUTchMate records UART continuously while the service owns the connection, so your agent can retrieve evidence between requests. Sending commands requires UART TX to be enabled; reset and boot actions require configured control mappings.

When finished:

dutchmate stop

Further information

Licensing

Software, firmware and documentation use the MIT License, unless otherwise noted. DUTchMate-authored hardware design files under hardware/pcb/ use CERN-OHL-P-2.0. Legacy EAGLE and third-party assets retain their existing terms; see LICENSE.md and third-party notices.

The DUTchMate name, logo and branding are excluded from these grants; they do not authorize presenting derivative products as official DUTchMate products. Contributions require DCO 1.1 sign-off; see CONTRIBUTING.md.

PYPI
dutchmate
Install Command
pip install dutchmate
Runtime: uvx