stop_project
Stop the currently running Godot project to halt execution and free system resources.
Instructions
Stop the currently running Godot project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1189-1222 (handler)The main handler function for the 'stop_project' tool. It checks if there is an active Godot process, kills it if present, clears the active process reference, and returns the captured output and errors.private async handleStopProject() { if (!this.activeProcess) { return this.createErrorResponse( 'No active Godot process to stop.', [ 'Use run_project to start a Godot project first', 'The process may have already terminated', ] ); } this.logDebug('Stopping active Godot process'); this.activeProcess.process.kill(); const output = this.activeProcess.output; const errors = this.activeProcess.errors; this.activeProcess = null; return { content: [ { type: 'text', text: JSON.stringify( { message: 'Godot project stopped', finalOutput: output, finalErrors: errors, }, null, 2 ), }, ], }; }
- src/index.ts:711-717 (schema)The tool definition including name, description, and empty input schema (no parameters required) for the 'stop_project' tool, registered in the ListToolsRequestSchema handler.name: 'stop_project', description: 'Stop the currently running Godot project', inputSchema: { type: 'object', properties: {}, required: [], },
- src/index.ts:940-941 (registration)The dispatch registration in the CallToolRequestSchema switch statement that routes calls to the 'stop_project' tool to the handleStopProject method.case 'stop_project': return await this.handleStopProject();