Skip to main content
Glama

Minimal Godot MCP

AGENTS.md1.78 kB
# Agent Guidelines ## Project Vision **See [README.md#vision](README.md#vision) for complete project goals.** **Core mission:** Expose Godot LSP diagnostics to MCP clients for real-time GDScript syntax validation. ## Scope Boundaries ### ✅ In Scope - Retrieve diagnostics from Godot's native LSP (port 6007) - Cache and format diagnostic data for MCP clients - Handle LSP connection lifecycle/reconnection ### ❌ Out of Scope - Project manipulation (nodes/scenes/resources) - Code generation/refactoring - Asset management - Build/export/debugging beyond syntax errors **When evaluating features, refer to [README.md#vision](README.md#vision).** ## Architecture Constraints - Use Godot's **native LSP** - NO custom Godot plugins - Target <200 LOC core implementation - Maintain <10MB memory footprint - Return diagnostics <1s after LSP update ## Implementation Standards - TypeScript strict mode - **NO `any` types** - Minimal dependencies (<5 npm packages) - Self-documenting code > comments - Cache-first diagnostic strategy ## MCP Tool: `get_diagnostics` **Input:** `{ file_path: string }` (absolute path to .gd file) **Output:** ```typescript { diagnostics: Array<{ line: number column: number severity: 'error' | 'warning' | 'info' message: string code?: string }> } ``` **Behavior:** - Empty array if file not in Godot project - Error if Godot LSP unreachable - 5s timeout, return cached if available ## Development Flow 1. **Research**: Review [README.md](README.md) for context 2. **Validate scope**: Ensure changes align with vision 3. **Implement**: Follow architecture constraints 4. **Test**: Verify against real Godot editor **Simplicity over features.** Every addition must justify its existence for diagnostic retrieval.

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/ryanmazzolini/minimal-godot-mcp'

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