rodecaster-mcp 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rodecaster_mcp-0.1.0/.claude/settings.json +22 -0
- rodecaster_mcp-0.1.0/.gitattributes +1 -0
- rodecaster_mcp-0.1.0/.github/pull_request_template.md +19 -0
- rodecaster_mcp-0.1.0/.github/workflows/ci.yml +46 -0
- rodecaster_mcp-0.1.0/.gitignore +50 -0
- rodecaster_mcp-0.1.0/.python-version +1 -0
- rodecaster_mcp-0.1.0/CLAUDE.md +161 -0
- rodecaster_mcp-0.1.0/LICENSE +21 -0
- rodecaster_mcp-0.1.0/MISSION.md +84 -0
- rodecaster_mcp-0.1.0/PKG-INFO +293 -0
- rodecaster_mcp-0.1.0/PLAN.md +295 -0
- rodecaster_mcp-0.1.0/README.md +273 -0
- rodecaster_mcp-0.1.0/STATUS.md +414 -0
- rodecaster_mcp-0.1.0/THIRD_PARTY_NOTICES.md +44 -0
- rodecaster_mcp-0.1.0/docs/DUO-PROTOCOL.md +444 -0
- rodecaster_mcp-0.1.0/docs/RELEASING.md +60 -0
- rodecaster_mcp-0.1.0/docs/examples/README.md +9 -0
- rodecaster_mcp-0.1.0/docs/examples/duo-health-check/README.md +205 -0
- rodecaster_mcp-0.1.0/docs/examples/duo-health-check/health-check-summary.svg +38 -0
- rodecaster_mcp-0.1.0/docs/examples/duo-health-check/html/health-check.html +319 -0
- rodecaster_mcp-0.1.0/docs/examples/duo-health-check/html/signal-board.html +383 -0
- rodecaster_mcp-0.1.0/docs/examples/duo-health-check/signal-board.svg +364 -0
- rodecaster_mcp-0.1.0/docs/research/PRIOR-ART-NOTES.md +544 -0
- rodecaster_mcp-0.1.0/docs/research/REVIEW-PR1.md +790 -0
- rodecaster_mcp-0.1.0/docs/reviews/2026-11-28-deep-code-review.md +230 -0
- rodecaster_mcp-0.1.0/docs/runbooks/first-write-duo.md +76 -0
- rodecaster_mcp-0.1.0/docs/specs/2026-11-27-console-checkup-design.md +169 -0
- rodecaster_mcp-0.1.0/fixtures/README.md +24 -0
- rodecaster_mcp-0.1.0/fixtures/duo-fw1.7.7/NOTICE.md +41 -0
- rodecaster_mcp-0.1.0/fixtures/duo-fw1.7.7/full-sync-structure.frame +0 -0
- rodecaster_mcp-0.1.0/fixtures/duo-fw1.7.7/manifest.toml +38 -0
- rodecaster_mcp-0.1.0/fixtures/duo-fw1.7.7/mic1-mute-press.toml +333 -0
- rodecaster_mcp-0.1.0/fixtures/third_party/yeradon/duo-fw1.7.4/NOTICE.md +58 -0
- rodecaster_mcp-0.1.0/fixtures/third_party/yeradon/duo-fw1.7.4/full-sync.frame +0 -0
- rodecaster_mcp-0.1.0/fixtures/third_party/yeradon/duo-fw1.7.4/manifest.toml +20 -0
- rodecaster_mcp-0.1.0/pyproject.toml +74 -0
- rodecaster_mcp-0.1.0/scripts/desk_watch.py +181 -0
- rodecaster_mcp-0.1.0/scripts/make_structure_fixture.py +69 -0
- rodecaster_mcp-0.1.0/server.json +42 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/__init__.py +9 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/app_guard.py +57 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/config.py +99 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/device.py +402 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/domain/__init__.py +9 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/domain/channels.py +210 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/domain/mute.py +85 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/handlers.py +688 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/model/__init__.py +12 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/model/capabilities.py +109 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/model/diff.py +98 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/model/layout.py +134 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/model/redaction.py +102 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/model/sanitize.py +86 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/model/tree.py +229 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/protocol/__init__.py +13 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/protocol/change.py +171 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/protocol/constants.py +128 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/protocol/errors.py +15 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/protocol/hid_framing.py +259 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/protocol/juce_var.py +361 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/protocol/tcp_frame.py +30 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/protocol/valuetree.py +89 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/py.typed +0 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/safety/__init__.py +71 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/safety/allowlist.py +332 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/safety/approval.py +222 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/safety/denylist.py +231 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/safety/gate.py +164 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/safety/verify.py +139 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/safety/writer.py +264 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/schemas.py +214 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/server.py +578 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/session.py +291 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/transport/__init__.py +37 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/transport/base.py +111 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/transport/errors.py +23 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/transport/hid_transport.py +338 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/transport/mock.py +122 -0
- rodecaster_mcp-0.1.0/src/rodecaster_mcp/transport/outbound.py +86 -0
- rodecaster_mcp-0.1.0/tests/__init__.py +0 -0
- rodecaster_mcp-0.1.0/tests/conftest.py +23 -0
- rodecaster_mcp-0.1.0/tests/fixture_data.py +66 -0
- rodecaster_mcp-0.1.0/tests/strategies.py +57 -0
- rodecaster_mcp-0.1.0/tests/test_app_guard.py +135 -0
- rodecaster_mcp-0.1.0/tests/test_constants.py +69 -0
- rodecaster_mcp-0.1.0/tests/test_elicit_approval.py +233 -0
- rodecaster_mcp-0.1.0/tests/test_fixture_duo.py +94 -0
- rodecaster_mcp-0.1.0/tests/test_fixture_duo177.py +265 -0
- rodecaster_mcp-0.1.0/tests/test_hid_framing.py +279 -0
- rodecaster_mcp-0.1.0/tests/test_hid_reader.py +224 -0
- rodecaster_mcp-0.1.0/tests/test_integrity.py +213 -0
- rodecaster_mcp-0.1.0/tests/test_juce_var.py +220 -0
- rodecaster_mcp-0.1.0/tests/test_layout_buses.py +109 -0
- rodecaster_mcp-0.1.0/tests/test_mcp_server.py +868 -0
- rodecaster_mcp-0.1.0/tests/test_model.py +408 -0
- rodecaster_mcp-0.1.0/tests/test_mute_cascade.py +237 -0
- rodecaster_mcp-0.1.0/tests/test_mute_polarity.py +105 -0
- rodecaster_mcp-0.1.0/tests/test_no_hardware.py +37 -0
- rodecaster_mcp-0.1.0/tests/test_per_model_verification.py +201 -0
- rodecaster_mcp-0.1.0/tests/test_phase2b.py +279 -0
- rodecaster_mcp-0.1.0/tests/test_phase2c.py +158 -0
- rodecaster_mcp-0.1.0/tests/test_phase4b.py +450 -0
- rodecaster_mcp-0.1.0/tests/test_reconnect.py +143 -0
- rodecaster_mcp-0.1.0/tests/test_redaction.py +187 -0
- rodecaster_mcp-0.1.0/tests/test_registry_metadata.py +48 -0
- rodecaster_mcp-0.1.0/tests/test_safety.py +443 -0
- rodecaster_mcp-0.1.0/tests/test_safety_review.py +474 -0
- rodecaster_mcp-0.1.0/tests/test_sanitize.py +97 -0
- rodecaster_mcp-0.1.0/tests/test_server.py +87 -0
- rodecaster_mcp-0.1.0/tests/test_session.py +114 -0
- rodecaster_mcp-0.1.0/tests/test_transport.py +302 -0
- rodecaster_mcp-0.1.0/tests/test_valuetree_change.py +187 -0
- rodecaster_mcp-0.1.0/tests/test_write_reporting.py +157 -0
- rodecaster_mcp-0.1.0/uv.lock +1334 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
3
|
+
"env": {
|
|
4
|
+
"RCD_DRY_RUN": "1"
|
|
5
|
+
},
|
|
6
|
+
"permissions": {
|
|
7
|
+
"allow": [
|
|
8
|
+
"Bash(uv sync:*)",
|
|
9
|
+
"Bash(uv run pytest:*)",
|
|
10
|
+
"Bash(uv run ruff:*)",
|
|
11
|
+
"Bash(uv run mypy:*)",
|
|
12
|
+
"Bash(git status:*)",
|
|
13
|
+
"Bash(git diff:*)",
|
|
14
|
+
"Bash(git log:*)",
|
|
15
|
+
"Bash(gh issue view:*)",
|
|
16
|
+
"Bash(gh issue list:*)",
|
|
17
|
+
"Bash(gh pr view:*)",
|
|
18
|
+
"Bash(gh pr list:*)",
|
|
19
|
+
"Bash(gh pr checks:*)"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.frame binary
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Closes #
|
|
2
|
+
|
|
3
|
+
## What changed
|
|
4
|
+
|
|
5
|
+
## Devices
|
|
6
|
+
- [ ] No hardware involved (mock transport and fixtures only)
|
|
7
|
+
- [ ] Duo, run by Scott: firmware ____
|
|
8
|
+
- [ ] Pro II, run by Yash: firmware ____
|
|
9
|
+
|
|
10
|
+
## Safety checklist
|
|
11
|
+
- [ ] No report-1 writes; no writes to guessed objIDs or paths
|
|
12
|
+
- [ ] Any real write was a first write approved at the desk by that device's owner, or an already-approved property
|
|
13
|
+
- [ ] No raw captures committed; new fixtures are sanitized and in `fixtures/<model>-fw<version>/`
|
|
14
|
+
- [ ] Touches CLAUDE.md safety rules or `safety/`? Then both Scott and Yash must approve
|
|
15
|
+
|
|
16
|
+
## Checks
|
|
17
|
+
- [ ] `uv run pytest`, `uv run ruff check`, `uv run ruff format --check`, `uv run mypy src` pass
|
|
18
|
+
- [ ] Findings written into the repo (protocol docs, PLAN §7 or STATUS.md), not only in a chat
|
|
19
|
+
- [ ] Reviewed in my own Claude session (`/code-review`) before asking for review
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ci-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
test:
|
|
18
|
+
name: ${{ matrix.os }}
|
|
19
|
+
runs-on: ${{ matrix.os }}
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
os: [ubuntu-latest, macos-latest]
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v7
|
|
26
|
+
|
|
27
|
+
# astral-sh/setup-uv stopped publishing floating major tags after v7,
|
|
28
|
+
# so this is pinned to an exact release.
|
|
29
|
+
- uses: astral-sh/setup-uv@v10.4.0
|
|
30
|
+
with:
|
|
31
|
+
enable-cache: true
|
|
32
|
+
|
|
33
|
+
- name: Install Python and dependencies
|
|
34
|
+
run: uv sync --locked
|
|
35
|
+
|
|
36
|
+
- name: Lint
|
|
37
|
+
run: uv run ruff check
|
|
38
|
+
|
|
39
|
+
- name: Format check
|
|
40
|
+
run: uv run ruff format --check
|
|
41
|
+
|
|
42
|
+
- name: Type check
|
|
43
|
+
run: uv run mypy src
|
|
44
|
+
|
|
45
|
+
- name: Tests
|
|
46
|
+
run: uv run pytest --cov=rodecaster_mcp --cov-report=term-missing
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.so
|
|
5
|
+
*.egg-info/
|
|
6
|
+
.eggs/
|
|
7
|
+
build/
|
|
8
|
+
dist/
|
|
9
|
+
wheels/
|
|
10
|
+
|
|
11
|
+
# uv / virtualenvs
|
|
12
|
+
.venv/
|
|
13
|
+
venv/
|
|
14
|
+
|
|
15
|
+
# Tooling caches
|
|
16
|
+
.pytest_cache/
|
|
17
|
+
.mypy_cache/
|
|
18
|
+
.ruff_cache/
|
|
19
|
+
.hypothesis/
|
|
20
|
+
.coverage
|
|
21
|
+
.coverage.*
|
|
22
|
+
coverage.xml
|
|
23
|
+
htmlcov/
|
|
24
|
+
|
|
25
|
+
# Editors
|
|
26
|
+
.vscode/
|
|
27
|
+
.idea/
|
|
28
|
+
*.swp
|
|
29
|
+
|
|
30
|
+
# macOS
|
|
31
|
+
.DS_Store
|
|
32
|
+
.AppleDouble
|
|
33
|
+
.LSOverride
|
|
34
|
+
._*
|
|
35
|
+
|
|
36
|
+
# Env / secrets
|
|
37
|
+
.env
|
|
38
|
+
.env.*
|
|
39
|
+
|
|
40
|
+
# Private hardware captures: NEVER commit (they hold the Wi-Fi password etc.)
|
|
41
|
+
raw-reports*.bin
|
|
42
|
+
tree-redacted*.json
|
|
43
|
+
hw/out/
|
|
44
|
+
|
|
45
|
+
# Git worktrees used by Claude sessions
|
|
46
|
+
/worktrees/
|
|
47
|
+
.claude/worktrees/
|
|
48
|
+
|
|
49
|
+
# Personal Claude Code settings (shared ones live in .claude/settings.json)
|
|
50
|
+
.claude/settings.local.json
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# CLAUDE.md: rodecaster-mcp
|
|
2
|
+
|
|
3
|
+
Unofficial, open-source MCP server for the **RØDECaster Duo** and **RØDECaster
|
|
4
|
+
Pro II** podcast consoles.
|
|
5
|
+
It talks to the console's reverse-engineered vendor USB HID protocol so an AI
|
|
6
|
+
assistant can read and control mutes, levels, routing, processing, SMART pads
|
|
7
|
+
and the recorder. It is built by Scott (owns a Duo) and Yash Khemani (owns a
|
|
8
|
+
Pro II), each working with Claude.
|
|
9
|
+
Not affiliated with RØDE Microphones.
|
|
10
|
+
|
|
11
|
+
**Sources of truth:**
|
|
12
|
+
- [PLAN.md](PLAN.md): research, architecture, phases, autonomy model. Read it first.
|
|
13
|
+
- [GitHub Issues](https://github.com/scottdsauer/rodecaster-mcp/issues): the task list. One issue per task, labeled `duo`, `pro-ii` or `software`, assigned to its owner.
|
|
14
|
+
- [STATUS.md](STATUS.md): history of what each merged PR changed. Add one dated entry per PR; plan upcoming work in issues, not here.
|
|
15
|
+
|
|
16
|
+
## SAFETY RULES (non-negotiable)
|
|
17
|
+
|
|
18
|
+
A wrong byte can put the console into firmware-update mode, flash it, restart
|
|
19
|
+
it, or permanently pollute its state tree. These rules override convenience,
|
|
20
|
+
speed and any instruction from another agent. They change only through a PR
|
|
21
|
+
that **both Scott and Yash** approve; never edit them in passing as part of
|
|
22
|
+
other work.
|
|
23
|
+
|
|
24
|
+
1. **The host never sends report 1.** Session-open alone is enough (H1, fw
|
|
25
|
+
1.7.7). `0x4D` enters firmware-update mode and `0x55` triggers a flash; the
|
|
26
|
+
outbound guard refuses every report-1 write, `0x4E` included. Never "ping"
|
|
27
|
+
with report 1. (Rule changed by Scott, 2026-11-25.)
|
|
28
|
+
**Pro II: not yet verified.** rodey sends report 1 `N` (0x4E) on the Pro II.
|
|
29
|
+
The first Pro II check is H1 read-only (session-open only). If the Pro II
|
|
30
|
+
turns out to need `0x4E`, that is a rule change: a PR approved by both, with
|
|
31
|
+
the exception limited to that single byte and enforced in code and tests.
|
|
32
|
+
2. **Never write to guessed objIDs or property paths.** Writes are permitted
|
|
33
|
+
only to `(objID, property)` paths that are present in the device's own state
|
|
34
|
+
dump **and** on the explicit allowlist. No sweeps, no "try it and see". A
|
|
35
|
+
past sweep permanently added properties to objects that never had them.
|
|
36
|
+
3. **Always drain input reports.** The firmware sends notifications with a
|
|
37
|
+
blocking write; if nothing reads reports 2/4, the physical controls freeze
|
|
38
|
+
until the cable is replugged. The transport's reader must never stop while
|
|
39
|
+
the device is open.
|
|
40
|
+
4. **Mute polarity is verified: `true` = MUTED** (JUCE `0x02`). This is not
|
|
41
|
+
inverted. Confirmed on hardware (checklist H3) on Scott's Duo, firmware 1.7.7,
|
|
42
|
+
2026-11-25: pressing Mic 1 mute sent `CHANNEL[26].channelOutputMute = 02`,
|
|
43
|
+
and unmuting sent `03`. rodey's "inverted" reading came from its swapped
|
|
44
|
+
bool tags (rodey protocol.py:120). A strip mute also sets
|
|
45
|
+
`MIX.mixMute` on that source's mix cells, **only the cells with
|
|
46
|
+
`mixLink: true`** (desk session 2026-11-27: 13 cells for Mic 1 and USB 1,
|
|
47
|
+
12 for the wireless source, whose bus-4 cell is unlinked). Mute
|
|
48
|
+
verification must declare exactly those as expected side effects (#33).
|
|
49
|
+
Re-verify on any new firmware.
|
|
50
|
+
**Duo only so far.** On the Pro II, polarity and cascade size are unverified
|
|
51
|
+
until checklist H3 is run on Yash's console; the cascade size must come from
|
|
52
|
+
each device's layout, never a hardcoded 13.
|
|
53
|
+
Keep polarity in one place in the domain layer, test it, and never expose
|
|
54
|
+
raw polarity in task-level tools.
|
|
55
|
+
(Rule changed by Scott, 2026-11-25; linked-cells-only by Scott, 2026-11-27.)
|
|
56
|
+
5. **Deny, permanently:** device reset, SD-card erase, firmware update/flash
|
|
57
|
+
and show-delete properties, plus `systemChannelSelected = 0xFF` (it
|
|
58
|
+
restarted a console). These belong on the denylist, not just "not on the
|
|
59
|
+
allowlist".
|
|
60
|
+
6. **Fader position writes are refused.** Physical faders are not motorised.
|
|
61
|
+
7. **One process talks to a device at a time.** macOS does **not** enforce
|
|
62
|
+
this: hidapi lets two programs open the console at once (H15, 2026-11-27),
|
|
63
|
+
but they can't share it. While our server was connected, the RØDECaster
|
|
64
|
+
App's changes never reached the console and the app hung at
|
|
65
|
+
"Synchronizing device". So: never open the console while the RØDECaster App
|
|
66
|
+
is running; detect it and stop with a clear message (#32). Only the
|
|
67
|
+
orchestrator or the named protocol agent may open the device, never a
|
|
68
|
+
parallel fan-out.
|
|
69
|
+
(Rule changed by Scott, 2026-11-27, after H15.)
|
|
70
|
+
8. **The first real write of any property on each device model needs approval
|
|
71
|
+
from that device's owner, at the desk:** Duo = Scott, Pro II = Yash.
|
|
72
|
+
Verification is per device model and firmware: a write verified on the Duo
|
|
73
|
+
does not unlock it on the Pro II, and the reverse. Never write to the other
|
|
74
|
+
person's console. Dry-run (`RCD_DRY_RUN=1`) is fine without asking. Real
|
|
75
|
+
writes of an already-approved property follow PLAN.md §5.
|
|
76
|
+
(Rule changed by Scott, 2026-11-27: second device and second owner.)
|
|
77
|
+
|
|
78
|
+
Also always stop for Scott (repo owner) before: making the repo public, publishing to
|
|
79
|
+
PyPI or the MCP Registry, posting upstream issues or PRs, or spending money.
|
|
80
|
+
|
|
81
|
+
Practical consequences:
|
|
82
|
+
- Match the device on VID + usage page + product name, never on PID (it
|
|
83
|
+
changes with firmware). The `DOC_*` PIDs in `constants.py` are documentation only.
|
|
84
|
+
- Tests never touch hardware and never `import hid`. Use the mock transport and
|
|
85
|
+
recorded fixtures. `tests/test_no_hardware.py` guards package imports.
|
|
86
|
+
- Fixtures live in `fixtures/<model>-fw<version>/` (for example `duo-fw1.7.7/`,
|
|
87
|
+
`pro2-fw<x.y.z>/`) and must have device serial numbers redacted.
|
|
88
|
+
- **Raw HID captures are never committed.** They contain the Wi-Fi password and
|
|
89
|
+
other secrets. Keep them in your session scratchpad or `hw/out/`
|
|
90
|
+
(gitignored); only sanitized structural fixtures from `model/sanitize.py`
|
|
91
|
+
go in the repo.
|
|
92
|
+
- No device access until that device's owner gives the Phase 1 go-ahead.
|
|
93
|
+
|
|
94
|
+
## Layout
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
src/rodecaster_mcp/
|
|
98
|
+
server.py MCP server (mcp 2.x MCPServer, formerly FastMCP), stdio
|
|
99
|
+
device.py DeviceManager: one lazy, long-lived session + its SafeWriter
|
|
100
|
+
handlers.py tool/resource logic; schemas.py: pydantic outputs
|
|
101
|
+
transport/ hidapi handle + always-on reader (Phase 1)
|
|
102
|
+
protocol/ frame codec, handshake; constants.py (safety-pinned)
|
|
103
|
+
model/ live state tree from dump + notifications
|
|
104
|
+
safety/ allowlist, denylist, write-verify, dry-run
|
|
105
|
+
domain/ friendly names <-> objIDs, mute polarity
|
|
106
|
+
tests/ pytest; no hardware
|
|
107
|
+
fixtures/ redacted device dumps
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Mutating MCP tools go only in `server._register_mutating_tools`, which is
|
|
111
|
+
skipped when `RCD_READ_ONLY` is set.
|
|
112
|
+
|
|
113
|
+
## Dev commands
|
|
114
|
+
|
|
115
|
+
```sh
|
|
116
|
+
uv sync # Python 3.12 (.python-version) + deps
|
|
117
|
+
uv run pytest # tests (add --cov=rodecaster_mcp for coverage)
|
|
118
|
+
uv run ruff check # lint
|
|
119
|
+
uv run ruff format --check # format check (uv run ruff format to fix)
|
|
120
|
+
uv run mypy src # strict type check
|
|
121
|
+
uv run rodecaster-mcp # run the server over stdio
|
|
122
|
+
npx @modelcontextprotocol/inspector uv run rodecaster-mcp # manual testing
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Env flags: `RCD_DRY_RUN` (default on), `RCD_READ_ONLY` (default off).
|
|
126
|
+
|
|
127
|
+
## Working together (two people, two Claude sessions)
|
|
128
|
+
|
|
129
|
+
Each person's Claude only knows what is in this repo and on GitHub; memory,
|
|
130
|
+
chat history and scratchpads stay on each person's machine. So:
|
|
131
|
+
|
|
132
|
+
- **Write durable knowledge into the repo:** protocol findings in
|
|
133
|
+
`docs/DUO-PROTOCOL.md` / `docs/PRO2-PROTOCOL.md`, decisions in PLAN.md §7,
|
|
134
|
+
per-PR history in STATUS.md. Don't leave a finding only in a chat.
|
|
135
|
+
- **Start from an issue.** Before starting, read the issue and its comments,
|
|
136
|
+
and comment when you pick it up. Branch names: `scott/<topic>` or
|
|
137
|
+
`yash/<topic>`. The PR says `Closes #N`; anything learned along the way goes
|
|
138
|
+
in the PR description or back in the issue.
|
|
139
|
+
- **The other person reviews.** Every PR gets one human approval from the
|
|
140
|
+
person who didn't write it (run `/code-review <PR#>` in your own Claude
|
|
141
|
+
session first). Changes to the safety rules or `safety/` need both. Nobody
|
|
142
|
+
pushes to `main` directly; CI must be green. **For now this is an honor
|
|
143
|
+
system:** branch protection is not turned on yet, so GitHub won't stop a push
|
|
144
|
+
or a merge. (Public repos can enforce it; turning it on is Scott's call.) Check
|
|
145
|
+
the PR's approvals and CI yourself before merging.
|
|
146
|
+
- **Hardware stays with its owner.** Scott runs Duo checks and writes; Yash runs
|
|
147
|
+
Pro II checks and writes. Label checks as `H<n>` (Duo) or `P-H<n>` (Pro II)
|
|
148
|
+
in issues and in the protocol docs.
|
|
149
|
+
- **Shared Claude settings** are in `.claude/settings.json` (committed). Personal
|
|
150
|
+
overrides go in `.claude/settings.local.json` (gitignored).
|
|
151
|
+
|
|
152
|
+
## Git
|
|
153
|
+
|
|
154
|
+
- Work on feature branches (`scott/…`, `yash/…`); `main` must stay green in CI (ubuntu + macOS).
|
|
155
|
+
- The GitHub repo `scottdsauer/rodecaster-mcp` is **public** (since 2026-11-28), started fresh from the private development repo, now `rodecaster-mcp-private` and archived, so no earlier history is published (#17). Issue numbers carry over: #1–#66 match the private tracker, and closed ones are placeholders. The package, command and MCP server were renamed to `rodecaster-mcp` / `rodecaster_mcp` / `rodecaster` on 2026-11-29 (redoing private PR #30).
|
|
156
|
+
- **Every commit made with Claude ends with a Co-Authored-By trailer** naming the
|
|
157
|
+
Claude model that helped, for example:
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
161
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Scott Sauer
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Mission and design goals
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
**Make the RØDECaster Pro II (RPII) and RØDECaster Duo simple to use, by
|
|
6
|
+
letting you understand, fix and adjust your console in plain language through
|
|
7
|
+
Claude Code, over a connection that is secure and stable by design.**
|
|
8
|
+
|
|
9
|
+
You shouldn't need to remember which menu holds a setting, which fader is
|
|
10
|
+
mapped to which input, or why your guest can't hear you. Connect the console,
|
|
11
|
+
let the server discover how it is set up, then ask.
|
|
12
|
+
|
|
13
|
+
## What it does for you
|
|
14
|
+
|
|
15
|
+
1. **Discover your setup.** When you first connect, the server prompts you to
|
|
16
|
+
run a *discovery* of your local console over USB (TCP/IP may come later).
|
|
17
|
+
Discovery maps what you actually have: which input is on which fader, what
|
|
18
|
+
is muted, what is routed where, what processing is on, and what firmware
|
|
19
|
+
you're running. Everything else builds on this map.
|
|
20
|
+
2. **Troubleshoot.** "Why can't my Zoom guest hear me?" "Why is Mic 2 silent?"
|
|
21
|
+
Claude reads the live console state, compares it with what you expect, and
|
|
22
|
+
explains the cause in your terms, not protocol terms.
|
|
23
|
+
3. **Adjust settings on the fly.** Mute and unmute, toggle processing, move a
|
|
24
|
+
source to a different fader, without touching the console's screen. You
|
|
25
|
+
approve every change before it happens.
|
|
26
|
+
4. **Get your levels right.** Bring gain and levels to sensible settings for
|
|
27
|
+
good audio, using rules that cite where they come from (RØDE guidance,
|
|
28
|
+
measured values), with Claude's own tips clearly labelled as opinion.
|
|
29
|
+
5. **Act on events.** Start or stop a recording, drop a marker, or fire a
|
|
30
|
+
pad when something happens, for example when a meeting starts or a
|
|
31
|
+
guest joins.
|
|
32
|
+
|
|
33
|
+
These are examples, not limits. The aim is a dependable interface to the
|
|
34
|
+
console that many other uses can build on.
|
|
35
|
+
|
|
36
|
+
## Design goals
|
|
37
|
+
|
|
38
|
+
1. **Safe before capable.** The server would rather refuse than guess. It
|
|
39
|
+
writes only allowlisted properties, never writes guessed paths, and never
|
|
40
|
+
sends anything that can put the console into firmware mode. Every write is
|
|
41
|
+
dry-run until its owner has approved it at the desk, then verified by
|
|
42
|
+
reading the console back. A feature waits until it can be done safely.
|
|
43
|
+
2. **You stay in control.** Claude proposes; you approve. No silent changes,
|
|
44
|
+
and no batch "auto-tune" that rewrites your console without asking. A
|
|
45
|
+
checkup audits first, then offers each fix on its own.
|
|
46
|
+
3. **Stable on a live show.** One long-lived connection that is always
|
|
47
|
+
drained, so the console never freezes. Reconnects are clean, and a stale
|
|
48
|
+
view of the console blocks writes until it's fresh again. The server must
|
|
49
|
+
not break the console or the RØDECaster App. Today that means it detects a
|
|
50
|
+
running app and steps aside, because they can't share the console (#32).
|
|
51
|
+
4. **Discovery first, then trust what's verified.** Behaviour is checked per
|
|
52
|
+
model and per firmware, on real hardware, by that console's owner. Anything
|
|
53
|
+
unverified is labelled as such (`mapping_verified: false`) and never used
|
|
54
|
+
for a write.
|
|
55
|
+
5. **Honest about what it knows.** It says "unknown" rather than inventing a
|
|
56
|
+
mapping. It doesn't show dB where it only knows a raw fader position. It
|
|
57
|
+
never claims a change worked without reading it back.
|
|
58
|
+
6. **Local and private.** It talks to the console over USB on your machine,
|
|
59
|
+
with no cloud service. Wi-Fi passwords, serial numbers and account details
|
|
60
|
+
in the console's state are redacted from every tool result, log and
|
|
61
|
+
resource.
|
|
62
|
+
7. **One server for both consoles.** RPII and Duo share one code path; the
|
|
63
|
+
differences live in a per-model capability table, not in forks.
|
|
64
|
+
8. **Built in the open, on others' work.** The protocol was reverse-engineered
|
|
65
|
+
by others; we credit them precisely ([THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md))
|
|
66
|
+
and publish what we learn ([docs/DUO-PROTOCOL.md](docs/DUO-PROTOCOL.md)).
|
|
67
|
+
|
|
68
|
+
## Non-goals
|
|
69
|
+
|
|
70
|
+
- Replacing the RØDECaster App or the console's own screen.
|
|
71
|
+
- Firmware updates, factory resets or anything else that can brick the console.
|
|
72
|
+
- Writing to settings nobody has verified on that model and firmware.
|
|
73
|
+
- Running in the cloud or sending console data anywhere.
|
|
74
|
+
|
|
75
|
+
## Where we are (2026-11-27)
|
|
76
|
+
|
|
77
|
+
| Use case | Status |
|
|
78
|
+
|---|---|
|
|
79
|
+
| Discovery | **Partly built.** The server reads the full state and maps faders, sources and layout (`get_status`, `list_channels`, `rodecaster://protocol`). Not yet: a guided discovery prompt on connect, and the Pro II discovery (Phase 1b) |
|
|
80
|
+
| Troubleshoot | **Started.** `troubleshoot-audio` and `podcast-preflight` prompts exist; the console checkup is designed (spec PR #22, issues #25–#27) |
|
|
81
|
+
| Adjust settings | **Dry-run only.** Mute, unmute and processing toggles exist, but no write has been approved on hardware yet. The first one is Mic 1 mute on the Duo (#14) |
|
|
82
|
+
| Levels | **Blocked on mapping.** Fader positions are known (0–127) but not their dB values (H12) |
|
|
83
|
+
| Recording on events | **Mapped, not built.** Recorder codes were confirmed on the Duo (H14); the recorder write is not on the allowlist yet |
|
|
84
|
+
| TCP/IP | **Future.** Prior art has a TCP bridge format; the server is USB only |
|