Skip to main content
Glama

get_debug_output

Retrieve current debug output and errors from the Godot game engine via the Model Context Protocol server to monitor project execution and diagnose issues.

Instructions

Get the current debug output and errors

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the tool logic. Returns JSON containing stdout 'output' and stderr 'errors' from the currently running Godot process (set by 'run_project'), or an error if no process is active.
    private async handleGetDebugOutput() { if (!this.activeProcess) { return this.createErrorResponse( 'No active Godot process.', [ 'Use run_project to start a Godot project first', 'Check if the Godot process crashed unexpectedly', ] ); } return { content: [ { type: 'text', text: JSON.stringify( { output: this.activeProcess.output, errors: this.activeProcess.errors, }, null, 2 ), }, ], }; }
  • src/index.ts:702-709 (registration)
    Registration of the tool in the ListToolsRequestSchema handler, defining its name, description, and input schema (no input parameters required).
    name: 'get_debug_output', description: 'Get the current debug output and errors', inputSchema: { type: 'object', properties: {}, required: [], }, },
  • src/index.ts:939-940 (registration)
    Registration of the tool handler in the CallToolRequestSchema switch statement, routing tool calls to the handleGetDebugOutput method.
    return await this.handleGetDebugOutput(); case 'stop_project':
  • Input schema definition for the tool: an empty object with no properties or required fields.
    type: 'object', properties: {}, required: [], },
  • TypeScript interface defining the structure of the active Godot process data (process, output, errors) used by the handler.
    interface GodotProcess { process: any; output: string[]; errors: string[]; }

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/Coding-Solo/godot-mcp'

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