Repository navigation
Developer MCP: Digitone II tools over MIDI - #1846
prodbysmolec wants to merge 12 commits into
Conversation
…loadSession Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r stack's link.c Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Undo) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I checked the MIDI reader with two requests pending on the same line. I delivered both replies, but the first read timed out and the second got the first reply. This can happen during a trial because the keepalive uses the upload queue while status and log reads call the same MIDI line outside it. Please serialize complete request/reply exchanges on that line, including the keepalive, and cover a log or status read while a trial is open. There is a related cleanup case in |
…-mcp-tools # Conflicts: # scripts/frontend-mcp.mjs # src/engine/elektron/dn2-link.test.ts # src/engine/elektron/dn2-link.ts
…ne; an unconfirmed Keep or Undo stops the keepalive Status and log reads called the MIDI line outside the upload queue, so a reply could reach the wrong request during a trial. Every complete exchange (upload frame, keepalive, ident, a whole log read) now takes a LineLock turn. If Keep or Undo loses its acknowledgement, the session is dropped, the keepalive stops so the unit settles the trial by itself, and a fresh read reports the loader's phase. The upload base is the one the unit names in HELLO (a development build's layout digest, repeat98#1842); --digitone-base FILE refuses a unit on another build. Tests: a delayed line never has two requests in flight during a trial with status and log reads; a cut-short accept stops the keepalive; a base mismatch is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…file main lacks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Undo Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, both fixed in 51b1d25 (and two small follow-ups):
|
|
The original reply-order and unconfirmed-Keep tests pass. I found a timing case with a trial open and a slower MIDI line. With the existing 6,148-byte fake log and replies 220 ms apart, the log read held the line for every chunk. No keepalive reached the controller in the first ten seconds. Individual replies were all within their timeout, but the unit’s trial watchdog can expire during that read. Could you serialize one request and reply at a time and let a due keepalive run between log chunks? A slow-log test should see a keepalive before the watchdog deadline while still observing at most one exchange in flight. |
…-mcp-tools # Conflicts: # scripts/frontend-mcp.mjs
…ive goes between its chunks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed in 286ee99 (after merging
|
|
Thanks, a turn per log request is what I asked for, and the slow-log test with Since then the Model:Cycles' tools have landed on
On timing: this can go to |
Developer MCP: Digitone II tools over MIDI (piece 7, first step). Stacked on #1844 (the site's upload transport), itself on #1823 (the link client): until they merge, this branch carries their commits too.
scripts/digitone-device.tsruns the site's own link client over the computer's MIDI, throughzoom-device.ts's RtMidi access. It joins SysEx that RtMidi hands over in pieces, and sends one upload frame at a time.frontend-mcp.mjsgains five tools behind--digitone-midi.digitone_statusanddigitone_logare read-only.digitone_trialtakes a runtime package by name from--digitone-packages; it anddigitone_keepneed--allow-device-writesandconfirm: true.digitone_undorolls the trial back.docs/FRONTEND_MCP.md#a-digitone-ii-over-midi, the goal row, and a changelog entry.scripts/digitone-device.test.mjs: 5 tests againstfakeDigitone, which speaks link.c's ident, diag, mem and upload and splits each reply over two events as RtMidi does.tsc -band eslint are clean.npm run pr:readyfails locally only on the runtime loader test that fails on current main (stale Octatrack standalone recipes, finding on the board).Tested on a unit: a Digitone II, OS 1.12, running #1842's loader base from RAM (main CRC 304cfcdc), on 20 November 2026.
createFrontendToolswith--digitone-midi, no write flag):digitone_statusread the link (armed, boot 1, 58,029 ticks) and the loader (phase normal, generation 30).digitone_logread the log: START only, six load records.DigitoneUnitthe write tools call, with real MIDI:trialafter 15 s);--allow-device-writeson the unit: the developer keeps that flag off.Edge cases
DigitoneUnit.trialon the unit, 15 s idle, then statusfakeDigitonefakeDigitonefakeDigitonesplits every reply in two; the unit through real RtMidifakeDigitoneplayingdocs/FRONTEND_MCP.mdhad no machine over MIDI beside the Zoom pedal. The new section says how a development base's trial stays open.🤖 Generated with Claude Code