Skip to main content
Glama

sc_quit

Stop the audio synthesis server and release system resources when sound generation is complete.

Instructions

Quit the SuperCollider audio server and clean up resources.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'sc_quit' tool. Checks if the SuperCollider server is booted, quits it using scServer.quit(), resets synthDefsLoaded flag, and returns success or error 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' }], }; }
  • The tool definition including name, description, and input schema (empty object) for 'sc_quit'. This is part of the tools array returned by listTools.
    { name: 'sc_quit', description: 'Quit the SuperCollider audio server and clean up resources.', inputSchema: { type: 'object', properties: {}, }, },
  • src/index.ts:200-202 (registration)
    Registration of the listTools handler that returns the array of all tools, including 'sc_quit'.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools, }));

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