gopeak
v2.0.1GoPeak — The most comprehensive MCP server for Godot Engine.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
launch_editor
Opens the Godot editor GUI for a project. Use when visual inspection or manual editing of scenes/scripts is needed. Opens a new window on the host system. Requires: project directory with project.godot file.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
run_project
Launches a Godot project in a new window and captures output. Use to test gameplay or verify script behavior. Runs until stop_project is called. Use get_debug_output to retrieve logs.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scene | string | Optional: specific scene to run (e.g., "scenes/TestLevel.tscn"). If omitted, runs main scene from project settings. |
get_debug_output
Retrieves console output and errors from the currently running Godot project. Use after run_project to check logs, errors, and print statements. Returns empty if no project is running.
| Parameter | Type | Description |
|---|---|---|
reason * | string | Brief explanation of why you are calling this tool |
stop_project
Terminates the currently running Godot project process. Use to stop a project started with run_project. No effect if no project is running.
| Parameter | Type | Description |
|---|---|---|
reason * | string | Brief explanation of why you are calling this tool |
get_godot_version
Returns the installed Godot engine version string. Use to check compatibility (e.g., Godot 4.4+ features like UID). Returns version like "4.3.stable" or "4.4.dev".
| Parameter | Type | Description |
|---|---|---|
reason * | string | Brief explanation of why you are calling this tool |
list_projects
Scans a directory for Godot projects (folders containing project.godot). Use to discover projects before using other tools. Returns array of {path, name}.
| Parameter | Type | Description |
|---|---|---|
directory * | string | Absolute path to search (e.g., "/home/user/godot-projects" on Linux, "C:\Games" on Windows) |
recursive | boolean | If true, searches all subdirectories. If false (default), only checks immediate children. |
get_project_info
Returns metadata about a Godot project including name, version, main scene, autoloads, and directory structure. Use to understand project before modifying. Requires valid project.godot.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
create_scene
Creates a new Godot scene file (.tscn) with a specified root node type. Use to start building new game levels, UI screens, or reusable components. The scene is saved automatically after creation.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path for new scene file relative to project (e.g., "scenes/Player.tscn", "levels/Level1.tscn") |
rootNodeType | string | Godot node class for root (e.g., "Node2D" for 2D games, "Node3D" for 3D, "Control" for UI). Default: "Node" |
add_node
Adds ANY node type to an existing scene. This is the universal node creation tool — replaces all specialized create_* node tools. Supports ALL ClassDB node types (Camera3D, DirectionalLight3D, AudioStreamPlayer, HTTPRequest, RayCast3D, etc.). Set any property via the properties parameter with type conversion support (Vector2, Vector3, Color, etc.). Use query_classes to discover available node types. Use query_class_info to discover available properties for a type.
| Parameter | Type | Description |
|---|---|---|
nodeName * | string | Name for the new node (will be unique identifier in scene tree) |
nodeType * | string | Godot node class name (e.g., "Sprite2D", "CollisionShape2D", "CharacterBody2D"). Must be valid Godot 4 class. |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file relative to project (e.g., "scenes/Player.tscn") |
parentNodePath | string | Node path within scene (e.g., "." for root, "Player" for direct child, "Player/Sprite2D" for nested) |
properties | string | Optional properties to set on the node (as JSON string) |
load_sprite
Assigns a texture to a Sprite2D node in a scene. Use to set character sprites, backgrounds, or UI images. The texture file must exist in the project.
| Parameter | Type | Description |
|---|---|---|
nodePath * | string | Path to Sprite2D node in scene (e.g., ".", "Player/Sprite2D") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file relative to project (e.g., "scenes/Player.tscn") |
texturePath * | string | Path to texture file relative to project (e.g., "assets/player.png", "sprites/enemy.svg") |
save_scene
Saves changes to a scene file or creates a variant at a new path. Most scene modification tools save automatically, but use this for explicit saves or creating variants.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file relative to project (e.g., "scenes/Player.tscn") |
newPath | string | Optional: New path to save as variant (e.g., "scenes/PlayerBlue.tscn") |
get_uid
Get the UID for a specific file in a Godot project (for Godot 4.4+)
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the file (relative to project) for which to get the UID |
projectPath * | string | Path to the Godot project directory |
update_project_uids
Update UID references in a Godot project by resaving resources (for Godot 4.4+)
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Path to the Godot project directory |
list_scene_nodes
Returns complete scene tree structure with all nodes, types, and hierarchy. Use to understand scene organization before modifying. Returns nested tree with node paths.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file relative to project (e.g., "scenes/Player.tscn") |
depth | number | Maximum depth to traverse. -1 = all (default), 0 = root only, 1 = root + children |
includeProperties | boolean | If true, includes all node properties. If false (default), only names and types. |
get_node_properties
Returns all properties of a specific node in a scene. Use to inspect current values before modifying. Returns property names, values, and types.
| Parameter | Type | Description |
|---|---|---|
nodePath * | string | Path to node within scene (e.g., ".", "Player", "Player/Sprite2D") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file relative to project (e.g., "scenes/Player.tscn") |
includeDefaults | boolean | If true, includes properties with default values. If false (default), only modified properties. |
set_node_properties
Sets multiple properties on a node in a scene. Prerequisite: scene and node must exist (use create_scene and add_node first). Use to modify position, scale, rotation, or any node-specific properties. Scene is saved automatically unless saveScene=false.
| Parameter | Type | Description |
|---|---|---|
nodePath * | string | Path to node within scene (e.g., ".", "Player", "Player/Sprite2D") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
properties * | string | JSON object of properties to set (e.g., {"position": {"x": 100, "y": 200}, "scale": {"x": 2, "y": 2}}) |
scenePath * | string | Path to .tscn file relative to project (e.g., "scenes/Player.tscn") |
saveScene | boolean | If true (default), saves scene after modification. Set false for batch operations. |
delete_node
Removes a node and all its children from a scene. Use to clean up unused nodes. Cannot delete root node. Scene is saved automatically unless saveScene=false.
| Parameter | Type | Description |
|---|---|---|
nodePath * | string | Path to node to delete (e.g., "Player/OldSprite", "Enemies/Enemy1") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file relative to project (e.g., "scenes/Player.tscn") |
saveScene | boolean | If true (default), saves scene after deletion. Set false for batch operations. |
duplicate_node
Creates a copy of a node with all its properties and children. Use to replicate enemies, UI elements, or any repeated structures. Scene is saved automatically unless saveScene=false.
| Parameter | Type | Description |
|---|---|---|
newName * | string | Name for the new duplicated node (e.g., "Enemy2", "ButtonCopy") |
nodePath * | string | Path to node to duplicate (e.g., "Enemies/Enemy", "UI/Button") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file relative to project (e.g., "scenes/Level.tscn") |
parentPath | string | Optional: Different parent path. If omitted, uses same parent as original. |
saveScene | boolean | If true (default), saves scene after duplication. Set false for batch operations. |
reparent_node
Moves a node to a different parent in the scene tree, preserving all properties and children. Use for reorganizing scene hierarchy. Scene is saved automatically unless saveScene=false.
| Parameter | Type | Description |
|---|---|---|
newParentPath * | string | Path to new parent node (e.g., "NewParent", "UI/Panel") |
nodePath * | string | Path to node to move (e.g., "OldParent/Child", "UI/Button") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file relative to project (e.g., "scenes/Level.tscn") |
saveScene | boolean | If true (default), saves scene after reparenting. Set false for batch operations. |
get_import_status
Returns import status for project resources. Use to find outdated or failed imports. Shows which resources need reimporting.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
includeUpToDate | boolean | If true, includes already-imported resources. Default: false (only pending) |
resourcePath | string | Optional: specific resource path (e.g., "textures/player.png"). If omitted, returns all. |
get_import_options
Returns current import settings for a resource. Use to check compression, mipmaps, filter settings before modifying.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
resourcePath * | string | Path to resource file (e.g., "textures/player.png", "audio/music.ogg") |
set_import_options
Modifies import settings for a resource. Use to change compression, mipmaps, filter mode. Triggers reimport by default.
| Parameter | Type | Description |
|---|---|---|
options * | string | JSON string of import options (e.g., {"compress/mode": 1, "mipmaps/generate": true}) |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
resourcePath * | string | Path to resource file (e.g., "textures/player.png") |
reimport | boolean | If true (default), reimports after setting. Set false for batch changes. |
reimport_resource
Forces reimport of resources. Use after modifying source files or to fix import issues. Can reimport single file or all modified.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
force | boolean | If true, reimports even if up-to-date. Default: false |
resourcePath | string | Optional: specific resource to reimport. If omitted, reimports all modified. |
list_export_presets
Lists all export presets defined in export_presets.cfg. Use before export_project to see available targets (Windows, Linux, Android, etc.).
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
includeTemplateStatus | boolean | If true (default), shows if export templates are installed. |
export_project
Exports the project to a distributable format. Use to build final game executables. Requires export templates installed.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | Destination path for exported file (e.g., "builds/game.exe", "builds/game.x86_64") |
preset * | string | Export preset name from export_presets.cfg (e.g., "Windows Desktop", "Linux/X11") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
debug | boolean | If true, exports debug build. Default: false (release) |
validate_project
Checks project for export issues: missing resources, script errors, configuration problems. Use before export_project.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
includeSuggestions | boolean | If true (default), includes fix suggestions for each issue |
preset | string | Optional: validate against specific export preset requirements |
get_dependencies
Analyzes resource dependencies and detects circular references. Use to understand what a scene/script depends on before refactoring.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
resourcePath * | string | Path to analyze (e.g., "scenes/player.tscn", "scripts/game.gd") |
depth | number | How deep to traverse dependencies. -1 for unlimited. Default: -1 |
includeBuiltin | boolean | If true, includes Godot built-in resources. Default: false |
find_resource_usages
Finds all files that reference a resource. Use before deleting or renaming to avoid breaking references.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
resourcePath * | string | Resource to search for (e.g., "textures/player.png") |
fileTypes | array | File types to search. Default: ["tscn", "tres", "gd"] |
parse_error_log
Parses Godot error log and provides fix suggestions. Use to diagnose runtime errors or script issues.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
logContent | string | Optional: error log text. If omitted, reads from godot.log |
maxErrors | number | Maximum errors to return. Default: 50 |
get_project_health
Generates a health report with scoring for project quality. Checks for unused resources, script errors, missing references, etc.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
includeDetails | boolean | If true (default), includes detailed breakdown per category |
get_project_setting
Reads a value from project.godot settings. Use to check game name, window size, physics settings, etc.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
setting * | string | Setting path (e.g., "application/config/name", "display/window/size/width", "physics/2d/default_gravity") |
set_project_setting
Writes a value to project.godot settings. Use to configure game name, window size, physics, etc.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
setting * | string | Setting path (e.g., "application/config/name", "display/window/size/width") |
value * | string | Value to set (Godot auto-converts types) |
add_autoload
Registers a script/scene as an autoload singleton. Use for global managers (GameManager, AudioManager, etc.). Loads automatically on game start.
| Parameter | Type | Description |
|---|---|---|
name * | string | Singleton name for global access (e.g., "GameManager", "EventBus") |
path * | string | Path to .gd or .tscn file (e.g., "autoload/game_manager.gd") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
enabled | boolean | If true (default), autoload is active. Set false to temporarily disable. |
remove_autoload
Unregisters an autoload singleton. Use to remove global managers no longer needed.
| Parameter | Type | Description |
|---|---|---|
name * | string | Singleton name to remove (e.g., "GameManager") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
list_autoloads
Lists all registered autoload singletons in the project. Shows name, path, and enabled status.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
set_main_scene
Sets which scene loads first when the game starts. Updates application/run/main_scene in project.godot.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to main scene (e.g., "scenes/main_menu.tscn", "scenes/game.tscn") |
connect_signal
Creates a signal connection between nodes in a scene. Prerequisite: source and target nodes must exist. Use to wire up button clicks, collision events, custom signals. Saved to scene file.
| Parameter | Type | Description |
|---|---|---|
methodName * | string | Method to call on target (e.g., "_on_start_pressed", "take_damage") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file (e.g., "scenes/ui/menu.tscn") |
signalName * | string | Signal name (e.g., "pressed", "body_entered", "health_changed") |
sourceNodePath * | string | Emitting node path (e.g., "StartButton", "Player/Area2D") |
targetNodePath * | string | Receiving node path (e.g., ".", "Player", "../GameManager") |
flags | number | Optional: connection flags (0=default, 1=deferred, 2=persist, 4=one_shot) |
disconnect_signal
Removes a signal connection from a scene. Use to clean up unused connections or rewire logic.
| Parameter | Type | Description |
|---|---|---|
methodName * | string | Connected method name (e.g., "_on_start_pressed") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file (e.g., "scenes/ui/menu.tscn") |
signalName * | string | Signal name (e.g., "pressed") |
sourceNodePath * | string | Emitting node path (e.g., "StartButton") |
targetNodePath * | string | Receiving node path (e.g., ".") |
list_connections
Lists all signal connections in a scene. Use to understand event flow or debug connection issues.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file (e.g., "scenes/player.tscn") |
nodePath | string | Optional: filter to connections involving this node. If omitted, shows all. |
get_runtime_status
Checks if a Godot game instance is running and connected for live debugging. Use before other runtime tools.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
inspect_runtime_tree
Inspect the scene tree of a running Godot instance
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Path to the Godot project directory |
depth | number | Maximum depth to inspect (default: 3) |
nodePath | string | Path to start inspection from (default: root) |
set_runtime_property
Set a property on a node in a running Godot instance
| Parameter | Type | Description |
|---|---|---|
nodePath * | string | Path to the target node |
projectPath * | string | Path to the Godot project directory |
property * | string | Property name to set |
value * | string | Value to set (Godot handles type conversion) |
call_runtime_method
Call a method on a node in a running Godot instance
| Parameter | Type | Description |
|---|---|---|
method * | string | Method name to call |
nodePath * | string | Path to the target node |
projectPath * | string | Path to the Godot project directory |
args | array | Arguments to pass to the method (as JSON strings) |
get_runtime_metrics
Get performance metrics from a running Godot instance
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Path to the Godot project directory |
metrics | array | Specific metrics to retrieve (default: all) |
create_resource
Creates ANY resource type as a .tres file. This is the universal resource creation tool — replaces all specialized create_* resource tools (PhysicsMaterial, Environment, Theme, etc.). Supports ALL ClassDB resource types. Set any property via the properties parameter with type conversion support. Use query_classes with category "resource" to discover available resource types. Use query_class_info to discover available properties.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
resourcePath * | string | Path for new .tres file relative to project (e.g., "resources/items/sword.tres") |
resourceType * | string | Resource class name (e.g., "Resource", "CurveTexture", "GradientTexture2D") |
properties | string | Optional: JSON object of properties to set (e.g., {"value": 100}) |
script | string | Optional: path to custom Resource script (e.g., "scripts/resources/item_data.gd") |
create_material
Creates a material resource for 3D/2D rendering. Types: StandardMaterial3D (PBR), ShaderMaterial (custom), CanvasItemMaterial (2D), ParticleProcessMaterial (particles).
| Parameter | Type | Description |
|---|---|---|
materialPath * | string | Path for new material file relative to project (e.g., "materials/player.tres") |
materialType * | string | Material type: StandardMaterial3D (3D PBR), ShaderMaterial (custom shader), CanvasItemMaterial (2D), ParticleProcessMaterial (particles) |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
properties | string | Optional: JSON object of properties (e.g., {"albedo_color": [1, 0, 0, 1], "metallic": 0.8}) |
shader | string | Optional for ShaderMaterial: path to .gdshader file (e.g., "shaders/outline.gdshader") |
create_shader
Creates a shader file (.gdshader) with optional templates. Types: canvas_item (2D), spatial (3D), particles, sky, fog. Templates: basic, color_shift, outline.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
shaderPath * | string | Path for new .gdshader file relative to project (e.g., "shaders/outline.gdshader") |
shaderType * | string | Shader type: canvas_item (2D/UI), spatial (3D), particles, sky, fog |
code | string | Optional: custom shader code. If omitted, uses template or generates basic shader. |
template | string | Optional: predefined template - "basic", "color_shift", "outline" |
create_script
Creates a new GDScript (.gd) file with optional templates. Use to generate scripts for game logic. Templates: "singleton" (autoload), "state_machine" (FSM), "component" (modular), "resource" (custom Resource).
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scriptPath * | string | Path for new script relative to project (e.g., "scripts/player.gd", "autoload/game_manager.gd") |
className | string | Optional: class_name for global access (e.g., "Player", "GameManager") |
content | string | Optional: initial script content to add after class declaration |
extends | string | Base class to extend (e.g., "Node", "CharacterBody2D", "Resource"). Default: "Node" |
template | string | Optional: template name - "singleton", "state_machine", "component", "resource" |
modify_script
Adds functions, variables, or signals to an existing GDScript. Use to extend scripts without manual editing. Supports @export, @onready annotations and type hints.
| Parameter | Type | Description |
|---|---|---|
modifications * | array | Array of modifications to apply |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scriptPath * | string | Path to existing .gd file relative to project (e.g., "scripts/player.gd") |
get_script_info
Analyzes a GDScript and returns its structure: functions, variables, signals, class_name, extends. Use before modify_script to understand existing code.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scriptPath * | string | Path to .gd file relative to project (e.g., "scripts/player.gd") |
includeInherited | boolean | If true, includes members from parent classes. Default: false (only script-defined members). |
create_animation
Creates a new animation in an AnimationPlayer. Prerequisite: AnimationPlayer node must exist in scene (use add_node first). Use to set up character animations, UI transitions, or cutscenes. Supports loop modes: none, linear, pingpong.
| Parameter | Type | Description |
|---|---|---|
animationName * | string | Name for new animation (e.g., "walk", "idle", "attack") |
playerNodePath * | string | Path to AnimationPlayer node in scene (e.g., ".", "Player/AnimationPlayer") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file relative to project (e.g., "scenes/Player.tscn") |
length | number | Duration of the animation in seconds (default: 1.0) |
loopMode | string | Loop mode for the animation (default: "none") |
step | number | Keyframe snap step in seconds (default: 0.1) |
add_animation_track
Adds a property or method track to an animation. Prerequisite: animation must exist (use create_animation first). Use to animate position, rotation, color, or call methods at specific times. Keyframes define values over time.
| Parameter | Type | Description |
|---|---|---|
animationName * | string | Name of existing animation to add track to (e.g., "walk", "idle") |
playerNodePath * | string | Path to AnimationPlayer node in scene (e.g., ".", "Player/AnimationPlayer") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to .tscn file relative to project (e.g., "scenes/Player.tscn") |
track * | object | Track configuration |
list_plugins
Lists all plugins in addons/ folder with enabled/disabled status. Use before enable_plugin or disable_plugin to see available plugins.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
enable_plugin
Enables a plugin from addons/ folder. Updates project.godot automatically. Use list_plugins first to see available plugins.
| Parameter | Type | Description |
|---|---|---|
pluginName * | string | Plugin folder name in addons/ (e.g., "dialogue_manager", "scatter") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
disable_plugin
Disables a plugin in the project. Updates project.godot automatically. Plugin files remain in addons/ folder.
| Parameter | Type | Description |
|---|---|---|
pluginName * | string | Plugin folder name in addons/ (e.g., "dialogue_manager", "scatter") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
add_input_action
Registers a new input action in project.godot InputMap. Use to set up keyboard, mouse, or gamepad controls for player actions like jump, move, attack.
| Parameter | Type | Description |
|---|---|---|
actionName * | string | Action name used in code (e.g., "jump", "move_left", "attack") |
events * | array | Array of input events - each with type (key/mouse_button/joypad_button/joypad_axis) and binding details |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
deadzone | number | Analog stick deadzone (0-1). Default: 0.5 |
search_project
Searches for text or regex patterns across project files. Use to find function usages, variable references, or TODOs. Returns file paths and line numbers.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
query * | string | Search text or regex pattern (e.g., "player", "TODO", "func.*damage") |
caseSensitive | boolean | If true, case-sensitive search. Default: false |
fileTypes | array | File extensions to search. Default: ["gd", "tscn", "tres"] |
maxResults | number | Maximum results to return. Default: 100 |
regex | boolean | If true, treats query as regex. Default: false |
create_tileset
Creates a TileSet resource from texture atlases. Use for 2D tilemaps in platformers, RPGs, etc. Supports multiple atlas sources.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
sources * | array | Array of atlas sources, each with texture path and tileSize {x, y} |
tilesetPath * | string | Output path for TileSet (e.g., "resources/world_tiles.tres") |
set_tilemap_cells
Places tiles in a TileMap node. Use to programmatically generate levels or modify existing tilemaps.
| Parameter | Type | Description |
|---|---|---|
cells * | array | Array of cells with coords {x,y}, sourceId, atlasCoords {x,y} |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to scene containing TileMap (e.g., "scenes/level1.tscn") |
tilemapNodePath * | string | Path to TileMap node (e.g., "World/TileMap") |
layer | number | TileMap layer index. Default: 0 |
create_audio_bus
Creates a new audio bus for mixing. Use to set up separate volume controls for music, SFX, voice, etc.
| Parameter | Type | Description |
|---|---|---|
busName * | string | Name for the audio bus (e.g., "Music", "SFX", "Voice") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
parentBusIndex | number | Parent bus index. Default: 0 (Master) |
get_audio_buses
Lists all audio buses and their configuration. Use to check current audio setup.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
set_audio_bus_effect
Adds or configures an audio effect on a bus. Use for reverb, delay, EQ, compression, etc.
| Parameter | Type | Description |
|---|---|---|
busIndex * | number | Bus index (0 = Master) |
effectIndex * | number | Effect slot index (0-7) |
effectType * | string | Effect type (e.g., "Reverb", "Delay", "Chorus", "Compressor") |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
enabled | boolean | Whether effect is active |
set_audio_bus_volume
Sets volume for an audio bus in decibels. Use to balance audio levels.
| Parameter | Type | Description |
|---|---|---|
busIndex * | number | Bus index (0 = Master) |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
volumeDb * | number | Volume in decibels (0 = unity, -80 = silent, +6 = boost) |
create_animation_tree
Create an AnimationTree node linked to an AnimationPlayer
| Parameter | Type | Description |
|---|---|---|
animPlayerPath * | string | Path to AnimationPlayer node (relative to parent) |
nodeName * | string | Name for AnimationTree |
parentPath * | string | Parent node path |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to the scene file |
rootType | string | Root node type |
add_animation_state
Add a state to an AnimationTree state machine
| Parameter | Type | Description |
|---|---|---|
animTreePath * | string | Path to AnimationTree node |
animationName * | string | Animation to play in this state |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to the scene file |
stateName * | string | Name for the state |
stateMachinePath | string | Path within tree to state machine (default: root) |
connect_animation_states
Connect two states with a transition
| Parameter | Type | Description |
|---|---|---|
animTreePath * | string | Path to AnimationTree node |
fromState * | string | Source state name |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
scenePath * | string | Path to the scene file |
toState * | string | Target state name |
advanceCondition | string | Condition parameter name for auto-advance |
transitionType | string | Transition type |
set_theme_color
Set a color in a Theme resource
| Parameter | Type | Description |
|---|---|---|
color * | object | Color value |
colorName * | string | Color name (font_color, etc.) |
controlType * | string | Control type (Button, Label, etc.) |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
themePath * | string | Path to the theme resource |
set_theme_font_size
Set a font size in a Theme resource
| Parameter | Type | Description |
|---|---|---|
controlType * | string | Control type (Button, Label, etc.) |
fontSizeName * | string | Font size name |
projectPath * | string | Absolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow. |
size * | number | Font size in pixels |
themePath * | string | Path to the theme resource |
apply_theme_shader
Generate and apply theme-appropriate shader to a material in a scene
| Parameter | Type | Description |
|---|---|---|
nodePath * | string | Path to MeshInstance3D or Sprite node |
projectPath * | string | Path to the Godot project directory |
scenePath * | string | Path to the scene file (relative to project) |
theme * | string | Visual theme to apply |
effect | string | Special effect to add (default: none) |
shaderParams | string | Optional JSON string with custom shader parameters |
query_classes
Query available Godot classes from ClassDB with filtering. Use to discover node types, resource types, or any class before using add_node/create_resource. Categories: node, node2d, node3d, control, resource, physics, physics2d, audio, visual, animation.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. |
category | string | Optional: filter by category (node, node2d, node3d, control, resource, physics, physics2d, audio, visual, animation) |
filter | string | Optional: substring filter for class names (case-insensitive, e.g., "light", "collision") |
instantiableOnly | boolean | If true, only return classes that can be instantiated (default: false) |
query_class_info
Get detailed information about a specific Godot class: methods, properties, signals, enums. Use to discover available properties before calling add_node/create_resource/set_node_properties, or to find methods before call_runtime_method.
| Parameter | Type | Description |
|---|---|---|
className * | string | Exact Godot class name (e.g., "CharacterBody3D", "StandardMaterial3D", "AnimationPlayer") |
projectPath * | string | Absolute path to project directory containing project.godot. |
includeInherited | boolean | If true, include inherited members from parent classes (default: false — shows only class-specific members) |
inspect_inheritance
Inspect class inheritance hierarchy: ancestors, direct children, all descendants. Use to understand class relationships and find specialized alternatives.
| Parameter | Type | Description |
|---|---|---|
className * | string | Exact Godot class name to inspect |
projectPath * | string | Absolute path to project directory containing project.godot. |
modify_resource
Modify properties of an existing resource file (.tres/.res). Use to update materials, environments, themes, or any saved resource without recreating it.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to project directory containing project.godot. |
properties * | string | JSON object of properties to set (e.g., {"albedo_color": {"_type": "Color", "r": 1, "g": 0, "b": 0, "a": 1}}) |
resourcePath * | string | Path to existing resource file relative to project (e.g., "materials/player.tres") |
search_assets
Search for CC0 assets across multiple sources (Poly Haven, AmbientCG, Kenney). Returns results sorted by provider priority.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Search term (e.g., "chair", "rock", "tree") |
assetType | string | Type of asset to search (optional, searches all if not specified) |
maxResults | number | Maximum number of results to return (default: 10) |
mode | string | Search mode: "parallel" queries all providers, "sequential" stops at first with results (default: parallel) |
provider | string | Specific provider to search, or "all" for multi-source (default: all) |
fetch_asset
Download a CC0 asset from any supported source (Poly Haven, AmbientCG, Kenney) to your Godot project.
| Parameter | Type | Description |
|---|---|---|
assetId * | string | Asset ID from search results |
projectPath * | string | Path to the Godot project directory |
provider * | string | Source provider for the asset |
resolution | string | Resolution for download (default: 2k, only for PolyHaven/AmbientCG) |
targetFolder | string | Target folder for download (default: downloaded_assets/<provider>) |
list_asset_providers
List all available CC0 asset providers and their capabilities.
capture_screenshot
Capture a screenshot of the running Godot game viewport. Requires the runtime addon to be active (game must be running with the MCP runtime autoload).
| Parameter | Type | Description |
|---|---|---|
format | string | Image format (default: png) |
height | number | Target height in pixels (default: current viewport height) |
width | number | Target width in pixels (default: current viewport width) |
capture_viewport
Capture a viewport texture as base64 image from the running Godot game. Similar to capture_screenshot but captures a specific viewport by path.
| Parameter | Type | Description |
|---|---|---|
height | number | Target height in pixels |
viewportPath | string | NodePath to the target Viewport node (default: root viewport) |
width | number | Target width in pixels |
inject_action
Simulate a Godot input action (press/release). Requires runtime addon.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action name as defined in Input Map (e.g., "ui_accept", "jump") |
pressed | boolean | Whether to press (true) or release (false). Default: true |
strength | number | Action strength 0.0–1.0. Default: 1.0 |
inject_key
Simulate a keyboard key press/release in the running Godot game. Requires runtime addon.
| Parameter | Type | Description |
|---|---|---|
keycode * | string | Key name (e.g., "A", "Space", "Escape", "Enter") |
alt | boolean | Alt modifier. Default: false |
ctrl | boolean | Ctrl modifier. Default: false |
pressed | boolean | Press (true) or release (false). Default: true |
shift | boolean | Shift modifier. Default: false |
inject_mouse_click
Simulate a mouse click at specified position in the running Godot game. Requires runtime addon.
| Parameter | Type | Description |
|---|---|---|
x * | number | X coordinate in viewport pixels |
y * | number | Y coordinate in viewport pixels |
button | string | Mouse button. Default: left |
doubleClick | boolean | Double-click. Default: false |
pressed | boolean | Press (true) or release (false). Default: true |
inject_mouse_motion
Simulate mouse movement to a position in the running Godot game. Requires runtime addon.
| Parameter | Type | Description |
|---|---|---|
x * | number | Target X coordinate in viewport pixels |
y * | number | Target Y coordinate in viewport pixels |
relativeX | number | Relative X movement delta |
relativeY | number | Relative Y movement delta |
lsp_get_diagnostics
Get GDScript diagnostics from Godot Language Server for a script file.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to Godot project root |
scriptPath * | string | Path to script relative to project root |
lsp_get_completions
Get code completions from Godot Language Server at a given position.
| Parameter | Type | Description |
|---|---|---|
character * | number | Zero-based character offset |
line * | number | Zero-based line number |
projectPath * | string | Absolute path to Godot project root |
scriptPath * | string | Path to script relative to project root |
lsp_get_hover
Get hover information from Godot Language Server at a given position.
| Parameter | Type | Description |
|---|---|---|
character * | number | Zero-based character offset |
line * | number | Zero-based line number |
projectPath * | string | Absolute path to Godot project root |
scriptPath * | string | Path to script relative to project root |
lsp_get_symbols
Get document symbols for a GDScript file from Godot Language Server.
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Absolute path to Godot project root |
scriptPath * | string | Path to script relative to project root |
dap_get_output
Get captured Godot DAP console output lines
dap_set_breakpoint
Set a breakpoint in a Godot script at a specific line
| Parameter | Type | Description |
|---|---|---|
line * | number | 1-based line number |
scriptPath * | string | Absolute or project-relative script path |
dap_remove_breakpoint
Remove a breakpoint in a Godot script at a specific line
| Parameter | Type | Description |
|---|---|---|
line * | number | 1-based line number |
scriptPath * | string | Absolute or project-relative script path |
dap_continue
Continue execution after a breakpoint or pause
dap_pause
Pause execution of the running Godot debug target
dap_step_over
Step over the current line in the debugger
dap_get_stack_trace
Get the current stack trace from the Godot debugger