Skip to main content
Glama
rodecaster-duo-mcp

rodecaster-duo-mcp

by scottdsauer
README.md
# rodecaster-duo-mcp

> **Unofficial — not affiliated with or endorsed by RØDE Microphones.**
> "RØDE" and "RØDECaster" are trademarks of their respective owner and are used
> here only to describe compatibility. This project talks to the console over a
> reverse-engineered USB protocol; use it at your own risk.

An open-source [Model Context Protocol](https://modelcontextprotocol.io) server
that lets an AI assistant read, and with your approval control, a RØDECaster
podcast console over USB. It is developed and tested on the **RØDECaster Duo**;
**RØDECaster Pro II** support is in progress (the package name will drop "duo"
before the first release). Today it reads the full console state; writes are
limited to channel mutes and processing toggles, all dry-run until each is
approved at the desk. Levels, routing, SMART pads and recorder control are
planned. It talks to the console's vendor HID interface locally, with no cloud
involved, and is built around hard safety guardrails (write allowlist,
dry-run, read-only mode, and a mode-byte encoder that can never put the device
into firmware-update mode).

**Status: pre-alpha.** The MCP server reads the console's state, and every
write is **dry-run by default**: it shows the exact frame it would send and
sends nothing. With dry-run off, the first real write of each property on each
console model and firmware needs its owner's approval (CLAUDE.md, rule 8). On
2026-11-28 the first approved writes were sent to a Duo on firmware 1.7.7 and
verified: Mic 1 mute/unmute and HPF off/on (issue #14). Those two properties
are now verified there; everything else still asks. See [PLAN.md](PLAN.md)
for the roadmap and [STATUS.md](STATUS.md) for progress.

**Why it exists and where it's going:** see [MISSION.md](MISSION.md).

## Setup

Requirements: macOS (Linux should work), [uv](https://docs.astral.sh/uv/), and
the console connected by its main USB-C port. **Quit the RØDECaster App first.** macOS
lets both programs open the console, but they cannot share it: while this
server is connected, the app's changes do not reach the console and the app
can hang at "Synchronizing device" (desk check H15). The server checks for the
app before it opens the console and before every write. If the app is running,
it releases the console and asks you to quit the app (#32).

```sh
git clone https://github.com/scottdsauer/rodecaster-mcp ~/Projects/rodecaster-mcp
cd ~/Projects/rodecaster-mcp && uv sync
```

**Claude Code:**

```sh
claude mcp add rodecaster-duo -- uv run --directory ~/Projects/rodecaster-mcp rodecaster-duo-mcp
```

Add `-e RCD_READ_ONLY=1` (before `--`) for a server that cannot write at all.

**Claude Desktop** (`~/Library/Application Support/Claude/claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "rodecaster-duo": {
      "command": "uv",
      "args": ["run", "--directory", "/Users/YOU/Projects/rodecaster-mcp", "rodecaster-duo-mcp"],
      "env": { "RCD_DRY_RUN": "1" }
    }
  }
}
```

**MCP Inspector:** `npx @modelcontextprotocol/inspector uv run rodecaster-duo-mcp`

The server opens the console lazily, on the first tool or resource call that
needs it, and keeps that one connection until it exits or you call
`release_device` (do that before opening the RØDECaster App; the next call
reconnects). Starting it with no console attached is fine: `get_status`
reports why it is not connected, and the next call retries.

| Flag | Default | Effect |
|---|---|---|
| `RCD_DRY_RUN` | `1` | Encode and report writes; send nothing |
| `RCD_READ_ONLY` | `0` | `1` registers no mutating tools at all |
| `RCD_WRITE_TIER` | `1` | Highest allowlist tier the write gate accepts (1-3). Tier 1 = strip mute, HPF on/off |

An empty value (`RCD_DRY_RUN=`) counts as unset, so it keeps the default:
dry-run stays on, read-only stays off.

## Reference

### Names you can trust, and names you can't

Channels are named **`Channel 1` … `Channel N` by strip position** in the
console's own state tree. That is a fact read from the device. Which input a
strip carries (Mic 1, USB, Bluetooth) and what each mix bus feeds (Headphone 1,
USB 1) are **prior-art labels that are not yet hardware-verified**, so they are
only returned as `source_hint` / `bus_hint` next to `mapping_verified: false`,
and tools do not accept them as channel names.

### Tools

| Tool | Kind | What it does |
|---|---|---|
| `server_info` | read | Version and safety flags |
| `get_status` | read | Connection, model, firmware (and whether it is a tested version), tree freshness, layout, raw recorder state |
| `list_channels` | read | Every strip: muted, cue, input source (+ unverified hint), processing toggles, master flag |
| `get_routing` | read | The mix matrix: per source, muted / disabled / linked in each bus (13 per source on the Duo and Pro II, read from the device). Optional `channel` or `source` filter |
| `list_properties` | read | Raw: one node's properties (secrets redacted) with allowlist / denylist status, and its child runs. `path: []` is the root |
| `get_property` | read | Raw: one property at a path (redacted) |
| `resync` | read | Ask for a fresh full sync (session-open only). Clears a stale tree |
| `release_device` | connection | Close the connection so the RØDECaster App / RØDE Central (or another Claude session) can use the console. Changes no console state |
| `mute_channel` / `unmute_channel` | write | Mute or unmute a strip by name. Verification expects the source row's mix-cell side effects |
| `set_processing` | write | Turn `hpf`, `noise_gate`, `compressor`, `deesser`, `aphex`, `eq` or `bypass_processing` on or off. HPF is tier 1; the rest need `RCD_WRITE_TIER=2` |
| `set_property` | write | Raw: write one allowlisted property at a path. Mutes are refused here (use `mute_channel`) |

Every write returns `dry_run`, `sent`, `noop`, `before` / `after` (in
`muted` / `enabled` terms for task tools), `frame_hex` (the encoded change),
the declared side effects, and whether the property is hardware-verified.

Writes go through one path: the write gate (path must exist in the device's
tree, property must already exist on the node, allowlisted at the enabled tier,
never denylisted, never a fader, correct type and range), then dry-run, then
the hardware-verified approval check, then send, then resync-and-diff
verification. Refusals carry a code: `unknown_channel`, `unknown_path`,
`not_on_node`, `not_allowlisted`, `denylisted`, `fader`, `tier`,
`type_mismatch`, `invalid_value`, `stale_tree`, `not_hardware_verified`,
`use_task_tool`, and `stale_generation` (the tree kept changing while a write
was being resolved; it is retried twice before this is returned). Nothing is sent
in any of these cases.

If something goes wrong **after** the frame is sent, the error says so: `write
SENT but not verified`, with `verification_failed` (the resync diff didn't match)
or `verify_unavailable` (the verification resync itself failed). The console has
probably changed, so check its state before retrying (#47).

### Resources

| URI | Content |
|---|---|
| `rodecaster://state` | The full state tree as JSON, with secrets redacted |
| `rodecaster://channels/{name}` | One strip as JSON. Readable as `channel-1` or `1`; subscribe to the canonical `channel-N` form |
| `rodecaster://protocol` | The discovered layout (strip / mix bases, counts, every root run), source and bus hints, and the allowlist |

All three publish `notifications/resources/updated` over `subscriptions/listen`
(MCP 2026-07-28) when the console reports a change, once the device is open.
Clients on older protocol versions are not offered `resources/subscribe`
(the capability is advertised as false for them); they can re-read instead.
Redaction covers Wi-Fi SSIDs and passwords, IP addressing, serial numbers,
Bluetooth addresses, usernames, account codes, show UUIDs and SIP details.

### Prompts

- `podcast-preflight` (`guests`, optional): checks connection, mutes, routing and
  recorder state, and proposes (but does not make) changes.
- `troubleshoot-audio` (`symptom`): walks the read tools to find why audio is
  missing.

### Not yet

`set_routing`, `set_channel_level`, `list_pads` / `trigger_pad` and `recorder`
are deferred until the console mappings they depend on are verified on
hardware; [STATUS.md](STATUS.md) says why for each.

## Development

```sh
uv sync
uv run pytest
uv run ruff check && uv run ruff format --check
uv run mypy src
```

Tests never touch hardware: they run the server through the MCP SDK's
in-memory client against a simulated console built from the sanitized
fixtures in `fixtures/`.

## Credits / prior art

**The protocol was reverse-engineered by others, not by this project.** This
server is a fresh Python implementation built on their published work, all
under the MIT License. Several modules port the behaviour of these projects,
and one test fixture is their data. See
[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for exactly what came from
where, with each project's copyright notice.

- [Yeradon/rodecaster-protocol](https://github.com/Yeradon/rodecaster-protocol):
  the reference JUCE `ValueTreeSynchroniser` codec and USB framing for the Pro II
  and Duo. Our codec, framing and layout discovery are ports of its behaviour,
  and its Duo capture is one of our test fixtures.
- [seanheiney/rodey](https://github.com/seanheiney/rodey): Python library, CLI
  and **the original RØDECaster MCP server** (Pro II), with the best protocol
  write-up.
- [gcdkgrnvle/companion-module-rode-rodecaster2](https://github.com/gcdkgrnvle/companion-module-rode-rodecaster2):
  Bitfocus Companion module (Pro II and Duo) with runtime layout discovery.
- [x1h0/rcp2-cli](https://github.com/x1h0/rcp2-cli): Rust CLI/TUI; product-ID
  tables for both consoles.
- [RitzOli/companion-module-rode-rodecaster-pro2](https://github.com/RitzOli/companion-module-rode-rodecaster-pro2):
  Companion module (Pro II); interface-selection and firmware-version details.
- [ernestoacostame/CasterManager](https://github.com/ernestoacostame/CasterManager):
  Linux desktop manager built on rcp2-cli.

## How this differs from other RØDECaster projects

Short version: **the protocol work is other people's; the Duo hardware
verification, the safety design and the approval flow are ours.** If you only
need to control a console from a script today, the projects above already do
that. This one is for letting an AI assistant do it safely.

### What is not ours

- **The protocol.** Several projects decoded it before us (above). Our codec,
  USB framing and layout discovery port the behaviour of Yeradon's Rust
  library; they were written independently in Python, but the knowledge is
  Yeradon's.
- **The Duo 1.7.4 test fixture** is Yeradon's capture, unmodified.
- **The first RØDECaster MCP server** is [rodey](https://github.com/seanheiney/rodey).
  It exposes raw get/set/list/watch tools, and its writes read the value back.

### What we added

| | rodey (MCP, Pro II) | This server |
|---|---|---|
| **Consoles verified on hardware** | Pro II fw 1.7.3 | **Duo fw 1.7.7** (desk checks H1–H20, [docs/DUO-PROTOCOL.md](docs/DUO-PROTOCOL.md)); Pro II in progress |
| **Firmware-mode report (report 1)** | Sends `N` (`0x4E`) as part of its handshake and refuses every other report-1 byte | **Never sent at all.** On the Duo, session-open alone gives a full sync (H1), so an outbound guard refuses every report-1 write, `0x4E` included |
| **Bool encoding** | `02`/`03` swapped, which is why its mute looks "inverted" | JUCE-correct (`02` = true); polarity confirmed on hardware (H3) |
| **What the AI can write** | Any object ID and property; its encoder refuses destructive ones (reset, SD erase, flash, show delete) | Only an **allowlist** of paths that exist in the console's own state dump, plus a permanent **denylist** (those, plus firmware-download/update triggers and `systemChannelSelected`) and write tiers (tier 1 by default) |
| **Dry-run** | None found in its MCP server | **On by default**: returns the exact frame and sends nothing |
| **Checking a write** | Reads the one property before and after (a fresh dump each time) | **Full resync and diff of the whole tree:** success only if *only* the target and its declared side effects changed (for a mute, exactly its linked mix cells, #33). An unexpected change anywhere else fails the write |
| **First writes** | Not gated | Per **model and firmware**: a property verified on Duo 1.7.7 is not trusted on 1.7.4 or a Pro II. Each first write needs the console owner's approval |
| **How the owner approves** | n/a | **In the chat client, through MCP elicitation** (#38): a form shows the target, the old and new value, why it needs approval and the exact bytes, plus a fresh 4-digit code to type back. The approval is single-use, bound to that exact write and expires in 2 minutes. It works with the MCP 2026-07-28 protocol, where a server can't ask mid-call; we found that out in Claude Code. And because Claude Code's form doesn't show the message, the code goes in the field itself (#41) |
| **Connection** | Opens the console per tool call, so each read re-dumps the whole state (its README: about 1 s per read) | **One long-lived session** with a reader that never stops (the console's controls freeze if nothing drains its notifications), reconnect once after a USB error on reads, never on writes (#39) |
| **Sharing with the RØDECaster App** | Says the app can coexist | Found that on macOS both open but can't share: the app hangs (H15). We tell you to quit it (#32: detect it) |
| **Secrets** | Documents that the dump holds `wifiPSK` and SIP passwords in clear; `get_property` returns them | Redacted from MCP output; fixtures are sanitized structures only, with a test that scans them for the capture's private values |
| **Tools** | Raw `get_property` / `set_property` by object ID | Task-level tools (`mute_channel("Channel 1")`, `set_processing`), plus a guarded raw escape hatch |

If you know of another project that already does one of these, please open an
issue: we'd rather be corrected than claim it.

### Performance (measured, 2026-11-28)

We haven't benchmarked against rodey on hardware yet, so **we don't claim to be
faster**. What we have measured:

- **The server adds about 1 ms per tool call** (in-process, simulated console,
  200 calls each, median: `get_status` 0.6 ms, `list_channels` 1.0 ms,
  `mute_channel` dry-run 0.9 ms).
- **Decoding a full Duo state dump takes about 17 ms in Python** (143 KB, 847
  nodes, 6,663 properties).
- rodey's README puts a read at about 1 s, because it opens the console and
  re-dumps the full state for every call. We keep one session open and answer
  reads from the live tree, so a read doesn't touch USB at all. We expect that to
  be our biggest speed difference, but we haven't timed it side by side on
  hardware yet.
- The time you actually wait is the AI model's own thinking (seconds) and the
  USB transfer of a full sync (584 reports) after each real write. Neither
  depends on the server's language, so rewriting it in Rust would save
  milliseconds out of seconds.
- The bigger win is to **avoid the full resync after writes that are already
  verified**, and check the console's echo notification instead (desk check
  H10). That's tracked as future work.

## License

[MIT](LICENSE) © 2026 Scott Sauer

TDQS

A3.9/5.0

Scored across 12 tools

Disambiguation4/5

Most tools have clearly distinct purposes: status reads, channel reads, routing reads, mute/unmute, processing toggles, and device lifecycle operations are easy to separate. The raw property tools (list_properties, get_property, set_property) overlap conceptually with the domain-specific read/write tools, but the descriptions clarify that they are escape hatches and that set_property refuses mutes and fader writes.

Naming Consistency4/5

All names use consistent snake_case and are readable. Most follow a verb_noun pattern (get_status, list_channels, mute_channel, set_property), with minor deviations like resync and server_info that are still clear.

Tool Count5/5

Twelve tools is well within the appropriate range for a device-control MCP server. Each tool appears to earn its place by covering a distinct part of the console's read, write, and lifecycle surface.

Completeness4/5

The server covers core needs: connection status, channel listing, routing reads, mute/unmute, processing toggles, raw property access, resync, and device release. Some high-level write operations are missing, such as dedicated routing or source assignment, but the raw set_property escape hatch provides a workaround for allowlisted properties.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues