@mthines/reaper-mcp 0.78.0-beta.92.1 → 0.78.0-beta.92.2
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.
- package/README.md +37 -37
- package/main.js +16 -4
- package/package.json +1 -1
- package/reaper/mcp_bridge.lua +7 -0
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
3
|
<picture>
|
|
4
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
5
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/logo-dark.svg">
|
|
5
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/logo.svg" alt="reaper-mcp" width="360">
|
|
6
6
|
</picture>
|
|
7
7
|
|
|
8
8
|
<br><br>
|
|
9
9
|
|
|
10
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
10
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/hero.svg" alt="reaper-mcp — Mix by asking. Type what you hear and an AI mix engineer inside your REAPER session does it." width="100%">
|
|
11
11
|
|
|
12
12
|
<br>
|
|
13
13
|
|
|
@@ -21,7 +21,7 @@ You chat in plain English in Claude Code, by keyboard (or dictation, if you like
|
|
|
21
21
|
[](https://claude.com/claude-code)
|
|
22
22
|
[](https://lorekit.io)
|
|
23
23
|
[](#-install-in-3-steps)
|
|
24
|
-
[](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
24
|
+
[](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/LICENSE)
|
|
25
25
|
|
|
26
26
|
[**Install in 3 steps**](#-install-in-3-steps) · [See it work](#-just-type-what-you-hear) · [What you get](#-why-producers-use-it) · [Watch it work](#-see-what-your-agent-is-doing) · [Extensions](#-extensions-teach-it-your-plugin) · [FAQ](#-faq)
|
|
27
27
|
|
|
@@ -48,7 +48,7 @@ with your OS if you prefer, it's the same thing to the agent):
|
|
|
48
48
|
|
|
49
49
|
Here's what happens next:
|
|
50
50
|
|
|
51
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
51
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/session-demo.svg" alt="Illustrative session: the mixer saves a snapshot, measures, cuts the guitars where they mask the vocal, compresses the vocal, re-measures and saves an after snapshot." width="100%">
|
|
52
52
|
|
|
53
53
|
It isn't a preset and it isn't a guess. Before it touches anything it **measures your
|
|
54
54
|
actual tracks** (loudness, spectrum, stereo width, dynamics). It makes the change with
|
|
@@ -96,7 +96,7 @@ handling and dynamics to the style. Just tell it what you're making.
|
|
|
96
96
|
With **[LoreKit](#-lorekit-the-knowledge-core)** as its memory, it keeps what it learns
|
|
97
97
|
about your plugins and your taste, so a correction sticks. It also draws on a shared
|
|
98
98
|
plugin library that grows every time someone
|
|
99
|
-
**[contributes](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
99
|
+
**[contributes](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/knowledge/contributions/README.md)**, you included.
|
|
100
100
|
|
|
101
101
|
</td>
|
|
102
102
|
<td valign="top">
|
|
@@ -113,7 +113,7 @@ or upload anything, and you hear each change as it happens.
|
|
|
113
113
|
|
|
114
114
|
## 🔍 How it works
|
|
115
115
|
|
|
116
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
116
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/how-it-works.svg" alt="You describe what you hear, Claude measures and decides, REAPER changes live. Every change: snapshot, measure, decide, change, re-measure." width="100%">
|
|
117
117
|
|
|
118
118
|
**You stay in charge.** Ask it to explain before it acts, undo anything, or use
|
|
119
119
|
`/critique` for advice without a single change to your project.
|
|
@@ -126,7 +126,7 @@ A mix engineer's value is what they've learned. reaper-mcp keeps all of that in
|
|
|
126
126
|
**[LoreKit](https://lorekit.io)**, a free, open-source memory store for AI agents. It's
|
|
127
127
|
what turns a remote control into an engineer that gets better every session.
|
|
128
128
|
|
|
129
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
129
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/knowledge-core.svg" alt="LoreKit at the center: the mix skills read plugin records and lessons before acting and write back what they learned." width="100%">
|
|
130
130
|
|
|
131
131
|
- 🎛️ **One record per plugin.** What it is, what each knob does, the settings that
|
|
132
132
|
worked and the gotchas. Ask for a plugin it has never seen and it **researches it,
|
|
@@ -141,12 +141,12 @@ what turns a remote control into an engineer that gets better every session.
|
|
|
141
141
|
overwritten. The built-in set comes with the server, read-only, and needs no
|
|
142
142
|
LoreKit account. Connect your own LoreKit to start your layer.
|
|
143
143
|
- 📚 **A built-in plugin library.** FabFilter, Soundtoys, Valhalla, iZotope, Melodyne, the
|
|
144
|
-
REAPER stock plugins and more: see the **[built-in plugin list](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
144
|
+
REAPER stock plugins and more: see the **[built-in plugin list](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/docs/PLUGINS.md)**, and how
|
|
145
145
|
to add yours.
|
|
146
146
|
- 🤝 **Share what you taught it.** Press **Contribute** in the bridge page's Plugins tab
|
|
147
147
|
and your plugin records become a pull request. Once the maintainer approves it, they're
|
|
148
148
|
built in for every reaper-mcp user and added to the
|
|
149
|
-
[plugin list](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
149
|
+
[plugin list](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/docs/PLUGINS.md) ([how it works](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/knowledge/contributions/README.md)).
|
|
150
150
|
Regular contributors can publish straight to built-in, no pull request: ask on
|
|
151
151
|
[Discord](https://discord.gg/Eg8tznuXp4).
|
|
152
152
|
- 🌍 **It follows you.** The memory isn't tied to one project folder. Whatever song
|
|
@@ -161,7 +161,7 @@ what turns a remote control into an engineer that gets better every session.
|
|
|
161
161
|
|
|
162
162
|
## 🚀 Install in 3 steps
|
|
163
163
|
|
|
164
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
164
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/install-steps.svg" alt="1. Get REAPER, Claude Code and Node.js. 2. Paste one command. 3. Click Run on mcp_bridge.lua in REAPER." width="100%">
|
|
165
165
|
|
|
166
166
|
### 1 · Get the apps
|
|
167
167
|
|
|
@@ -257,7 +257,7 @@ instead of just giving advice:
|
|
|
257
257
|
| 🔀 **Routing**: sends, buses, sidechains, hardware outputs | 🎹 **MIDI**: write, edit and analyze notes & CC, live MIDI out | ✂️ **Editing**: split, trim, move, fades, takes, stretch markers |
|
|
258
258
|
| 📍 **Arrangement**: markers, regions, tempo map | 〰️ **Automation**: envelopes, points and pooled automation items | 💾 **Project**: save, render, undo/redo, snapshots, REAPER actions |
|
|
259
259
|
|
|
260
|
-
👉 The main tools by area: **[docs/TOOLS.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
260
|
+
👉 The main tools by area: **[docs/TOOLS.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/docs/TOOLS.md)**
|
|
261
261
|
|
|
262
262
|
### 🎸 Genre-aware out of the box
|
|
263
263
|
|
|
@@ -279,7 +279,7 @@ isn't a knob: a synth's **wavetables**, its **modulation matrix**, a guitar rig'
|
|
|
279
279
|
file**. **Extensions** reach that. They're small add-ons you switch on, and you can have
|
|
280
280
|
Claude build one for the plugin *you* use.
|
|
281
281
|
|
|
282
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
282
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/extensions.svg" alt="Extensions plug into reaper-mcp through a small versioned API: the core on the left, and the Vital, Helix and your-own extensions on the right." width="100%">
|
|
283
283
|
|
|
284
284
|
> 🎹 *"On the Vital on track 2, route LFO 2 to the filter cutoff at 40% and make it a slow triangle."*
|
|
285
285
|
>
|
|
@@ -305,7 +305,7 @@ reaper-mcp extension list # what's installed, and why one can't load
|
|
|
305
305
|
- 🛡️ **A broken extension is skipped**, never a crash, and `reaper-mcp doctor` tells you why.
|
|
306
306
|
- 🧪 **Proven live.** `/new-extension` doesn't finish until the edit shows up in the plugin *and* in the audio.
|
|
307
307
|
|
|
308
|
-
📖 Full guide (the API, Lua handlers, testing, sharing, troubleshooting): **[docs/EXTENSIONS.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
308
|
+
📖 Full guide (the API, Lua handlers, testing, sharing, troubleshooting): **[docs/EXTENSIONS.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/docs/EXTENSIONS.md)**
|
|
309
309
|
|
|
310
310
|
---
|
|
311
311
|
|
|
@@ -321,7 +321,7 @@ reaper-mcp extension list # what's installed, and why one can't load
|
|
|
321
321
|
- 📊 **Bridge status window.** See every action as it happens, with timing and errors,
|
|
322
322
|
in a small window next to REAPER ([see what it shows](#-see-what-your-agent-is-doing)).
|
|
323
323
|
|
|
324
|
-
📖 What it can and can't do to a session, and what isn't covered: **[docs/SAFETY.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
324
|
+
📖 What it can and can't do to a session, and what isn't covered: **[docs/SAFETY.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/docs/SAFETY.md)**.
|
|
325
325
|
|
|
326
326
|
---
|
|
327
327
|
|
|
@@ -331,7 +331,7 @@ You shouldn't have to take its word for it. The **bridge window** opens next to
|
|
|
331
331
|
logs every move the agent makes, as it happens: what it did, how long it took and anything
|
|
332
332
|
that went wrong. With several Claude sessions connected, you can see which one did what.
|
|
333
333
|
|
|
334
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
334
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/bridge-status.png" alt="The MCP Bridge status window: uptime, command count, errors, latency, a commands-per-minute timeline, and a live log of tool calls such as read_track_spectrum, set_track_property and snapshot_save, tagged by session." width="100%">
|
|
335
335
|
|
|
336
336
|
<sub>Demo data. Add <code>?demo</code> to the window's address to explore it without REAPER.</sub>
|
|
337
337
|
|
|
@@ -341,7 +341,7 @@ Every call opens a drawer in plain words (*"midnight-drive wrote new points into
|
|
|
341
341
|
automation on track 5"*) with a picture of the change: **before → after** for edits, a
|
|
342
342
|
readout against your target for measurements.
|
|
343
343
|
|
|
344
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
344
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/bridge-drawer.png" alt="The bridge window with a call open in the drawer: Write automation, with a volume envelope drawn before and after, and the params the agent sent." width="100%">
|
|
345
345
|
|
|
346
346
|
### 📈 What it measured
|
|
347
347
|
|
|
@@ -349,14 +349,14 @@ readout against your target for measurements.
|
|
|
349
349
|
<tr>
|
|
350
350
|
<td width="50%" valign="top">
|
|
351
351
|
|
|
352
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
352
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/spectrum.png" alt="The spectrum view: third-octave bands from 25 Hz to 16 kHz as bars, hot bands in amber." width="100%">
|
|
353
353
|
|
|
354
354
|
**Spectrum**<br><sub>Where the energy sits, band by band, judged by perceived loudness. Hot bands turn amber.</sub>
|
|
355
355
|
|
|
356
356
|
</td>
|
|
357
357
|
<td width="50%" valign="top">
|
|
358
358
|
|
|
359
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
359
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/loudness.png" alt="The loudness view: integrated LUFS against a target range on a scale, with short-term, momentary and true peak readouts and the change since the previous call." width="100%">
|
|
360
360
|
|
|
361
361
|
**Loudness**<br><sub>LUFS against your target, true peak, and how it moved since the last measurement.</sub>
|
|
362
362
|
|
|
@@ -365,14 +365,14 @@ readout against your target for measurements.
|
|
|
365
365
|
<tr>
|
|
366
366
|
<td width="50%" valign="top">
|
|
367
367
|
|
|
368
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
368
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/loudness-curve.png" alt="The loudness curve view: short-term loudness over the length of a song against a target line, with the spans over target shaded." width="100%">
|
|
369
369
|
|
|
370
370
|
**Loudness over time**<br><sub>The whole song's loudness, with the stretches that run over target shaded.</sub>
|
|
371
371
|
|
|
372
372
|
</td>
|
|
373
373
|
<td width="50%" valign="top">
|
|
374
374
|
|
|
375
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
375
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/masking.png" alt="The masking view: a heat map of track pairs against frequency bands, with the worst conflicts and which track to cut." width="100%">
|
|
376
376
|
|
|
377
377
|
**Masking**<br><sub>Which tracks fight, at which frequency, and which one should give way.</sub>
|
|
378
378
|
|
|
@@ -381,14 +381,14 @@ readout against your target for measurements.
|
|
|
381
381
|
<tr>
|
|
382
382
|
<td width="50%" valign="top">
|
|
383
383
|
|
|
384
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
384
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/stereo-bands.png" alt="The stereo view: correlation per frequency band on a minus one to plus one scale." width="100%">
|
|
385
385
|
|
|
386
386
|
**Stereo, per band**<br><sub>Phase correlation per band. Catches a wide or out-of-phase low end before it hurts.</sub>
|
|
387
387
|
|
|
388
388
|
</td>
|
|
389
389
|
<td width="50%" valign="top">
|
|
390
390
|
|
|
391
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
391
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/waveform.png" alt="The waveform view: a rendered track drawn on a decibel scale with its peak, RMS and clipped sample count." width="100%">
|
|
392
392
|
|
|
393
393
|
**Waveform**<br><sub>What a rendered track really looks like, with clipping counted.</sub>
|
|
394
394
|
|
|
@@ -404,14 +404,14 @@ Every edit is drawn **before → after**: new in blue, old dashed or ghosted, re
|
|
|
404
404
|
<tr>
|
|
405
405
|
<td width="50%" valign="top">
|
|
406
406
|
|
|
407
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
407
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/mixer.png" alt="The mixer view: every track as a fader with its level in dB, pan, and mute, solo and arm badges, grouped by folder." width="100%">
|
|
408
408
|
|
|
409
409
|
**Mixer**<br><sub>The session as a mixer: folders, levels, pans, mute, solo and arm.</sub>
|
|
410
410
|
|
|
411
411
|
</td>
|
|
412
412
|
<td width="50%" valign="top">
|
|
413
413
|
|
|
414
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
414
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/routing.png" alt="The routing view: a signal-flow diagram of a track's sends, receives and hardware outputs, with added, changed and removed routes marked." width="100%">
|
|
415
415
|
|
|
416
416
|
**Routing**<br><sub>Sends, receives and outputs as signal flow. Thicker wire means louder.</sub>
|
|
417
417
|
|
|
@@ -420,14 +420,14 @@ Every edit is drawn **before → after**: new in blue, old dashed or ghosted, re
|
|
|
420
420
|
<tr>
|
|
421
421
|
<td width="50%" valign="top">
|
|
422
422
|
|
|
423
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
423
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/automation.png" alt="The automation view: a volume envelope with pooled automation items drawn as blocks tinted by pool." width="100%">
|
|
424
424
|
|
|
425
425
|
**Automation**<br><sub>Envelope points and pooled automation items, before and after.</sub>
|
|
426
426
|
|
|
427
427
|
</td>
|
|
428
428
|
<td width="50%" valign="top">
|
|
429
429
|
|
|
430
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
430
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/piano-roll.png" alt="The piano roll view: added notes in blue, unchanged notes in grey, removed notes dashed, and a velocity lane." width="100%">
|
|
431
431
|
|
|
432
432
|
**Piano roll**<br><sub>MIDI edits as a piano roll: added, kept and removed notes, with velocity.</sub>
|
|
433
433
|
|
|
@@ -436,14 +436,14 @@ Every edit is drawn **before → after**: new in blue, old dashed or ghosted, re
|
|
|
436
436
|
<tr>
|
|
437
437
|
<td width="50%" valign="top">
|
|
438
438
|
|
|
439
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
439
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/pins.png" alt="The plugin pins view: track channels wired into a compressor's input pins, with a newly connected sidechain highlighted." width="100%">
|
|
440
440
|
|
|
441
441
|
**Plugin pins**<br><sub>Which track channels feed which plugin pins. Here, a sidechain just got wired in.</sub>
|
|
442
442
|
|
|
443
443
|
</td>
|
|
444
444
|
<td width="50%" valign="top">
|
|
445
445
|
|
|
446
|
-
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.
|
|
446
|
+
<img src="https://raw.githubusercontent.com/mthines/reaper-mcp/v0.78.0-beta.92.2/docs/assets/views/render.png" alt="The render view: three rendered versions of a song with a waveform, LUFS, peak and length for each, against a loudness target." width="100%">
|
|
447
447
|
|
|
448
448
|
**Renders**<br><sub>Every rendered file with its LUFS, peak and length against your target.</sub>
|
|
449
449
|
|
|
@@ -472,7 +472,7 @@ messages, audio or MIDI. I respect your privacy 🙏
|
|
|
472
472
|
|
|
473
473
|
You're in control: setup asks before anything is sent, and `reaper-mcp telemetry off`
|
|
474
474
|
turns it off for good — no hard feelings. Everything that's collected, and where it
|
|
475
|
-
goes, is in [TELEMETRY.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
475
|
+
goes, is in [TELEMETRY.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/TELEMETRY.md).
|
|
476
476
|
|
|
477
477
|
---
|
|
478
478
|
|
|
@@ -506,7 +506,7 @@ explains its reasoning so you can push back.
|
|
|
506
506
|
<br>
|
|
507
507
|
Every edit is a single undo step, and the mix skills snapshot before and after a task. Use
|
|
508
508
|
<code>/critique</code> or read-only mode if you only want advice. Saving a copy of your project
|
|
509
|
-
before a big session never hurts. <a href="https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
509
|
+
before a big session never hurts. <a href="https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/docs/SAFETY.md">What is and isn't guarded</a>.
|
|
510
510
|
</details>
|
|
511
511
|
|
|
512
512
|
<details>
|
|
@@ -514,7 +514,7 @@ before a big session never hurts. <a href="https://github.com/mthines/reaper-mcp
|
|
|
514
514
|
<br>
|
|
515
515
|
Any plugin REAPER can load (VST, VST3, AU, CLAP, JS). It finds what you have installed
|
|
516
516
|
and reaches for the best tool for each job. The ones it already knows are in the
|
|
517
|
-
<a href="https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
517
|
+
<a href="https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/docs/PLUGINS.md">built-in plugin list</a>. When it meets a plugin it doesn't know, it
|
|
518
518
|
researches it, inspects its controls live and saves what it learns to LoreKit. You can
|
|
519
519
|
also teach it one up front with <code>/learn-plugin</code>.
|
|
520
520
|
</details>
|
|
@@ -545,12 +545,12 @@ No. It reads meter values and settings from your running session, not your audio
|
|
|
545
545
|
|
|
546
546
|
## 🛠️ For developers
|
|
547
547
|
|
|
548
|
-
- 📖 **[docs/REFERENCE.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
548
|
+
- 📖 **[docs/REFERENCE.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/docs/REFERENCE.md)**: architecture, install internals, CLI,
|
|
549
549
|
environment variables, telemetry, project structure
|
|
550
|
-
- 🧰 **[docs/TOOLS.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
551
|
-
- 🧩 **[docs/EXTENSIONS.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
552
|
-
- 🧑💻 **[DEVELOPMENT.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
553
|
-
- 🧪 **[docs/TESTING.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.
|
|
550
|
+
- 🧰 **[docs/TOOLS.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/docs/TOOLS.md)**: the main tools by area
|
|
551
|
+
- 🧩 **[docs/EXTENSIONS.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/docs/EXTENSIONS.md)**: write, test and share an extension (the API, Lua handlers, Vital and Helix)
|
|
552
|
+
- 🧑💻 **[DEVELOPMENT.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/DEVELOPMENT.md)**: build, test, run from source, MCP Inspector
|
|
553
|
+
- 🧪 **[docs/TESTING.md](https://github.com/mthines/reaper-mcp/blob/v0.78.0-beta.92.2/docs/TESTING.md)**: end-to-end testing guide
|
|
554
554
|
|
|
555
555
|
```
|
|
556
556
|
Claude Code ⇄ MCP server (TypeScript) ⇄ file IPC ⇄ Lua bridge in REAPER ⇄ ReaScript API + JSFX meters
|
package/main.js
CHANGED
|
@@ -674,6 +674,7 @@ async function getBridgeState() {
|
|
|
674
674
|
if (age !== void 0) return { state: age < HEARTBEAT_FRESH_MS ? "connected" : "stale", heartbeatAgeMs: age };
|
|
675
675
|
const resource = getReaperResourcePath();
|
|
676
676
|
if (await exists(join3(resource, "Scripts", "mcp_bridge.lua"))) return { state: "never_started" };
|
|
677
|
+
if (await exists(join3(resource, "Scripts", "reaper-mcp", "MCP Bridge", "mcp_bridge.lua"))) return { state: "never_started" };
|
|
677
678
|
if (await exists(join3(resource, "reaper.ini"))) return { state: "not_installed" };
|
|
678
679
|
return { state: "no_reaper" };
|
|
679
680
|
}
|
|
@@ -694,7 +695,7 @@ function bridgeDownMessage(status, resourcePath = getReaperResourcePath()) {
|
|
|
694
695
|
case "never_started":
|
|
695
696
|
return `${BRIDGE_NOT_RUNNING_PREFIX} the bridge script is installed but has never run in this REAPER. ${START_BRIDGE} Then try again.`;
|
|
696
697
|
case "not_installed":
|
|
697
|
-
return `${BRIDGE_NOT_RUNNING_PREFIX} the bridge script is not installed in REAPER (no Scripts/mcp_bridge.lua in ${resourcePath}). Run in a terminal: reaper-mcp setup. ${START_BRIDGE}`;
|
|
698
|
+
return `${BRIDGE_NOT_RUNNING_PREFIX} the bridge script is not installed in REAPER (no Scripts/mcp_bridge.lua in ${resourcePath}). Run in a terminal: reaper-mcp setup (or install the reaper-mcp packages from ReaPack). ${START_BRIDGE}`;
|
|
698
699
|
case "no_reaper":
|
|
699
700
|
return `${BRIDGE_NOT_RUNNING_PREFIX} no REAPER settings in ${resourcePath}: REAPER is not installed there or has never been started. Start REAPER once (or set REAPER_RESOURCE_PATH to the folder REAPER shows under Options \u2192 Show REAPER resource path in explorer/finder), then run in a terminal: reaper-mcp setup. ${START_BRIDGE}`;
|
|
700
701
|
}
|
|
@@ -4468,9 +4469,9 @@ var AUTOSTART_BLOCK = [
|
|
|
4468
4469
|
"-- Written by `reaper-mcp setup`. Turn it off in the bridge window: Settings \u2192 Start with REAPER.",
|
|
4469
4470
|
"do",
|
|
4470
4471
|
' local scripts = reaper.GetResourcePath() .. "/Scripts/"',
|
|
4471
|
-
' local bridge = scripts .. "mcp_bridge.lua"',
|
|
4472
|
-
'
|
|
4473
|
-
|
|
4472
|
+
' local bridge = scripts .. "reaper-mcp/MCP Bridge/mcp_bridge.lua"',
|
|
4473
|
+
// ReaPack's copy, kept current by ReaPack
|
|
4474
|
+
' if not reaper.file_exists(bridge) then bridge = scripts .. "mcp_bridge.lua" end',
|
|
4474
4475
|
' if reaper.GetExtState("MCPBridge", "cfg_autostart") ~= "0" and reaper.file_exists(bridge) then',
|
|
4475
4476
|
" local id = reaper.AddRemoveReaScript(true, 0, bridge, true)",
|
|
4476
4477
|
" if id and id > 0 then reaper.Main_OnCommand(id, 0) end",
|
|
@@ -9252,6 +9253,17 @@ async function setup() {
|
|
|
9252
9253
|
const scriptsDir = getReaperScriptsPath();
|
|
9253
9254
|
mkdirSync6(scriptsDir, { recursive: true });
|
|
9254
9255
|
const reaperDir = resolveAssetDir(__dirname2, "reaper");
|
|
9256
|
+
const viaReaPack = existsSync7(join12(scriptsDir, "reaper-mcp", "MCP Bridge", "mcp_bridge.lua"));
|
|
9257
|
+
if (viaReaPack) {
|
|
9258
|
+
console.log("The bridge is installed by ReaPack: leaving its scripts, JSFX and status page to ReaPack.");
|
|
9259
|
+
console.log("Setup only turns on starting with REAPER and the web interface.\n");
|
|
9260
|
+
installBridgeAutostart(scriptsDir);
|
|
9261
|
+
const port = await enableWebInterface();
|
|
9262
|
+
console.log("\nSetup complete!\n");
|
|
9263
|
+
console.log("Restart REAPER (or run the bridge once from the Action List) and add reaper-mcp to Claude Code: reaper-mcp doctor");
|
|
9264
|
+
if (port) console.log(`The bridge opens its status window on start: http://localhost:${port}/${BRIDGE_UI_FILE}`);
|
|
9265
|
+
return;
|
|
9266
|
+
}
|
|
9255
9267
|
console.log("Installing Lua scripts...");
|
|
9256
9268
|
for (const asset of REAPER_ASSETS) {
|
|
9257
9269
|
if (!asset.endsWith(".lua")) continue;
|
package/package.json
CHANGED
package/reaper/mcp_bridge.lua
CHANGED
|
@@ -728,6 +728,13 @@ function handlers.add_fx(params)
|
|
|
728
728
|
instantiate = -1000 - math.floor(params.position)
|
|
729
729
|
end
|
|
730
730
|
|
|
731
|
+
-- ReaPack installs the JSFX under Effects/reaper-mcp/Meters/ (see ensure_jsfx_on_track)
|
|
732
|
+
local jsfx_base = fx_name:match("^[%w%s]*:?%s*reaper%-mcp/([%w_]+)$")
|
|
733
|
+
if jsfx_base and not file_exists(reaper.GetResourcePath() .. "/Effects/reaper-mcp/" .. jsfx_base .. ".jsfx")
|
|
734
|
+
and file_exists(reaper.GetResourcePath() .. "/Effects/reaper-mcp/Meters/" .. jsfx_base .. ".jsfx") then
|
|
735
|
+
fx_name = fx_name:gsub("reaper%-mcp/", "reaper-mcp/Meters/", 1)
|
|
736
|
+
end
|
|
737
|
+
|
|
731
738
|
reaper.Undo_BeginBlock()
|
|
732
739
|
local fx_idx = reaper.TrackFX_AddByName(track, fx_name, false, instantiate)
|
|
733
740
|
if fx_idx < 0 then
|