sc_status
Check SuperCollider server status including running state and CPU usage to monitor audio synthesis performance.
Instructions
Get the current status of the SuperCollider server (running, CPU usage, etc.)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:281-291 (handler)Handler for the 'sc_status' tool. Calls scServer.getServerStatus() and returns the status as formatted JSON text response.case 'sc_status': { const status = await scServer.getServerStatus(); return { content: [ { type: 'text', text: JSON.stringify(status, null, 2), }, ], }; }
- src/index.ts:60-67 (schema)Tool schema definition for 'sc_status', including name, description, and empty input schema (no parameters required).{ name: 'sc_status', description: 'Get the current status of the SuperCollider server (running, CPU usage, etc.)', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:200-202 (registration)Registration of all tools (including 'sc_status') via the ListToolsRequestHandler, exposing the tools array.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools, }));
- src/supercollider.ts:191-214 (helper)Helper method getServerStatus() on SuperColliderServer class, queried by the tool handler to get server status (simplified implementation).async getServerStatus(): Promise<{ running: boolean; avgCPU?: number; peakCPU?: number; numUGens?: number; numSynths?: number; numGroups?: number; numSynthDefs?: number; }> { if (!this.isBooted) { return { running: false }; } try { await this.executeCode('Server.default.queryAllNodes;'); return { running: true, // Note: Getting real-time stats requires OSC monitoring // This is a simplified version }; } catch (error) { return { running: false }; } }