loading…
Search for a command to run...
loading…
An MCP server for Godot game development that provides 45 tools for reading, analyzing, and editing projects. It enables users to manage scene trees, navigate G
An MCP server for Godot game development that provides 45 tools for reading, analyzing, and editing projects. It enables users to manage scene trees, navigate GDScript symbols, and interact with the Godot runtime for debugging and state capture.
MCP server for Godot game development. Provides 45 tools for reading, analyzing, and editing Godot projects through the Model Context Protocol.
.gd, scene structure for .tscn)npm install godette
Or run directly:
npx godette
Add to your MCP client configuration (e.g. Claude Desktop):
{
"mcpServers": {
"godette": {
"command": "npx",
"args": ["godette"],
"env": {
"GODOT_PROJECT": "/path/to/your/godot/project"
}
}
}
}
The server auto-detects the Godot project root from the working directory or GODOT_PROJECT env var.
import { parseTscn, parseGdScript, UnifiedIndex, EventBus } from "godette";
// Parse a scene file
const scene = parseTscn(tscnSource, "/path/to/scene.tscn");
console.log(scene.rootType, scene.nodes.size);
// Parse a GDScript file
const script = parseGdScript(gdSource, "/path/to/script.gd");
console.log(script.className, script.functions.length);
MCP Client (stdio)
|
GodetteMcpServer
|-- EventBus (typed async events)
|-- ProjectDetector (finds project.godot)
|-- FileWatcher (recursive fs.watch)
|-- UnifiedIndex
| |-- SceneIndex
| |-- ScriptIndex
| |-- ResourceIndex
| |-- SignalGraph
| |-- GroupIndex / NodeTypeIndex
| '-- AutoloadIndex
|-- ToolRegistry (45 tools, 8 categories)
|-- Middleware (logging, timing, error handling)
|-- LspClient (JSON-RPC, port 6005)
'-- PluginClient (NDJSON, port 6006)
Key design decisions:
src/index.tsread_file list_dir find_file replace_content create_file delete_lines insert_at_line
get_scene_tree find_node find_signal_connections find_group_members get_scene_dependencies trace_signal_chain find_scene_instances get_node_properties
add_node remove_node modify_node_property connect_signal disconnect_signal add_to_group remove_from_group create_scene
find_symbol find_references get_symbols_overview rename_symbol
replace_symbol_body insert_after_symbol insert_before_symbol
find_resource get_resource_properties get_resource_references find_resources_of_type
get_project_settings get_input_map get_layer_names get_autoloads list_project_structure
run_project stop_project capture_state get_runtime_state get_signal_log screenshot get_console_output get_live_scene_tree
read_memory write_memory search_memories list_memories delete_memory
npm install # Install dependencies
npm run build # Compile TypeScript
npm test # Run tests (vitest)
npm run test:watch # Tests in watch mode
npm run lint # ESLint
npm run format # Prettier
npm run check # Full CI check (typecheck + lint + test)
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"godette": {
"command": "npx",
"args": []
}
}
}