Sone MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Sone
English | 简体中文
Sone connects an AI agent to a live SuperCollider session over MCP. It consists of a zero-dependency Quark that runs inside sclang and a standalone TypeScript MCP server.
You can attach Sone to the sclang process already running in scide, vscode-supercollider, scnvim, or scel. If no SuperCollider editor is open, Sone starts a headless sclang process on demand.
Architecture
SuperCollider Quark
The Quark in providers/ScAgent/ uses only the SuperCollider standard library (OSCdef, String.parseJSON, openUDPPort, ServerTree, Sanitize, Limiter, JITLib, History, and BufWr). It requires no external Quarks and no LanguageServer.quark.
ScAgentSafety mounts a tail synth on ServerTree with Sanitize.ar, CheckBadValues, LeakDC, and Limiter.ar set to 0.92. This chain removes NaN values, infinities, DC offset, and overloads from the hardware output, and remounts after CmdPeriod or s.freeAll.
ScAgentCapture records the master bus and up to 8 active Ndef buses into 16-second BufWr ring buffers. Capturing the recent window writes frame-aligned mix.wav and per-voice stem WAV files in under 100 ms.
ScAgentPalette provides an opt-in set of SynthDef instruments (\scWarmSub, \scPluck, \scModal, \scFmPerc, \scGrain, \scKick, \scSnare, \scHat) with ControlSpec metadata and stereo send buses (\fxVerb, \fxDelay, \fxGlue).
MCP server and tools
The server and UI stay under 1,500 lines of TypeScript with 5 runtime dependencies and no vscode, React, or Tailwind imports. The model sees 4 tools:
sc_inspectreads activeNdef,Pdef, andTdefproxies, per-voice 10 Hz audio metrics (peakDb,rmsDb,centroidHz,flatness,onsetsPerSec),ControlSpecranges,SynthDescLibentries,ScaleandTuningdirectories, loaded buffers, andHistory.sc_playvalidates UGen graphs whendryRunistrue, or evaluates quantizedJITLibcode against the running server. Before evaluation, it saves live heap snapshots of existing proxies for rollback.sc_controladjusts proxy parameters withsetorxset, switches named scenes on bar boundaries, changes tempo, stops proxies, runs global or per-voice undo, and triggersCmdPeriodpanic.sc_capturewrites alignedmix.wavand stem WAV files from the recent ring buffer or the next bars for tools such as Agent-Listening-CLI andgemini-api. It also renders aPdefoffline withPattern.asScoreor exports the live session as standalone SuperCollider code.
Human locks and UI strip
The Node process stores the live or read-only mode and the list of locked proxies outside sclang. Only the app-only tool sc_ui_authority can change those values, and the model cannot see or call it.
A single-file MCP App in ui/live-strip.ts (under 200 lines) renders active proxies, audio metrics, lock buttons, undo buttons, and a panic button at ui://sc-live/strip.html.
When sc_play runs while voices are locked, Sone snapshots the locked proxies before evaluation and checks their state after evaluation. If evaluated code alters, frees, or pauses a locked voice, Sone restores the snapshot and returns LOCK_VIOLATION.
Skills and workspace files
Sone serves skills/sc-live/SKILL.md through the SEP-2640 skills extension (skills/list, skills/get, and skill://sc-live/SKILL.md) and plugin.json. Audio captures write to a rotating temporary directory under os.tmpdir(). Sone writes no files to the user workspace.
Related MCP server: supercollider-mcp
Quick start
Sone requires Node.js 20 or later and SuperCollider (tested on 3.14.1).
npm install
npm run compile
# Start the stdio MCP server. It attaches to a running ScAgent or spawns headless sclang.
node out/bin/sc-mcp.js --stdio
# Start the loopback Streamable HTTP server instead.
node out/bin/sc-mcp.js --http --port 41890
# Print manual ScAgent.quark setup steps without changing your global SuperCollider config.
node out/bin/sc-mcp.js install-quark --dry-runAttaching to an editor
Add
providers/ScAgentto your SuperColliderincludePaths, or evaluateQuarks.install("/path/to/sone/providers/ScAgent");.Run
ScAgent.start;insidescide,vscode-supercollider,scnvim, orscel.Start Sone from your agent client. Sone reads
~/.sc-live/active.jsonand attaches to thatsclangprocess, so editor evaluation andsc_playshare the sameNdefproxies,TempoClock, andHistory.
Verification
npm run typecheck # TypeScript check for server and UI
npm run lint # Zero-warning ESLint and import boundary checks
npm run compile # Compile TypeScript and bundle the single-file Live Strip HTML
npm test # Budget invariants, OSC, MCP protocol, SEP-2640, and Live Strip UI tests
npm run test:native # Real sclang and scsynth adversarial tests and live musical benchmarksLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Autonomous music production for AI agents with MIDI generation, QC and provenance.
Read and edit DAW projects as an agent, save native Logic projects, convert projects between DAWs
Remote MCP server for audio stem separation, denoise, reverb, and MIDI export.
Connect AI assistants to your Mac and Linux computers with scoped access to local files and tools.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables AI assistants to control SuperCollider audio synthesis via OSC, supporting melody, rhythm, and soundscape generation through MCP tools.1342 PyPI30MIT
- AlicenseNot gradedqualityCmaintenanceConnects Claude Code to SuperCollider for AI-driven music composition, supporting real-time playback and non-realtime audio rendering at 50-150x realtime speed.MIT
- AlicenseNot gradedqualityDmaintenanceConnects AI clients to Ableton Live 12, enabling deep control and editing of live sets, sound search, listening/evaluation, and version exploration through MCP tools.Business Source 1.1
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to connect to Ableton Live, inspect the arrangement, compose and edit MIDI, manage tracks/scenes/clips, insert and tweak devices, and control the mixer.MIT