stop_project
Halt the execution of the currently active Godot project using this tool, ensuring controlled project management within the Godot MCP server environment.
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 handler function that executes the stop_project tool. It terminates the active Godot process by calling kill() on it, captures the output and errors, clears the activeProcess state, and returns a success message with the final logs.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:710-717 (registration)Tool registration in the listTools handler, defining the name, description, and input schema (no parameters required).{ name: 'stop_project', description: 'Stop the currently running Godot project', inputSchema: { type: 'object', properties: {}, required: [], },
- src/index.ts:940-941 (registration)Dispatch in the CallToolRequestSchema handler that routes calls to the stop_project tool to its handler function.case 'stop_project': return await this.handleStopProject();