Skip to main content
Glama
Waveform MCP Server

Waveform MCP Server

by romanbelaire
README.md
# Waveform MCP Server

Local, safety-first MCP server for inspecting saved Tracktion Waveform 13 edits. Version `0.1.0` detects Waveform, lists `.tracktionedit` files, validates paths, and reports saved tracks/plugins/tempo. It can also generate a native diagnostic macro, but never imports or runs it automatically.

It also includes a separate, deliberately constrained Tracktion Engine headless worker under `native/`. It is not a replacement for the Waveform application; it currently renders whole saved edits to new WAV files through Tracktion Engine.

## Setup

```powershell
npm install
npm run build
```

Configure the MCP client to run the built entry point from its local clone:

```text
node <path-to-waveform-mcp>\dist\index.js
```

Optional environment variables:

- `WAVEFORM_PROJECT_ROOT` — defaults to `C:\Users\roman\Documents\waveform`
- `WAVEFORM_EXECUTABLE` — overrides automatic Waveform 13 executable discovery
- `WAVEFORM_MACRO_OUTPUT_ROOT` — defaults to `generated-macros` in the current working directory
- `WAVEFORM_CHECKPOINT_ROOT` — defaults to `checkpoints` in the current working directory
- `TRACKTION_ENGINE_SOURCE` — defaults to `tracktion_engine_source` in this project
- `WAVEFORM_HEADLESS_WORKER` — path to a built `waveform-headless.exe`
- `WAVEFORM_RENDER_OUTPUT_ROOT` — defaults to `headless-renders` in this project; headless renders can only target a new `.wav` file there

## Safety model

- Only reads `.tracktionedit` files inside `WAVEFORM_PROJECT_ROOT`.
- Does not launch, control, save, or alter Waveform.
- Project snapshots reflect saved files only; unsaved Waveform changes are explicitly excluded.

## Implemented tools

- `waveform_get_status`
- `waveform_list_projects`
- `waveform_validate_edit_path`
- `waveform_get_project_snapshot`
- `waveform_create_selection_diagnostic_macro`
- `waveform_create_reset_mute_solo_macro` — generates, but never runs, a documented mix-state reset macro
- `waveform_plan_track_gain` — plan-only; it cannot apply the change yet
- `waveform_create_checkpoint` — copies only an unchanged, revision-verified saved edit
- `waveform_headless_get_capabilities` — reports whether the offline Tracktion Engine companion is buildable or ready; it never launches it
- `waveform_headless_inspect` — loads a saved edit in Engine examining mode without plug-ins
- `waveform_headless_preflight_wav` — validates a new WAV output and referenced system-VST3 plug-ins without rendering
- `waveform_headless_render_wav` — explicit, revision-bound new-file-only render; requires `confirm_output_write: true`

## Headless companion

The headless worker is a separate native process so it can contain audio-device and plug-in crashes without taking down the MCP server. It supports capability checks, inspection, VST3-aware preflight, and whole-edit new-file-only WAV rendering. Read [the headless workflow](docs/HEADLESS_WORKFLOW.md) and [agent skill](SKILL.md) before operating or extending it.

To prepare a native build on Windows:

```powershell
git -C tracktion_engine_source submodule update --init --recursive
# Install Visual Studio 2022 Build Tools: Desktop development with C++ + CMake/Ninja.
cmake -S native -B native/build -DTRACKTION_ENGINE_SOURCE="$PWD/tracktion_engine_source"
cmake --build native/build --config Release
```

For a render that matters, require an unchanged saved-edit revision, a checkpoint, a new output location under a configured render root, and a preflight that fails closed for missing or untrusted external plug-ins. Public Tracktion Engine is GPL/commercial licensed; review that licensing before distributing a compiled companion.

## Batch mastering (local workflow)

For a set of already checkpointed projects, `scripts/master-batch.ps1` runs a **sequential**, non-destructive delivery workflow using a local manifest:

1. render each edit to a new 44.1 kHz / 24-bit WAV with the native Tracktion Engine worker;
2. analyze the render and apply FFmpeg two-pass `loudnorm` targeting −14 LUFS integrated, −1.0 dBTP, and 11 LU LRA;
3. encode a new 320 kbps CBR MP3; and
4. verify the source edit’s SHA-256 against its recorded checkpoint revision.

Outputs are intentionally separate from source projects:

- raw Waveform-engine renders: `headless-renders/`
- mastered WAVs and MP3s: `masters/`

The batch creates missing outputs only; it does not overwrite files, save projects, or alter edits. It is an offline loudness/delivery pass, not an automated artistic mix decision or a claim of byte-for-byte Waveform parity. See [the batch mastering runbook](docs/BATCH_MASTERING.md) before running it.

## Repository notes

This repository intentionally excludes local dependencies, Tracktion Engine source, compiled binaries, checkpoints, generated macros, and audio renders. A clone requires its own licensed/local Tracktion and plug-in setup, plus FFmpeg for MP3 delivery. Do not commit `.tracktionedit` source projects or rendered audio unless you have the rights and intend to distribute them.

## License

MIT. See [LICENSE](LICENSE).

TDQS

A3.7/5.0

Scored across 12 tools

Disambiguation4/5

Most tools target distinct operations, and the descriptions clearly separate related pairs like preflight versus render and snapshot versus headless inspect. A few boundaries are subtle because multiple tools read the same saved edit, so an agent may need to read descriptions carefully to choose among them.

Naming Consistency5/5

All tools use a consistent waveform_ snake_case prefix followed by predictable verb-led names such as get_status, list_projects, validate_edit_path, create_*_macro, and plan_track_gain. The headless_ namespace is also applied consistently to the Tracktion Engine worker tools.

Tool Count5/5

Twelve tools is well within the appropriate range for a focused DAW automation/readiness server. Each tool appears to cover a distinct part of the workflow: status, discovery, validation, inspection, rendering, macro creation, planning, and checkpointing.

Completeness3/5

The surface covers a strong read-only and planning workflow, but it lacks several lifecycle operations: no way to import/execute generated macros, no apply for the track-gain plan, and no list/restore operation for checkpoints. Some of these omissions are explicitly deliberate, but they still leave notable dead ends for an agent trying to complete changes.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues