Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4411c04
Model:Cycles: device_status over the development link
durchgemacht Nov 24, 2026
9443910
Model:Cycles: device_load over the development link
durchgemacht Nov 24, 2026
aab79db
Model:Cycles: device_log over the development link
durchgemacht Nov 24, 2026
777ba7c
Model:Cycles: the MCP's trial tools over the development link
durchgemacht Nov 24, 2026
71c867f
Merge remote-tracking branch 'upstream/main' into mcp/model-cycles-de…
durchgemacht Nov 24, 2026
aded927
Merge branch 'base/model-cycles-next' into mcp/model-cycles-device-tools
durchgemacht Nov 24, 2026
c860a80
Model:Cycles: device_log reads the log through the link's log request
durchgemacht Nov 24, 2026
f5aef62
Merge remote-tracking branch 'upstream/main' into mcp/model-cycles-de…
durchgemacht Nov 24, 2026
9bbd435
Model:Cycles MCP: the link is in every Modwerk base
durchgemacht Nov 25, 2026
03aa126
Elektron link: one shared wire for the Digitone II and the Model:Cycles
durchgemacht Nov 25, 2026
a481cdc
Model:Cycles: links to the renamed MCP section
durchgemacht Nov 25, 2026
8f4f722
Merge remote-tracking branch 'upstream/main' into mcp/model-cycles-de…
durchgemacht Nov 25, 2026
0387046
Model:Cycles MCP: refused Keep keeps the trial, lost trials reported
durchgemacht Nov 25, 2026
ac9158f
Merge branch 'base/model-cycles-next' into mcp/model-cycles-device-tools
durchgemacht Nov 25, 2026
c6826ed
Model:Cycles MCP: a trial's end told by the unit's active set
durchgemacht Nov 25, 2026
1f9e64e
Merge branch 'base/model-cycles-next' into mcp/model-cycles-device-tools
durchgemacht Nov 25, 2026
9f9e478
Merge branch 'base/model-cycles-next' into mcp/model-cycles-device-tools
durchgemacht Nov 25, 2026
417bfd1
Merge branch 'base/model-cycles-next' into mcp/model-cycles-device-tools
durchgemacht Nov 25, 2026
27bd44c
Merge branch 'base/model-cycles-next' into mcp/model-cycles-device-tools
durchgemacht Nov 25, 2026
941f642
Merge main and #2125 into mcp/model-cycles-device-tools
repeat98 Nov 25, 2026
ca28972
Merge main and #2125 into mcp/model-cycles-device-tools
repeat98 Nov 25, 2026
5da322e
Merge remote-tracking branch 'origin/main' into land-2126
repeat98 Nov 25, 2026
9d18423
Merge main into mcp/model-cycles-device-tools
repeat98 Nov 25, 2026
5a198e6
Merge branch 'main' into mcp/model-cycles-device-tools
repeat98 Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/2026-11-24-model-cycles-device-load.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The developer MCP's `device_load` reads the audio load of a Model:Cycles running a Modwerk base over its link (`--elektron-midi`).
1 change: 1 addition & 0 deletions changelog/2026-11-24-model-cycles-device-log.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The developer MCP's `device_log` reads the diagnostics log of a Model:Cycles running a Modwerk base through the link's `log` request (`--elektron-midi`), with the Octatrack's parser.
1 change: 1 addition & 0 deletions changelog/2026-11-24-model-cycles-device-status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The developer MCP's `device_status` reads a Model:Cycles running a Modwerk base over its link (`--elektron-midi`) and names the build it runs from a folder of your own images.
1 change: 1 addition & 0 deletions changelog/2026-11-24-model-cycles-device-trial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The developer MCP loads modules onto a Model:Cycles running a Modwerk base over its link: `device_review`, `device_trial`, `device_keep` and `device_undo`, one change a trial, and `device_status` lists the live modules. A Keep or Undo the unit refuses (while a pattern plays) leaves the trial on to try again, and `device_status` says when a trial was lost, or kept by a Keep whose answer went missing.
1 change: 1 addition & 0 deletions changelog/2026-11-25-link-wire-shared.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The Digitone II and the Model:Cycles share one client for the link's SysEx wire (`link-wire.ts`): header, requests, replies and the 7-bit numbers and blocks. Each keeps its own commands and status wording, and "no answer" names no machine.
49 changes: 49 additions & 0 deletions docs/FRONTEND_MCP.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,55 @@ counterpart for; once a Zoom base loads modules over USB, that goes behind
`device_review`, `device_trial`, Keep and Undo, as the
[recipe](MACHINE_RECIPE.md) asks. Tests run against `fakeZoomPedal`.

### A Model:Cycles over its link

```sh
node scripts/frontend-mcp.mjs --data-dir /private/path/modwerk-mcp --elektron-midi [--elektron-images DIR] [--allow-device-writes]
```

With `--elektron-midi` alone, `device_status` asks a Model:Cycles running a
Modwerk base (release or development) for its link identity over USB MIDI
([LINK.md](../sdk/machines/model-cycles/LINK.md)): link version, port, arm,
counters, the RAM boot's result and the set identity the base took at boot.
`build` names the `.syx` in `--elektron-images` (a private folder of your own
builds, never committed) whose set identity matches, or is `null`.
`device_load` reads the audio's share of the CPU from the base's load probe
(the link's `load`): `windowPercent` over the last half second (`null` until
the first one has ended), `windowPeakPercent` for its dearest codec block,
`peakPercent` since boot, and the windows and blocks counted. An older
development base without the probe reports unsupported. `device_log` reads the base's
diagnostics log (the link's `diag`, then `log`, which reads nothing outside
the log, in every base), which is the Octatrack's
layout and reads with the same parser: `boot`, `seq`, the five-minute
`loads` and the `incidents`, without the nonce. The Model:Cycles fills
`cpu` with the audio's share and leaves the DSP fields at 0 (LINK.md). An
older development base without the log or `log` reports unsupported. `device_status` also
gives `loader`: the module pool's free bytes, the last refusal and the live
modules, or `unsupported` from a base without the loader.

The runtime loader takes one change a trial (LINK.md, "Loading modules"):
`device_review({"moduleIds":["NAME.mwrm"]})` names a runtime package in
`--elektron-images` (built with `sdk/runtime/loader/build.py`), or
`remove:NAME` the module built as NAME; it returns a 60-second plan with the
package's SHA-256 and changes nothing. `device_trial` (with
`--allow-device-writes`) loads it to RAM on trial, holds the unit's turn and
sends a request every three seconds, since the unit undoes a trial by itself
after ten quiet seconds; `device_keep` keeps it until the next power cycle,
`device_undo` puts the previous set back and checks it is the one reviewed.
While a pattern plays the unit refuses both (`unsafe`): the trial and its
pings stay, so stop playback and call the tool again. A ping that fails shows
as `state.trial.pingError` in `device_status`, and `state.status` turns
`trial-lost` once no ping has reached the unit for ten seconds. When the unit no
longer has the trial (its loader in the normal phase, or in the ready phase
after an ACCEPT or ROLLBACK whose answer was lost, which the MCP then leaves),
its active set tells what happened: the reviewed set means the trial was undone
(`trial-lost`), another set means a Keep went through (`trial-kept`). A later
`device_keep` or `device_undo` reports the same, as done when it matches. A remote session or a rebuilt site bundle waits for
the trial's end. Closing the MCP during a trial undoes it ten seconds later. Nothing is
saved: there are no saved sets. Close Elektron Transfer first. Tests run
against a fake unit (`scripts/mc-device.test.mjs`); the trial test runs the
base's own transport, controller and loader compiled for the computer.

## A member's unit through a remote session

An administrator can read a member's Octatrack through their browser, with
Expand Down
2 changes: 1 addition & 1 deletion docs/MACHINE_RECIPE.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Read this before you plan a core, a base or the first modules for any machine ot
| Digitakt II | preview | Modwerk base from core-dt2 1.1's source (elekloader#221 at `0df8409`), with sequencer and project hooks | started: the site builds the [pinned base](../sdk/machines/digitakt-ii/elekloader/README.md) `8650bb8a` (`e88273ed`, which passed on one unit on 17 November 2026, with kit data ended before the project archive); downloads off. The USB link is not started (SysEx over USB MIDI, from the Rytm's) | digikit (emulator only) | the exact build on a second unit, then the USB link ([goal](../sdk/machines/digitakt-ii/GOAL.md)) |
| Syntakt | research | Modwerk boot probe | not started | digiemu's port (open upstream pull request; emulator only) | the core stage, planned as the base |
| Digitone II | research | core-dn2 0.3, with the Digitakt II 1.1 additions, in toonst's elekloader fork: boots and its six UI events run on units (18 November 2026) | started: Modwerk's builder carries the device (`machine:base` and the site's kit, 19 November 2026) | digikit (the author's; emulator only) | the Modwerk base, reusing the Digitakt II's with its own recipe as the Rytm MKI does, then flashing from the site and the link ([goal](../sdk/machines/digitone-ii/GOAL.md)) |
| Model:Cycles | research | Modwerk base from core-mc 0.3's source (Elekloader v0.11.0) plus a key-LED hook ([events.json](../sdk/machines/model-cycles/events.json)) | started: built by `npm run machine:base`; runs on a unit with a test module on the LED hook; the USB link started over USB MIDI SysEx: in every base the identity, the audio load, a diagnostics log in the Octatrack's layout and the Octatrack's runtime loader (modules on trial, kept, undone, refused while playing), on a unit flashed with the release base (24 November 2026); development bases add memory reads, keys, encoder turns and a RAM boot ([LINK.md](../sdk/machines/model-cycles/LINK.md)); the site builds the pinned base from the owner's OS file as a local preview, downloads off (24 November 2026) | digiemu (emulator only) | the first module, Control All Config ([guide](../sdk/machines/model-cycles/README.md)) |
| Model:Cycles | research | Modwerk base from core-mc 0.3's source (Elekloader v0.11.0) plus a key-LED hook ([events.json](../sdk/machines/model-cycles/events.json)) | started: built by `npm run machine:base`; runs on a unit with a test module on the LED hook; the USB link started over USB MIDI SysEx: in every base the identity, the audio load, a diagnostics log in the Octatrack's layout and the Octatrack's runtime loader (modules on trial, kept, undone, refused while playing), on a unit flashed with the release base (24 November 2026); development bases add memory reads, keys, encoder turns and a RAM boot ([LINK.md](../sdk/machines/model-cycles/LINK.md)); the site builds the pinned base from the owner's OS file as a local preview, downloads off; the MCP's `device_status` reads its identity, `device_load` the audio load, `device_log` the log, and its trial tools load modules (24 November 2026) | digiemu (emulator only) | the first module, Control All Config ([guide](../sdk/machines/model-cycles/README.md)) |
| Analog Keys | research | none | not started | none known | the machine steps first ([add a machine](ADD_A_MACHINE.md)) |
| Zoom MultiStomp | preview (MS-70CDR); research (MS-50G, MS-60B, G1on) | MIDISTOMP on the MS-70CDR; the MS-50G and MS-60B need builds from their own OS | browser base build and flash over Web MIDI. Shared MCP status and load tools use the same link. Load needs the MIDISTOMP SysEx load reply. | Ziddle (emulator only) | Prove a RAM-only effect trial and rollback on the MS-70CDR before wiring review, trial, Keep and Undo. See the [plan](ZOOM_MULTISTOMP.md#plan). |
| Zoom G1 FOUR | research | none: effects load on the stock OS | not started: zoom-zt2's file commands work over USB, the pedal page does not speak ZD2 yet | none known | [next steps](ZOOM_ZD2.md#next-steps) |
Expand Down
1 change: 1 addition & 0 deletions scripts/frontend-mcp-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ export { buildBase } from '../src/engine/elekloader/octatrack-base'
export { apiFetch, setAdminSession } from '../src/community/api'
export { DSP_LOADER } from '../src/engine/protocol'
export { ZoomLink } from '../src/engine/zoom/zoom-link'
export { readMcIdentity, readMcLoad, readMcLog, mcSetIdentity, withMc, mcModules, mcTry, mcFinish, mcUploadSession, mcRemovalPackage, mcUploadBase, McRefused } from '../src/engine/elektron/mc-link'
Loading