Skip to main content
Glama

sc_quit

Stop the SuperCollider audio server and release all audio resources to clean up the audio synthesis environment.

Instructions

Quit the SuperCollider audio server and clean up resources.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler for the sc_quit tool. It checks if the SuperCollider server is booted, calls scServer.quit() to shut it down, resets the synthDefsLoaded flag, and returns a success message.
    case 'sc_quit': { if (!scServer.getBooted()) { return { content: [{ type: 'text', text: 'SuperCollider server is not running' }], }; } await scServer.quit(); synthDefsLoaded = false; return { content: [{ type: 'text', text: 'SuperCollider server quit successfully' }], }; }
  • src/index.ts:52-59 (registration)
    Registration of the sc_quit tool in the tools array, including name, description, and empty input schema (no parameters required). This is used by the ListTools handler.
    { name: 'sc_quit', description: 'Quit the SuperCollider audio server and clean up resources.', inputSchema: { type: 'object', properties: {}, }, },
  • The SuperColliderServer.quit() method, which implements the core quitting logic by executing 'Server.default.quit;' via sclang and then killing the process. Called by the tool handler.
    async quit(): Promise<void> { if (!this.isBooted || !this.sclangProcess) { throw new Error('SuperCollider server is not running'); } return new Promise((resolve) => { // Gracefully quit the server first this.executeCode('Server.default.quit;').then(() => { setTimeout(() => { this.sclangProcess?.kill(); this.isBooted = false; resolve(); }, 500); }); }); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BradA1878/mcp-wave'

If you have feedback or need assistance with the MCP directory API, please join our Discord server