@mthines/reaper-mcp 0.71.0 → 0.73.0-beta.80.1

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/main.js CHANGED
@@ -136,6 +136,10 @@ var ALLOWED_SPAN_ATTRIBUTES = /* @__PURE__ */ new Set([
136
136
  "reaper.bridge.handler_ms",
137
137
  "reaper.bridge.pickup_ms",
138
138
  "reaper.bridge.poll_attempts",
139
+ // Whether the bridge answered at startup and, when not, which setup step is missing
140
+ // (a fixed set: connected, stale, never_started, not_installed, no_reaper — never a path)
141
+ "reaper.bridge.connected",
142
+ "reaper.bridge.state",
139
143
  // detect_key / detect_chords: where they read from and how sure they were, never the key or chords
140
144
  "reaper.key.source",
141
145
  "reaper.key.confidence",
@@ -628,15 +632,89 @@ async function ensureBridgeDir() {
628
632
  await mkdir(dir, { recursive: true });
629
633
  return dir;
630
634
  }
635
+ var BRIDGE_NOT_RUNNING_PREFIX = "Bridge not running:";
631
636
  function classifyBridgeError(error7) {
632
637
  if (error7?.startsWith("Timeout:")) return "timeout";
638
+ if (error7?.startsWith(BRIDGE_NOT_RUNNING_PREFIX)) return "bridge_not_running";
633
639
  if (error7?.startsWith("Handler error:")) return "handler_crash";
634
640
  if (error7?.startsWith("Unknown command type")) return "unknown_command";
635
641
  if (error7?.startsWith("Internal error:")) return "internal_error";
636
642
  return "command_failed";
637
643
  }
638
644
  function isSystemError(type) {
639
- return type !== "command_failed";
645
+ return type !== "command_failed" && type !== "bridge_not_running";
646
+ }
647
+ var HEARTBEAT_FRESH_MS = 5e3;
648
+ var BRIDGE_DOWN_AFTER_MS = 6e4;
649
+ async function heartbeatAgeMs() {
650
+ try {
651
+ const info = await stat(join3(getBridgeDir(), "heartbeat.json"));
652
+ return Math.max(0, Date.now() - info.mtimeMs);
653
+ } catch {
654
+ return void 0;
655
+ }
656
+ }
657
+ async function exists(path) {
658
+ try {
659
+ await stat(path);
660
+ return true;
661
+ } catch {
662
+ return false;
663
+ }
664
+ }
665
+ async function getBridgeState() {
666
+ const age = await heartbeatAgeMs();
667
+ if (age !== void 0) return { state: age < HEARTBEAT_FRESH_MS ? "connected" : "stale", heartbeatAgeMs: age };
668
+ const resource = getReaperResourcePath();
669
+ if (await exists(join3(resource, "Scripts", "mcp_bridge.lua"))) return { state: "never_started" };
670
+ if (await exists(join3(resource, "reaper.ini"))) return { state: "not_installed" };
671
+ return { state: "no_reaper" };
672
+ }
673
+ var START_BRIDGE = `Start the bridge: in REAPER, open Actions \u2192 Show action list, select "Script: mcp_bridge.lua" and click Run (the first time, use Load ReaScript\u2026 and pick mcp_bridge.lua from REAPER's Scripts folder). It runs until REAPER closes.`;
674
+ function formatAge(ms) {
675
+ const s = Math.round(ms / 1e3);
676
+ if (s < 120) return `${s} s`;
677
+ const min = Math.round(s / 60);
678
+ if (min < 120) return `${min} min`;
679
+ return `${Math.round(min / 60)} h`;
680
+ }
681
+ function bridgeDownMessage(status, resourcePath = getReaperResourcePath()) {
682
+ switch (status.state) {
683
+ case "connected":
684
+ return "The REAPER bridge is running.";
685
+ case "stale":
686
+ return `${BRIDGE_NOT_RUNNING_PREFIX} REAPER has not answered for ${formatAge(status.heartbeatAgeMs ?? 0)}. If REAPER is open and rendering or showing a dialog, finish or close it and try again: running mcp_bridge.lua while the bridge is only busy stops it. If REAPER is closed, start it and try again. If REAPER is open and idle, the bridge stopped. ${START_BRIDGE} Then try again.`;
687
+ case "never_started":
688
+ return `${BRIDGE_NOT_RUNNING_PREFIX} the bridge script is installed but has never run in this REAPER. ${START_BRIDGE} Then try again.`;
689
+ case "not_installed":
690
+ 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}`;
691
+ case "no_reaper":
692
+ 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}`;
693
+ }
694
+ }
695
+ var inFlight = 0;
696
+ var lastAnswerAt = 0;
697
+ async function bridgeDown() {
698
+ if (inFlight > 0) return void 0;
699
+ if (Date.now() - lastAnswerAt < BRIDGE_DOWN_AFTER_MS) return void 0;
700
+ const status = await getBridgeState();
701
+ if (status.state === "connected") return void 0;
702
+ if (status.state === "stale" && (status.heartbeatAgeMs ?? 0) < BRIDGE_DOWN_AFTER_MS) return void 0;
703
+ if (status.state === "stale" && await otherCommandPending()) return void 0;
704
+ return status;
705
+ }
706
+ var PENDING_COMMAND_MAX_AGE_MS = 15 * 6e4;
707
+ async function otherCommandPending() {
708
+ const dir = getBridgeDir();
709
+ try {
710
+ for (const file of await readdir(dir)) {
711
+ if (!file.startsWith("command_") || !file.endsWith(".json")) continue;
712
+ const info = await stat(join3(dir, file)).catch(() => null);
713
+ if (info && Date.now() - info.mtimeMs < PENDING_COMMAND_MAX_AGE_MS) return true;
714
+ }
715
+ } catch {
716
+ }
717
+ return false;
640
718
  }
641
719
  var NOOP_TRACER = new ProxyTracerProvider().getTracer("noop");
642
720
  var UNTRACED_COMMANDS = /* @__PURE__ */ new Set(["_bridge_diagnostics", "_session", "_log_result"]);
@@ -670,8 +748,26 @@ async function sendCommand(type, params = {}, timeoutMs = DEFAULT_TIMEOUT_MS) {
670
748
  span.end();
671
749
  if (!untraced) getCommandDurationHistogram().record((Date.now() - startMs) / 1e3, attrs);
672
750
  };
751
+ let counted = false;
673
752
  try {
674
753
  if (profiling) t["spanSetup"] = now() - t0;
754
+ const down = await bridgeDown();
755
+ if (down) {
756
+ span.setAttribute("reaper.bridge.state", down.state);
757
+ const message = bridgeDownMessage(down);
758
+ if (!untraced) {
759
+ emitLog(
760
+ "warn",
761
+ `Bridge command ${type} not sent: the bridge is not running (${down.state})`,
762
+ { "rpc.method": type, "error.type": "bridge_not_running", "reaper.bridge.state": down.state },
763
+ { eventName: "reaper.bridge.command.not_sent" }
764
+ );
765
+ }
766
+ finish("bridge_not_running");
767
+ return { id: randomUUID2(), success: false, error: message, timestamp: Date.now() };
768
+ }
769
+ inFlight++;
770
+ counted = true;
675
771
  const tDir = now();
676
772
  const dir = await ensureBridgeDir();
677
773
  if (profiling) t["ensureDir"] = now() - tDir;
@@ -704,6 +800,7 @@ async function sendCommand(type, params = {}, timeoutMs = DEFAULT_TIMEOUT_MS) {
704
800
  const tRead = now();
705
801
  const data = await readFile(responsePath, "utf-8");
706
802
  const response = JSON.parse(data);
803
+ lastAnswerAt = Date.now();
707
804
  if (profiling) t["readParse"] = now() - tRead;
708
805
  if (profiling) t["pollWait"] = now() - tPoll - (t["readParse"] ?? 0);
709
806
  const tCleanup = now();
@@ -793,19 +890,15 @@ async function sendCommand(type, params = {}, timeoutMs = DEFAULT_TIMEOUT_MS) {
793
890
  });
794
891
  finish(errorType);
795
892
  throw err;
893
+ } finally {
894
+ if (counted) inFlight--;
796
895
  }
797
896
  }
798
897
  );
799
898
  }
800
899
  async function isBridgeRunning() {
801
- const dir = getBridgeDir();
802
- const heartbeatPath = join3(dir, "heartbeat.json");
803
- try {
804
- const info = await stat(heartbeatPath);
805
- return Date.now() - info.mtimeMs < 5e3;
806
- } catch {
807
- return false;
808
- }
900
+ const age = await heartbeatAgeMs();
901
+ return age !== void 0 && age < HEARTBEAT_FRESH_MS;
809
902
  }
810
903
  async function cleanupStaleFiles(maxAgeMs = 3e4) {
811
904
  const dir = getBridgeDir();
@@ -4659,7 +4752,7 @@ async function checkPython(pythonBin) {
4659
4752
  } catch {
4660
4753
  const notFound = `Python interpreter not found: ${pythonBin}
4661
4754
  Install Python 3.10+ from https://python.org or set the PYTHON_BIN environment variable.
4662
- Example: PYTHON_BIN=/usr/local/bin/python3.11 node dist/apps/reaper-mcp-server/main.js setup-sidecar`;
4755
+ Example: PYTHON_BIN=/usr/local/bin/python3.11 reaper-mcp setup-sidecar`;
4663
4756
  throw new Error(notFound);
4664
4757
  }
4665
4758
  const version = parsePythonVersion(stdout);
@@ -5016,6 +5109,10 @@ Removed partial venv so the next setup-sidecar run starts clean.`);
5016
5109
  }
5017
5110
  }
5018
5111
 
5112
+ // apps/reaper-mcp-server/src/sidecar-hint.ts
5113
+ var SETUP_SIDECAR_COMMAND = "reaper-mcp setup-sidecar";
5114
+ var SETUP_SIDECAR_HINT = `Run in a terminal: ${SETUP_SIDECAR_COMMAND}`;
5115
+
5019
5116
  // apps/reaper-mcp-server/src/sidecar.ts
5020
5117
  var VENV_BIN2 = platform3() === "win32" ? "Scripts" : "bin";
5021
5118
  var VENV_PYTHON_NAME2 = platform3() === "win32" ? "python.exe" : "python";
@@ -5150,7 +5247,7 @@ var SidecarClientImpl = class {
5150
5247
  async send(method, params, timeoutMs) {
5151
5248
  if (!this.isAvailable()) {
5152
5249
  throw new Error(
5153
- "Audio understanding sidecar not installed. Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar"
5250
+ `Audio understanding sidecar not installed. ${SETUP_SIDECAR_HINT}`
5154
5251
  );
5155
5252
  }
5156
5253
  await this.ensureRunning();
@@ -5306,13 +5403,13 @@ var SidecarClientImpl = class {
5306
5403
  }
5307
5404
  }).catch((err) => {
5308
5405
  for (const [id, { reject }] of this.pending.entries()) {
5309
- reject(new Error(`Sidecar restart failed: ${err.message}. Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar`));
5406
+ reject(new Error(`Sidecar restart failed: ${err.message}. ${SETUP_SIDECAR_HINT}`));
5310
5407
  this.pending.delete(id);
5311
5408
  }
5312
5409
  });
5313
5410
  } else {
5314
5411
  for (const [id, { reject }] of this.pending.entries()) {
5315
- reject(new Error("Python sidecar unavailable after restart attempt. Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar"));
5412
+ reject(new Error(`Python sidecar unavailable after restart attempt. ${SETUP_SIDECAR_HINT}`));
5316
5413
  this.pending.delete(id);
5317
5414
  }
5318
5415
  }
@@ -5496,11 +5593,11 @@ function stemsSummary(name, data) {
5496
5593
  // apps/reaper-mcp-server/src/tools/aesthetics.ts
5497
5594
  var DEFAULT_SCORING_LUFS = -18;
5498
5595
  var DEFAULT_CLIP_SECONDS = 30;
5499
- var SIDECAR_NOT_INSTALLED_MSG = "Audio understanding sidecar not installed. Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar";
5596
+ var SIDECAR_NOT_INSTALLED_MSG = `Audio understanding sidecar not installed. ${SETUP_SIDECAR_HINT}`;
5500
5597
  function registerAestheticsTools(server) {
5501
5598
  server.tool(
5502
5599
  "analyze_track_aesthetics",
5503
- "Analyze the perceptual aesthetic quality of a track's audio using Meta's Audiobox Aesthetics model (CC-BY 4.0). Bounces the track to a temp WAV file (post-FX, post-fader) and runs 4-axis perceptual quality scoring: Production Quality (PQ), Production Complexity (PC), Content Enjoyment (CE), Content Usefulness (CU). Returns scores 0-10. The clip is normalized to normalizeLufs (default -18 LUFS) before scoring, so level differences between versions do not bias the scores (CE rises with level; PQ barely moves). PQ (and partly CU) judge mix changes; PC and CE mostly follow the arrangement, so only compare the same time range. Measured noise: re-rendering the same 30 s clip moves PQ by ~0.05, a 10 s clip by ~0.4; treat smaller differences as no change. Requires the Python sidecar (run: node dist/apps/reaper-mcp-server/main.js setup-sidecar).",
5600
+ "Analyze the perceptual aesthetic quality of a track's audio using Meta's Audiobox Aesthetics model (CC-BY 4.0). Bounces the track to a temp WAV file (post-FX, post-fader) and runs 4-axis perceptual quality scoring: Production Quality (PQ), Production Complexity (PC), Content Enjoyment (CE), Content Usefulness (CU). Returns scores 0-10. The clip is normalized to normalizeLufs (default -18 LUFS) before scoring, so level differences between versions do not bias the scores (CE rises with level; PQ barely moves). PQ (and partly CU) judge mix changes; PC and CE mostly follow the arrangement, so only compare the same time range. Measured noise: re-rendering the same 30 s clip moves PQ by ~0.05, a 10 s clip by ~0.4; treat smaller differences as no change. Requires the Python sidecar (run in a terminal: reaper-mcp setup-sidecar).",
5504
5601
  {
5505
5602
  trackIndex: z27.coerce.number().int().min(-1).describe("Zero-based track index (-1 = master: the whole mix)"),
5506
5603
  startTime: z27.coerce.number().min(0).optional().describe("Start time in seconds (default: 0 or use REAPER time selection)"),
@@ -5582,7 +5679,7 @@ function registerAestheticsTools(server) {
5582
5679
  // apps/reaper-mcp-server/src/tools/offline.ts
5583
5680
  import { z as z28 } from "zod/v4";
5584
5681
  import { basename } from "node:path";
5585
- var SIDECAR_NOT_INSTALLED_MSG2 = "Audio understanding sidecar not installed. Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar";
5682
+ var SIDECAR_NOT_INSTALLED_MSG2 = `Audio understanding sidecar not installed. ${SETUP_SIDECAR_HINT}`;
5586
5683
  var MAX_OFFLINE_SECONDS = 900;
5587
5684
  var DEFAULT_OFFLINE_SECONDS = 30;
5588
5685
  var DEFAULT_ALIGNMENT_SECONDS = 10;
@@ -5828,7 +5925,7 @@ function registerOfflineTools(server) {
5828
5925
  // apps/reaper-mcp-server/src/tools/transients.ts
5829
5926
  import { z as z29 } from "zod/v4";
5830
5927
  import { randomUUID as randomUUID5 } from "node:crypto";
5831
- var SIDECAR_NOT_INSTALLED_MSG3 = "Audio understanding sidecar not installed. Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar";
5928
+ var SIDECAR_NOT_INSTALLED_MSG3 = `Audio understanding sidecar not installed. ${SETUP_SIDECAR_HINT}`;
5832
5929
  var DEFAULT_TRACK_SECONDS = 60;
5833
5930
  var DEFAULT_LIMIT = 200;
5834
5931
  var MAX_AUTOMATION_POINTS = 2e4;
@@ -6124,7 +6221,7 @@ import { z as z30 } from "zod/v4";
6124
6221
  import { homedir as homedir6 } from "node:os";
6125
6222
  import { basename as basename2, extname, join as join7 } from "node:path";
6126
6223
  import { trace as trace5 } from "@opentelemetry/api";
6127
- var SIDECAR_NOT_INSTALLED_MSG4 = "Audio understanding sidecar not installed. Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar";
6224
+ var SIDECAR_NOT_INSTALLED_MSG4 = `Audio understanding sidecar not installed. ${SETUP_SIDECAR_HINT}`;
6128
6225
  var DEFAULT_TRACK_SECONDS2 = 180;
6129
6226
  var SEPARATION_TRACK_SECONDS = 60;
6130
6227
  var MAX_MASKING_SECONDS = 60;
@@ -6402,7 +6499,7 @@ function registerMixcheckTools(server) {
6402
6499
  // apps/reaper-mcp-server/src/tools/mixing.ts
6403
6500
  import { z as z31 } from "zod/v4";
6404
6501
  import { trace as trace6 } from "@opentelemetry/api";
6405
- var SIDECAR_NOT_INSTALLED_MSG5 = "Audio understanding sidecar not installed. Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar";
6502
+ var SIDECAR_NOT_INSTALLED_MSG5 = `Audio understanding sidecar not installed. ${SETUP_SIDECAR_HINT}`;
6406
6503
  var MAX_QUANTIZE_SECONDS = 900;
6407
6504
  var error4 = (text7) => ({ content: [{ type: "text", text: `Error: ${text7}` }], isError: true });
6408
6505
  var ok = (data) => ({ content: [{ type: "text", text: JSON.stringify(data, null, 2) }] });
@@ -6749,7 +6846,7 @@ function buildPairs(guideHits, doubleHits, g, opts) {
6749
6846
  }
6750
6847
 
6751
6848
  // apps/reaper-mcp-server/src/tools/align.ts
6752
- var SIDECAR_NOT_INSTALLED_MSG6 = "Audio understanding sidecar not installed. Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar";
6849
+ var SIDECAR_NOT_INSTALLED_MSG6 = `Audio understanding sidecar not installed. ${SETUP_SIDECAR_HINT}`;
6753
6850
  var MAX_ALIGN_SECONDS = 900;
6754
6851
  var error5 = (text7) => ({ content: [{ type: "text", text: `Error: ${text7}` }], isError: true });
6755
6852
  var ok2 = (data) => ({ content: [{ type: "text", text: JSON.stringify(data, null, 2) }] });
@@ -7619,7 +7716,7 @@ function registerCompositionTools(server) {
7619
7716
  } else {
7620
7717
  const sidecar = getSidecarClient();
7621
7718
  if (!sidecar.isAvailable()) {
7622
- return fail4("Audio key detection needs the Python sidecar. Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar");
7719
+ return fail4(`Audio key detection needs the Python sidecar. ${SETUP_SIDECAR_HINT}`);
7623
7720
  }
7624
7721
  if (path != null) {
7625
7722
  const c = await sidecar.chroma({ path, ...start > 0 ? { startTime: start } : {}, ...args.endTime != null ? { endTime: args.endTime } : {} });
@@ -7716,7 +7813,7 @@ function registerCompositionTools(server) {
7716
7813
  let engine = "template";
7717
7814
  let modelMissing = false;
7718
7815
  const sidecar = getSidecarClient();
7719
- const needSidecar = () => fail4("Audio chord detection needs the Python sidecar. Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar");
7816
+ const needSidecar = () => fail4(`Audio chord detection needs the Python sidecar. ${SETUP_SIDECAR_HINT}`);
7720
7817
  const useModel = async () => {
7721
7818
  if (engineArg === "template") return false;
7722
7819
  const status = await Promise.resolve().then(() => sidecar.chordsStatus()).catch(() => ({ installed: false, message: "The chord model is not installed. Run: reaper-mcp setup-sidecar --with-chords" }));
@@ -9426,24 +9523,27 @@ async function serve() {
9426
9523
  startupSpan.setAttribute("reaper.bridge.stale_files_cleaned", cleaned);
9427
9524
  log(`Cleaned up ${cleaned} stale bridge files`);
9428
9525
  }
9429
- const bridgeRunning = await tracer.startActiveSpan("check bridge connection", { kind: SpanKind5.INTERNAL }, async (bridgeSpan) => {
9430
- const running = await isBridgeRunning();
9526
+ const bridge = await tracer.startActiveSpan("check bridge connection", { kind: SpanKind5.INTERNAL }, async (bridgeSpan) => {
9527
+ const status = await getBridgeState();
9528
+ const running = status.state === "connected";
9431
9529
  bridgeSpan.setAttribute("reaper.bridge.connected", running);
9530
+ bridgeSpan.setAttribute("reaper.bridge.state", status.state);
9432
9531
  if (!running) {
9433
- emitLog("warn", "Lua bridge not detected at startup \u2014 commands will time out until it is started", {
9434
- "reaper.bridge.connected": false
9532
+ emitLog("warn", "Lua bridge not detected at startup \u2014 commands are refused until it is started", {
9533
+ "reaper.bridge.connected": false,
9534
+ "reaper.bridge.state": status.state
9435
9535
  });
9436
- log("WARNING: Lua bridge does not appear to be running in REAPER.");
9437
- log("Commands will timeout until the bridge script is started.");
9438
- log('Run "reaper-mcp setup" for installation instructions.');
9536
+ log(`WARNING: Lua bridge does not appear to be running in REAPER (${status.state}).`);
9537
+ log(bridgeDownMessage(status));
9439
9538
  } else {
9440
9539
  bridgeSpan.setStatus({ code: SpanStatusCode4.OK });
9441
9540
  log("Lua bridge detected \u2014 connected to REAPER");
9442
9541
  }
9443
9542
  bridgeSpan.end();
9444
- return running;
9543
+ return status;
9445
9544
  });
9446
- startupSpan.setAttribute("reaper.bridge.connected", bridgeRunning);
9545
+ startupSpan.setAttribute("reaper.bridge.connected", bridge.state === "connected");
9546
+ startupSpan.setAttribute("reaper.bridge.state", bridge.state);
9447
9547
  const server = createServer();
9448
9548
  for (const ext of await loadExtensions(server)) {
9449
9549
  if (ext.status === "loaded") log(`Extension ${ext.name} ${ext.version ?? ""} loaded (${ext.tools.length} tools)`);
@@ -9514,8 +9614,10 @@ switch (command) {
9514
9614
  break;
9515
9615
  case "status": {
9516
9616
  (async () => {
9517
- const running = await isBridgeRunning();
9518
- console.log(`Bridge status: ${running ? "CONNECTED" : "NOT DETECTED"}`);
9617
+ const status = await getBridgeState();
9618
+ const running = status.state === "connected";
9619
+ console.log(`Bridge status: ${running ? "CONNECTED" : `NOT DETECTED (${status.state})`}`);
9620
+ if (!running) console.log(bridgeDownMessage(status));
9519
9621
  process.exit(running ? 0 : 1);
9520
9622
  })();
9521
9623
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mthines/reaper-mcp",
3
- "version": "0.71.0",
3
+ "version": "0.73.0-beta.80.1",
4
4
  "type": "module",
5
5
  "description": "MCP server for controlling REAPER DAW — real-time mixing, FX control, and frequency analysis for AI agents",
6
6
  "license": "MIT",
package/sidecar/server.py CHANGED
@@ -56,7 +56,7 @@ def _ensure_predictor() -> None:
56
56
  except ImportError as exc:
57
57
  _predictor_error = (
58
58
  f"audiobox-aesthetics not installed: {exc}. "
59
- f"Run: node dist/apps/reaper-mcp-server/main.js setup-sidecar"
59
+ "Run in a terminal: reaper-mcp setup-sidecar"
60
60
  )
61
61
  except Exception as exc: # noqa: BLE001
62
62
  _predictor_error = f"Failed to initialize predictor: {exc}"