DUTchMate
by leonahi
README.md
<p align="center">
<img
src="assets/branding/dutchmate_rectangle_logo_web.svg"
alt="DUTchMate"
width="600"
/>
</p>
<p align="center">
Connect your coding agent to your embedded device.
</p>
# 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.
```bash
uv tool install dutchmate
```
```bash
pipx install dutchmate
```
Install the [`dutchmate` package](https://pypi.org/project/dutchmate/) 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](https://github.com/leonahi/DUTchMate/releases/latest).
To run from a checkout, see the [developer setup](docs/developer_guide.md#local-setup).
## 2. Connect your device
| Connection | Available 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](docs/developer_guide.md#local-setup) for configuration. Replace
`YOUR_UART_PORT` with your adapter's actual serial port:
```bash
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](hardware/firmware/rp2350_debug_helper/README.md#revision-a-mapping)
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](docs/mcp_setup.md) · [Native install prompts for VS Code and Cursor](docs/mcp_setup.md#open-a-native-install-prompt)
Clients that support Agent Plugins can load the optional bundle with MCP
registration and two workflow skills. [DUTchMate agent plugin](docs/agent_plugin.md)
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:
```bash
dutchmate stop
```
## Further information
- [Configuration and CLI workflows](docs/developer_guide.md) — also run `dutchmate --help`.
- [Debug Helper wiring and firmware](hardware/firmware/rp2350_debug_helper/README.md).
- [Milestone overview and validation boundaries](docs/development_status.md).
- [Contributing](CONTRIBUTING.md) and the [documentation index](docs/README.md).
## Licensing
Software, firmware and documentation use the [MIT License](LICENSE), unless
otherwise noted. DUTchMate-authored hardware design files under `hardware/pcb/`
use [CERN-OHL-P-2.0](LICENSES/CERN-OHL-P-2.0.txt). Legacy EAGLE and third-party
assets retain their existing terms; see [LICENSE.md](LICENSE.md) and
[third-party notices](THIRD_PARTY_NOTICES.md).
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](CONTRIBUTING.md).
This server cannot be deployed
Maintenance
ActivityNo data
ResponsivenessOutdated data