surge-xt-mcp 0.2.0__tar.gz

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.
Files changed (60) hide show
  1. surge_xt_mcp-0.2.0/.env.example +27 -0
  2. surge_xt_mcp-0.2.0/.gitattributes +3 -0
  3. surge_xt_mcp-0.2.0/.github/ISSUE_TEMPLATE/bug_report.md +20 -0
  4. surge_xt_mcp-0.2.0/.github/ISSUE_TEMPLATE/feature_request.md +11 -0
  5. surge_xt_mcp-0.2.0/.github/dependabot.yml +16 -0
  6. surge_xt_mcp-0.2.0/.github/pull_request_template.md +11 -0
  7. surge_xt_mcp-0.2.0/.github/workflows/ci.yml +50 -0
  8. surge_xt_mcp-0.2.0/.github/workflows/release.yml +73 -0
  9. surge_xt_mcp-0.2.0/.gitignore +26 -0
  10. surge_xt_mcp-0.2.0/AGENTS.md +22 -0
  11. surge_xt_mcp-0.2.0/CHANGELOG.md +113 -0
  12. surge_xt_mcp-0.2.0/CLAUDE.md +3 -0
  13. surge_xt_mcp-0.2.0/CONTRIBUTING.md +53 -0
  14. surge_xt_mcp-0.2.0/LICENSE +21 -0
  15. surge_xt_mcp-0.2.0/NOTICE +12 -0
  16. surge_xt_mcp-0.2.0/PKG-INFO +508 -0
  17. surge_xt_mcp-0.2.0/PLAN.md +1520 -0
  18. surge_xt_mcp-0.2.0/PROJECT_BRIEF.md +85 -0
  19. surge_xt_mcp-0.2.0/README.md +469 -0
  20. surge_xt_mcp-0.2.0/SECURITY.md +18 -0
  21. surge_xt_mcp-0.2.0/assets/banner.png +0 -0
  22. surge_xt_mcp-0.2.0/assets/banner.svg +60 -0
  23. surge_xt_mcp-0.2.0/assets/social-preview.png +0 -0
  24. surge_xt_mcp-0.2.0/assets/workflow.svg +85 -0
  25. surge_xt_mcp-0.2.0/docs/OSC.md +93 -0
  26. surge_xt_mcp-0.2.0/docs/verification/context.json +11 -0
  27. surge_xt_mcp-0.2.0/docs/verification/instrument-controls.md +51 -0
  28. surge_xt_mcp-0.2.0/docs/verification/night-relay.md +27 -0
  29. surge_xt_mcp-0.2.0/docs/verification/readiness.md +31 -0
  30. surge_xt_mcp-0.2.0/docs/verification/release-0.2.0.md +80 -0
  31. surge_xt_mcp-0.2.0/docs/verification/release-drills.md +89 -0
  32. surge_xt_mcp-0.2.0/docs/verification/results.md +39 -0
  33. surge_xt_mcp-0.2.0/docs/verification/save-regression.md +51 -0
  34. surge_xt_mcp-0.2.0/docs/verification/ship-review.md +39 -0
  35. surge_xt_mcp-0.2.0/docs/verification/tuning-regression.md +19 -0
  36. surge_xt_mcp-0.2.0/docs/verification/voice-id-drill.md +20 -0
  37. surge_xt_mcp-0.2.0/examples/claude_desktop_config.json +12 -0
  38. surge_xt_mcp-0.2.0/examples/cursor_mcp.json +12 -0
  39. surge_xt_mcp-0.2.0/examples/vscode_mcp.json +13 -0
  40. surge_xt_mcp-0.2.0/pyproject.toml +96 -0
  41. surge_xt_mcp-0.2.0/src/surge_xt_mcp/__init__.py +6 -0
  42. surge_xt_mcp-0.2.0/src/surge_xt_mcp/__main__.py +6 -0
  43. surge_xt_mcp-0.2.0/src/surge_xt_mcp/catalog.py +896 -0
  44. surge_xt_mcp-0.2.0/src/surge_xt_mcp/config.py +81 -0
  45. surge_xt_mcp-0.2.0/src/surge_xt_mcp/osc_client.py +451 -0
  46. surge_xt_mcp-0.2.0/src/surge_xt_mcp/patches.py +389 -0
  47. surge_xt_mcp-0.2.0/src/surge_xt_mcp/performance.py +240 -0
  48. surge_xt_mcp-0.2.0/src/surge_xt_mcp/recipes.py +691 -0
  49. surge_xt_mcp-0.2.0/src/surge_xt_mcp/render.py +184 -0
  50. surge_xt_mcp-0.2.0/src/surge_xt_mcp/server.py +2479 -0
  51. surge_xt_mcp-0.2.0/src/surge_xt_mcp/tunings/12-tone-equal.scl +15 -0
  52. surge_xt_mcp-0.2.0/src/surge_xt_mcp/tunings/concert-a440.kbm +8 -0
  53. surge_xt_mcp-0.2.0/tests/native-macos.sh +56 -0
  54. surge_xt_mcp-0.2.0/tests/test_catalog_recipes.py +189 -0
  55. surge_xt_mcp-0.2.0/tests/test_docs.py +111 -0
  56. surge_xt_mcp-0.2.0/tests/test_mcp_workflows.py +738 -0
  57. surge_xt_mcp-0.2.0/tests/test_osc_and_server.py +595 -0
  58. surge_xt_mcp-0.2.0/tests/test_patches_config.py +136 -0
  59. surge_xt_mcp-0.2.0/tests/test_performance_controls.py +798 -0
  60. surge_xt_mcp-0.2.0/uv.lock +1334 -0
@@ -0,0 +1,27 @@
1
+ # Surge XT MCP server configuration (copy to .env if you use a dotenv loader;
2
+ # the server reads these variables directly from the environment).
3
+
4
+ # Host where Surge XT is running (OSC target).
5
+ SURGE_OSC_HOST=127.0.0.1
6
+ # Local IPv4 interface that receives replies. For LAN use specify its LAN IP.
7
+ SURGE_OSC_LISTEN_HOST=127.0.0.1
8
+ # Port Surge XT listens on for OSC input (Surge default: 53280).
9
+ SURGE_OSC_SEND_PORT=53280
10
+ # Port this server listens on for OSC replies from Surge XT (Surge OSC Out port).
11
+ SURGE_OSC_RECV_PORT=53281
12
+ # Seconds to wait for an OSC query reply before reporting Surge XT unreachable.
13
+ SURGE_OSC_TIMEOUT=2.0
14
+ # Seconds to allow asynchronous patch I/O and library refreshes, up to 30.
15
+ SURGE_PATCH_TIMEOUT=15.0
16
+ # Optional: extra patch directories (OS path-list separator separated).
17
+ # SURGE_PATCH_DIRS=
18
+ # Optional factory data root and user Patches folder for portable or redirected installs.
19
+ # SURGE_DATA_DIR=
20
+ # SURGE_USER_PATCH_DIR=
21
+ # Transport: "stdio" (default, for Claude Desktop / Cursor / Claude Code)
22
+ # or "http" (Streamable HTTP for shared/remote use).
23
+ MCP_TRANSPORT=stdio
24
+ MCP_HTTP_HOST=127.0.0.1
25
+ MCP_HTTP_PORT=8000
26
+ # Optional hostname used by clients behind a reverse proxy.
27
+ # MCP_HTTP_PUBLIC_HOST=
@@ -0,0 +1,3 @@
1
+ * text=auto eol=lf
2
+ *.png binary
3
+ *.svg text
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Bug report
3
+ about: Something does not work as documented
4
+ labels: bug
5
+ ---
6
+
7
+ **What happened**
8
+
9
+ **What you expected**
10
+
11
+ **Setup**
12
+ - OS:
13
+ - Python version:
14
+ - Surge XT version (Help → About):
15
+ - MCP client and version (Claude Desktop, Claude Code, Cursor, VS Code, Codex, ...):
16
+ - Server version (`surge-xt-mcp --version`):
17
+ - `surge_doctor` output (paste it):
18
+
19
+ **Steps to reproduce**
20
+ 1.
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: Feature request
3
+ about: A sound, workflow, or control you want the server to support
4
+ labels: enhancement
5
+ ---
6
+
7
+ **The sound or workflow you want**
8
+
9
+ **How you would ask your assistant for it (example prompt)**
10
+
11
+ **Surge XT controls involved (if known)**
@@ -0,0 +1,16 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: pip
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ cooldown:
8
+ default-days: 7
9
+ ignore:
10
+ # The server uses the SDK's v1 FastMCP API. Moving to the v2 MCPServer API is planned work.
11
+ - dependency-name: mcp
12
+ update-types: ["version-update:semver-major"]
13
+ - package-ecosystem: github-actions
14
+ directory: /
15
+ schedule:
16
+ interval: weekly
@@ -0,0 +1,11 @@
1
+ ## What changed
2
+
3
+ ## Why
4
+
5
+ ## Verification
6
+
7
+ - [ ] `uv run pytest` passes
8
+ - [ ] `uv run ruff check src tests` and `uv run ruff format --check src tests` pass
9
+ - [ ] `uv run mypy` passes
10
+ - [ ] Live Surge XT check (if OSC behavior changed): describe what you heard/read back
11
+ - [ ] CHANGELOG.md updated for user-visible changes
@@ -0,0 +1,50 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ test:
13
+ name: py${{ matrix.python }} / ${{ matrix.os }}
14
+ runs-on: ${{ matrix.os }}
15
+ timeout-minutes: 15
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ os: [ubuntu-latest, windows-latest, macos-latest]
20
+ python: ["3.11", "3.12", "3.13", "3.14"]
21
+ steps:
22
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23
+ with:
24
+ persist-credentials: false
25
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
26
+ with:
27
+ python-version: ${{ matrix.python }}
28
+ - name: Install
29
+ run: uv sync --locked --extra dev
30
+ - name: Lint
31
+ run: uv run ruff check src tests
32
+ - name: Format check
33
+ run: uv run ruff format --check src tests
34
+ - name: Typecheck
35
+ run: uv run mypy
36
+ - name: Build and install the distributable wheel
37
+ shell: bash
38
+ run: |
39
+ uv build --no-sources
40
+ uv pip install --no-deps --reinstall-package surge-xt-mcp dist/*.whl
41
+ uv run --no-sync python -I -c "from pathlib import Path; import sysconfig, surge_xt_mcp; assert Path(surge_xt_mcp.__file__).is_relative_to(sysconfig.get_path('purelib'))"
42
+ - name: Test installed package
43
+ run: uv run --no-sync pytest
44
+ - name: Exercise the native Surge XT instrument
45
+ if: matrix.os == 'macos-latest' && matrix.python == '3.12'
46
+ run: bash tests/native-macos.sh
47
+ - name: Audit dependencies
48
+ run: |
49
+ uv export --locked --no-dev --no-emit-project --format requirements-txt -o audit-requirements.txt
50
+ uvx pip-audit --no-deps --disable-pip -r audit-requirements.txt
@@ -0,0 +1,73 @@
1
+ name: Release
2
+
3
+ # Pushing a version tag builds the package, tests the built wheel and publishes
4
+ # a GitHub Release with the wheel, source archive and checksums attached.
5
+ on:
6
+ push:
7
+ tags: ["v*"]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ release:
14
+ name: Build, verify and publish
15
+ runs-on: ubuntu-latest
16
+ timeout-minutes: 15
17
+ permissions:
18
+ contents: write
19
+ steps:
20
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21
+ with:
22
+ persist-credentials: false
23
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
24
+ with:
25
+ python-version: "3.12"
26
+ - name: Check the tag against the package version
27
+ id: version
28
+ shell: bash
29
+ env:
30
+ TAG: ${{ github.ref_name }}
31
+ run: |
32
+ version=$(uv run --no-project python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
33
+ if [[ "$TAG" != "v$version" ]]; then
34
+ echo "Tag $TAG does not match pyproject version $version" >&2
35
+ exit 1
36
+ fi
37
+ grep -q "^## \[$version\]" CHANGELOG.md || { echo "CHANGELOG.md has no [$version] section" >&2; exit 1; }
38
+ echo "version=$version" >> "$GITHUB_OUTPUT"
39
+ if [[ "$version" =~ (a|b|rc)[0-9]+$ ]]; then echo "prerelease=true" >> "$GITHUB_OUTPUT"; else echo "prerelease=false" >> "$GITHUB_OUTPUT"; fi
40
+ - name: Install
41
+ run: uv sync --locked --extra dev
42
+ - name: Build and install the distributable wheel
43
+ shell: bash
44
+ run: |
45
+ uv build --no-sources
46
+ uv pip install --no-deps --reinstall-package surge-xt-mcp dist/*.whl
47
+ uv run --no-sync python -I -c "from pathlib import Path; import sysconfig, surge_xt_mcp; assert Path(surge_xt_mcp.__file__).is_relative_to(sysconfig.get_path('purelib'))"
48
+ - name: Test installed package
49
+ run: uv run --no-sync pytest
50
+ - name: Write checksums and release notes
51
+ shell: bash
52
+ env:
53
+ VERSION: ${{ steps.version.outputs.version }}
54
+ run: |
55
+ (cd dist && sha256sum surge_xt_mcp-* > SHA256SUMS.txt && cat SHA256SUMS.txt)
56
+ # The notes are this version's CHANGELOG section, up to the next heading or link list.
57
+ awk -v version="$VERSION" '
58
+ /^## \[/ { printing = index($0, "## [" version "]") == 1; next }
59
+ /^\[[^]]+\]: / { printing = 0 }
60
+ printing { print }
61
+ ' CHANGELOG.md > release-notes.md
62
+ test -s release-notes.md
63
+ cat release-notes.md
64
+ - name: Publish the GitHub Release
65
+ shell: bash
66
+ env:
67
+ GH_TOKEN: ${{ github.token }}
68
+ TAG: ${{ github.ref_name }}
69
+ PRERELEASE: ${{ steps.version.outputs.prerelease }}
70
+ run: |
71
+ flags=(--title "Surge XT MCP $TAG" --notes-file release-notes.md --verify-tag)
72
+ if [[ "$PRERELEASE" == true ]]; then flags+=(--prerelease); else flags+=(--latest); fi
73
+ gh release create "$TAG" dist/surge_xt_mcp-* dist/SHA256SUMS.txt "${flags[@]}"
@@ -0,0 +1,26 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ *.so
5
+ .Python
6
+ build/
7
+ dist/
8
+ *.egg-info/
9
+ .eggs/
10
+ .venv/
11
+ venv/
12
+ .env
13
+ *.env
14
+ !.env.example
15
+ .mypy_cache/
16
+ .pytest_cache/
17
+ .ruff_cache/
18
+ htmlcov/
19
+ .coverage
20
+ *.wav
21
+ *.fxp.bak
22
+ .DS_Store
23
+ Thumbs.db
24
+ .idea/
25
+ .vscode/
26
+ *.log
@@ -0,0 +1,22 @@
1
+ # Agent instructions — Surge XT MCP
2
+
3
+ Canonical project rules live here. Other tool adapters (`CLAUDE.md`, Copilot, Cursor) point here instead of copying policy.
4
+
5
+ ## Contract
6
+
7
+ - Product contract: `PROJECT_BRIEF.md`. Delivery plan and evidence: `PLAN.md`. Never contradict them silently; update the brief when scope changes.
8
+ - This server controls Surge XT **only** through documented OSC (see `docs/OSC.md`). Surge XT source is the authority for addresses; never invent an OSC address without marking it as a curated mapping with the raw-address escape hatch.
9
+ - No silent success: OSC sends pair with readback guidance; unavailable capabilities (surgepy rendering) report why and how to enable them. No fake audio, no mock production data.
10
+
11
+ ## Workflow
12
+
13
+ 1. **Scan → reuse → create.** Search existing modules (`catalog`, `patches`, `recipes`, `osc_client`, `render`) before adding code. Extend the canonical module; do not add parallel helpers.
14
+ 2. Every behavior change ships with a test that can fail: include one negative case (bad note, unknown parameter, out-of-range value, no-reply timeout).
15
+ 3. Run the gates before claiming done: `uv run pytest`, `uv run ruff check src tests`, `uv run ruff format --check src tests`, `uv run mypy`.
16
+ 4. Update `CHANGELOG.md` for user-visible changes and `README.md` only with commands you actually ran.
17
+ 5. Secrets never enter the repo; config comes from environment (see `.env.example`).
18
+
19
+ ## Code standards
20
+
21
+ - Python 3.11+, full type annotations (mypy strict), ruff-clean, named constants instead of unexplained literals, US English in prose and comments.
22
+ - Tool results are structured dicts. Expected failures return `ok: false` with an actionable message; do not raise for user errors.
@@ -0,0 +1,113 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. Format follows
4
+ [Keep a Changelog](https://keepachangelog.com/), versioning follows
5
+ [Semantic Versioning](https://semver.org/).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.2.0] - 2026-11-29
10
+
11
+ First stable release. Tested against Surge XT 1.3.4 on Windows, Linux and macOS with Python 3.11 to 3.14.
12
+
13
+ ### Added
14
+
15
+ - `describe_patch` summarizes the sounding patch in one call: oscillators, mixer, filters, envelopes, active effects with their named controls, macros, modulation routes and the LFOs that drive them, all in Surge XT's display units.
16
+ - `patch_info` reads a patch file's author, comment, category and license offline.
17
+ - Sound recipes for strings, brass, bell, organ and drone join bass, pluck, pad, keys and lead. New modifiers cover glide, mono and poly voicing, wobble, vibrato, noise, short and long shapes, and distortion, chorus, delay and reverb effects.
18
+ - Recipes carry modulation routes. `apply_recipe` accepts them with the steps and confirms each route.
19
+ - `design_sound` names the factory template to start from (`start_patch`).
20
+ - Every tool has a title and read-only, destructive and idempotent hints, so MCP clients can label tools and skip confirmation for read-only ones.
21
+ - The MCP handshake reports this server's version and repository. `surge_status` and `surge_doctor` include `server_version`.
22
+ - `surge-xt-mcp --version` and `--osc-host`.
23
+ - Prompts `find_a_patch` and `sound_check`.
24
+ - The curated catalog grows to 66 controls and lists Surge XT's own names for filter types, filter routings, LFO shapes, FM routings and character.
25
+ - A bounded change feed for GUI and external-controller edits with independent client cursors and long polling, plus exact-address readback monitoring for hosts that omit change broadcasts.
26
+ - Independent held voices, all five per-note expressions, release velocity and beat-based polyphonic playback. Cancellation and patch changes release the affected voices.
27
+ - Category navigation, native user-folder and metadata-named patch saves, individual modulation-route queries, default tuning folder selection and reset, relative tuning loads and concert-pitch restoration.
28
+ - Verified active-algorithm deform controls, legacy OSC text parameter decoding and patch notifications, XDG user-library discovery and a separate timeout for patch I/O.
29
+ - Live parameter discovery, restorable parameter captures, extended switches, effect selection by name or ID and bypass, modulation inspection and verified routing, wavetable selection, Scala library browsing and tuning loads with bounded readback retries.
30
+ - Pitch bend, MIDI CC, aftertouch and frequency audition. Clients can interrupt a melody and cut sounding tails while other tools run.
31
+ - Python 3.14 support. A tag-driven release workflow publishes the wheel, source archive and checksums.
32
+
33
+ ### Changed
34
+
35
+ - Recipes are written in real units. A step says "Cutoff 900 Hz" or "Attack 0.7 s" and Surge XT reads back the same value. Recipe values differ from earlier releases.
36
+ - Recipes set what they rely on: the active scene, the oscillator algorithm, unison voices with detune, the filter type, which oscillators are muted, the LFO shape behind a route and the bypass switch of an effect slot.
37
+ - `design_sound` matches whole words. "subtle", "deep" and "sharp" no longer select the bass, keys and pluck families.
38
+ - `apply_recipe` validates every step before sending. A numbered control that follows an oscillator or effect type chosen earlier in the same recipe is validated once Surge XT confirms the new type.
39
+ - `list_patches` results include the pack (the third-party author folder) and search matches it.
40
+ - Effect names follow the labels Surge XT reports (`Rotary`, `Freq Shift`, `Ring Mod`, `Audio In`). The longer menu names still work.
41
+ - Patch searches support pagination and portable library roots. Loading verifies the reported patch path. Saving checks a fresh complete FXP and requires explicit overwrite for an existing file.
42
+ - Local patch stepping follows the sounding patch's category after saves or file imports. A single-patch category preserves held notes and explains how to switch categories.
43
+ - The OSC collector is bounded and replies are correlated to the active query. Added a configurable LAN reply interface, finite timeouts and CLI diagnostics.
44
+ - Optional native rendering runs isolated from MCP stdio and preserves existing WAVs on failure.
45
+ - The `LICENSE` file is the plain MIT text so license detection works. The Surge XT notice moved to `NOTICE`.
46
+
47
+ ### Fixed
48
+
49
+ - Recipe detune had no effect because unison voices stayed at one. Cutoff and resonance had no effect on Init patches, whose filter is off. Second-oscillator moves were silent while that oscillator was muted. "Wide" narrowed the stereo image, and "dark" closed the filter to 90 Hz.
50
+ - A second MCP client starting its own server could not bind the OSC reply port and stayed broken until restart. The error now names the cause, and the server binds the port on its next call once it is free.
51
+ - `set_effect` rejected four effect names that `list_effects` reported.
52
+ - The MCP handshake reported the SDK version in place of the server version.
53
+ - The 1.3.0 legacy-protocol response is reported with upgrade guidance, and OSC query deadlines include queue time.
54
+
55
+ ## [0.1.0b2] - 2026-11-28
56
+
57
+ ### Fixed
58
+
59
+ - `set_macro` now verifies by polling readback (Surge XT smooths macro
60
+ values, so immediate reads showed stale values) and reports `verified`,
61
+ the observed value, and the display string.
62
+ - `save_patch` and user-relative `load_patch` use absolute paths and
63
+ `save_patch` verifies the .fxp file exists on disk. Surge XT's
64
+ save_user/load_user could glue the file name onto the folder path
65
+ (writing `Patches<Name>.fxp` next to the folder) on some systems.
66
+ - Added a regression test proving verify-after-write confirms fresh values
67
+ and honestly reports stale ones. Full live sweep (all 23 tools plus
68
+ resources and prompts) passes against a running Surge XT.
69
+
70
+ ## [0.1.0b1] - 2026-11-28
71
+
72
+ ### Fixed
73
+
74
+ - Parameter addresses corrected to Surge XT's real OSC scheme
75
+ (`/param/<scene>/<section>/...`, e.g. `/param/a/filter/1/cutoff`), verified
76
+ against a live `/q/all_params` dump (774 parameters). The b0 catalog used
77
+ invented addresses that Surge XT rejected.
78
+ - Wire kinds are now honored: float params are normalized 0.0-1.0, int
79
+ params (oscillator type, play mode, octave, unison voices) take raw
80
+ values, and bools take 0/1. `set_parameter` rejects out-of-kind values
81
+ (e.g. 0.5 for oscillator type) before sending, and discovers kinds for
82
+ raw addresses from Surge XT's `/doc` replies.
83
+ - Modulation source names corrected to Surge XT tags (`vlfo_1`, `aeg`,
84
+ `vel`, `mw`, ...) with per-scene prefixes only where Surge requires them.
85
+ - Writes are verified: `set_parameter`, `apply_recipe`, `set_filter`, and
86
+ `set_envelope` poll Surge XT until it confirms each value and report
87
+ `verified`, the observed value, and Surge's display string. Unconfirmed
88
+ writes report `ok: false` with the last seen state instead of silent
89
+ success (Surge applies OSC sets asynchronously, so naive readbacks lag).
90
+
91
+ ## [0.1.0b0] - 2026-11-28
92
+
93
+ ### Added
94
+
95
+ - MCP server (Python, FastMCP) with stdio and Streamable HTTP transports.
96
+ - Live OSC control for standard Surge XT 1.3+ installs: status/doctor,
97
+ patch load/save/random/step, parameter get/set with display readback,
98
+ filter/envelope/macro helpers, wavetable cycling, modulation routing.
99
+ - English-to-recipe sound design (`design_sound` + `apply_recipe`) with
100
+ transparent, inspectable parameter moves.
101
+ - Offline patch-library browsing across factory, third-party, and user
102
+ patches, plus a curated parameter catalog resource.
103
+ - Audition tools (`play_note`, `play_chord`, `play_melody`, `stop_notes`).
104
+ - Optional headless WAV rendering via surgepy with honest unavailable
105
+ reporting when the bindings are not installed.
106
+ - Professional public-repo setup: README banner/badges, social preview
107
+ artwork, client config examples, CI matrix, issue/PR templates.
108
+
109
+ [Unreleased]: https://github.com/RandyNorthrup/surge-xt-mcp/compare/v0.2.0...HEAD
110
+ [0.2.0]: https://github.com/RandyNorthrup/surge-xt-mcp/releases/tag/v0.2.0
111
+ [0.1.0b2]: https://github.com/RandyNorthrup/surge-xt-mcp/releases/tag/v0.1.0b2
112
+ [0.1.0b1]: https://github.com/RandyNorthrup/surge-xt-mcp/releases/tag/v0.1.0b1
113
+ [0.1.0b0]: https://github.com/RandyNorthrup/surge-xt-mcp/releases/tag/v0.1.0b0
@@ -0,0 +1,3 @@
1
+ # Claude Code
2
+
3
+ Read and follow [`AGENTS.md`](AGENTS.md) — it is the canonical rule file for this project. Product contract: [`PROJECT_BRIEF.md`](PROJECT_BRIEF.md). Delivery plan: [`PLAN.md`](PLAN.md).
@@ -0,0 +1,53 @@
1
+ # Contributing
2
+
3
+ Thanks for helping make Surge XT easier to drive from an AI assistant. Bug reports, new recipe ideas and pull requests are all welcome.
4
+
5
+ ## Set up
6
+
7
+ You need [uv](https://docs.astral.sh/uv/) and Python 3.11 or newer.
8
+
9
+ ```console
10
+ git clone https://github.com/RandyNorthrup/surge-xt-mcp
11
+ cd surge-xt-mcp
12
+ uv sync --locked --extra dev
13
+ ```
14
+
15
+ ## Check your change
16
+
17
+ Run the same gates CI runs.
18
+
19
+ ```console
20
+ uv run pytest
21
+ uv run ruff check src tests
22
+ uv run ruff format --check src tests
23
+ uv run mypy
24
+ ```
25
+
26
+ The default suite needs no synth. It uses real UDP sockets and real MCP clients over stdio and Streamable HTTP.
27
+
28
+ ## Test against a real synth
29
+
30
+ Some tests change patches, tuning and performance state, so they only run when you point them at a **disposable** Surge XT instance. Start a second Surge XT (or `surge-xt-cli`) on its own OSC ports, then:
31
+
32
+ ```console
33
+ SURGE_TEST_DISPOSABLE=1 SURGE_OSC_SEND_PORT=48210 SURGE_OSC_RECV_PORT=48211 uv run pytest tests/test_mcp_workflows.py
34
+ ```
35
+
36
+ Add `SURGE_TEST_SURFACE=1` for the full parameter sweep and every recipe family. Add `SURGE_TEST_RENDER=1` to require a native surgepy render. [Verification notes](docs/verification/release-0.2.0.md) describe what each switch covers.
37
+
38
+ ## Ground rules
39
+
40
+ The project rules live in [`AGENTS.md`](AGENTS.md). The short version:
41
+
42
+ - The server talks to Surge XT only through its documented OSC interface. Check an address against a live synth or the [OSC reference](docs/OSC.md) before you use it.
43
+ - A tool reports what Surge XT confirmed. If something can only be sent, the result says so.
44
+ - Every behavior change comes with a test that can fail, including one case that should be rejected.
45
+ - Update `CHANGELOG.md` for anything a user would notice.
46
+
47
+ ## Recipes
48
+
49
+ Recipes live in [`src/surge_xt_mcp/recipes.py`](src/surge_xt_mcp/recipes.py). Write values in real units (Hz, seconds, cents, dB) and convert them with the helpers at the top of the file. Set everything the sound relies on, such as the filter type and unison voices, and give each step a reason a musician would recognize.
50
+
51
+ ## Releases
52
+
53
+ Maintainers cut a release by updating the version in `pyproject.toml`, the install URLs in `README.md` and `examples/`, and the `CHANGELOG.md` heading, then pushing a `v<version>` tag. The release workflow tests the built wheel and publishes it with checksums.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Randy Northrup
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,12 @@
1
+ Surge XT MCP
2
+ Copyright (c) 2026 Randy Northrup
3
+ Licensed under the MIT License. See LICENSE.
4
+
5
+ Surge XT is free and open source software released under the GNU General
6
+ Public License v3.0 or later (GPL-3.0-or-later) by the Surge Synth Team. This
7
+ MCP server communicates with Surge XT over the Open Sound Control (OSC)
8
+ network protocol. It does not link against, include or redistribute Surge XT
9
+ code, patches, wavetables or tuning files. See
10
+ https://github.com/surge-synthesizer/surge for the Surge XT license.
11
+
12
+ This project is not affiliated with or endorsed by the Surge Synth Team.