Skip to main content
Glama
README.md
# RipX MCP

A local MCP bridge for **RipX DAW PRO**. It inspects the current Rip, counts notes by instrument, and exports stem groups, individual layers, or MIDI. RipX and its RipScript must run on the same computer as the MCP server. This bridge does not start RipX, perform separation, or edit the Rip.

## Setup

1. In RipX DAW PRO, open **Panels → RipScripts**. Use the panel's create-script control, choose **Blank**, and name it `RipX MCP`.
2. In the RipScript Editor, replace the generated code with [`ripscript/run.py`](ripscript/run.py), save, and run it with Command-R on macOS (Ctrl-R on Windows). Run it again when you restart RipX. To upgrade an existing installation, stop its RipScript, replace the code, and run it again.
3. Install Python 3.10+ and this package, for example `python -m pip install .` from this directory.
4. Configure your MCP client with a stdio server command of `ripx-mcp` (use its full path if the client cannot find it). For Codex, add:

   ```toml
   [mcp_servers.ripx]
   command = "/absolute/path/to/ripx-mcp"
   ```

## Tools

- `ripx_status` reports the current Rip and whether the bridge is connected. A snapshot more than 10 seconds old is disconnected.
- `ripx_inspect_layers` queues an inventory of note instrument names and counts. It does not report empty layers, mute or solo states, unpitched material without notes, or stem-group assignments; it is not a complete Layers panel inventory.
- `ripx_export` queues `stems`, `layers`, or `midi` into a **new** absolute directory whose parent already exists. WAV exports are 24-bit, 48 kHz stereo. MIDI uses RipX's simple note export. Optional `start` and `end` in seconds restrict the export to a time range. RipX exports audible layers according to the current mute/solo and stem group settings.
- `ripx_job` reads the state and result of a queued job by ID. Jobs are asynchronous; poll until `complete` or `failed`. Never automatically resubmit a running or uncertain export. RipX checks that the current Rip still has the same name and file path when starting a job. Pending jobs older than 60 seconds fail without running. A job left `running` after RipX quits has an uncertain outcome; inspect its output before deciding what to do.

The bridge creates the destination directory exclusively and never intentionally overwrites an existing destination. A failed or interrupted export can leave partial files in that new directory. Inspect them before removing or retrying. Exports reflect the current project state at execution time; the bridge does not freeze unsaved edits.

The bridge stores status and job receipts, including current Rip names and paths, under `~/.ripx-mcp` with user-only permissions by default. Your MCP client and other processes running as your user can read them. Audio stays local unless your client or other software shares it. Remove old receipts when no longer needed.

Tested on macOS with RipX DAW PRO 9.0.0 using a short real Rip: instrument inspection, stem-group WAV, layer WAV, and simple MIDI exports. Other platforms and versions are untested.

Not affiliated with Hit'n'Mix.