gopeak

v2.0.1
io.github.HaD0Yun/gopeak Checked 4 hours ago Published 9 months ago

GoPeak — 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.

ParameterTypeDescription
projectPath *stringAbsolute 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenestringOptional: 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.

ParameterTypeDescription
reason *stringBrief 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.

ParameterTypeDescription
reason *stringBrief 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".

ParameterTypeDescription
reason *stringBrief 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}.

ParameterTypeDescription
directory *stringAbsolute path to search (e.g., "/home/user/godot-projects" on Linux, "C:\Games" on Windows)
recursivebooleanIf 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.

ParameterTypeDescription
projectPath *stringAbsolute 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath for new scene file relative to project (e.g., "scenes/Player.tscn", "levels/Level1.tscn")
rootNodeTypestringGodot 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.

ParameterTypeDescription
nodeName *stringName for the new node (will be unique identifier in scene tree)
nodeType *stringGodot node class name (e.g., "Sprite2D", "CollisionShape2D", "CharacterBody2D"). Must be valid Godot 4 class.
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file relative to project (e.g., "scenes/Player.tscn")
parentNodePathstringNode path within scene (e.g., "." for root, "Player" for direct child, "Player/Sprite2D" for nested)
propertiesstringOptional 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.

ParameterTypeDescription
nodePath *stringPath to Sprite2D node in scene (e.g., ".", "Player/Sprite2D")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file relative to project (e.g., "scenes/Player.tscn")
texturePath *stringPath 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file relative to project (e.g., "scenes/Player.tscn")
newPathstringOptional: 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+)

ParameterTypeDescription
filePath *stringPath to the file (relative to project) for which to get the UID
projectPath *stringPath to the Godot project directory

update_project_uids

Update UID references in a Godot project by resaving resources (for Godot 4.4+)

ParameterTypeDescription
projectPath *stringPath 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file relative to project (e.g., "scenes/Player.tscn")
depthnumberMaximum depth to traverse. -1 = all (default), 0 = root only, 1 = root + children
includePropertiesbooleanIf 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.

ParameterTypeDescription
nodePath *stringPath to node within scene (e.g., ".", "Player", "Player/Sprite2D")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file relative to project (e.g., "scenes/Player.tscn")
includeDefaultsbooleanIf 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.

ParameterTypeDescription
nodePath *stringPath to node within scene (e.g., ".", "Player", "Player/Sprite2D")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
properties *stringJSON object of properties to set (e.g., {"position": {"x": 100, "y": 200}, "scale": {"x": 2, "y": 2}})
scenePath *stringPath to .tscn file relative to project (e.g., "scenes/Player.tscn")
saveScenebooleanIf 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.

ParameterTypeDescription
nodePath *stringPath to node to delete (e.g., "Player/OldSprite", "Enemies/Enemy1")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file relative to project (e.g., "scenes/Player.tscn")
saveScenebooleanIf 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.

ParameterTypeDescription
newName *stringName for the new duplicated node (e.g., "Enemy2", "ButtonCopy")
nodePath *stringPath to node to duplicate (e.g., "Enemies/Enemy", "UI/Button")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file relative to project (e.g., "scenes/Level.tscn")
parentPathstringOptional: Different parent path. If omitted, uses same parent as original.
saveScenebooleanIf 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.

ParameterTypeDescription
newParentPath *stringPath to new parent node (e.g., "NewParent", "UI/Panel")
nodePath *stringPath to node to move (e.g., "OldParent/Child", "UI/Button")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file relative to project (e.g., "scenes/Level.tscn")
saveScenebooleanIf 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
includeUpToDatebooleanIf true, includes already-imported resources. Default: false (only pending)
resourcePathstringOptional: 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
resourcePath *stringPath 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.

ParameterTypeDescription
options *stringJSON string of import options (e.g., {"compress/mode": 1, "mipmaps/generate": true})
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
resourcePath *stringPath to resource file (e.g., "textures/player.png")
reimportbooleanIf 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
forcebooleanIf true, reimports even if up-to-date. Default: false
resourcePathstringOptional: 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.).

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
includeTemplateStatusbooleanIf 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.

ParameterTypeDescription
outputPath *stringDestination path for exported file (e.g., "builds/game.exe", "builds/game.x86_64")
preset *stringExport preset name from export_presets.cfg (e.g., "Windows Desktop", "Linux/X11")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
debugbooleanIf true, exports debug build. Default: false (release)

validate_project

Checks project for export issues: missing resources, script errors, configuration problems. Use before export_project.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
includeSuggestionsbooleanIf true (default), includes fix suggestions for each issue
presetstringOptional: 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
resourcePath *stringPath to analyze (e.g., "scenes/player.tscn", "scripts/game.gd")
depthnumberHow deep to traverse dependencies. -1 for unlimited. Default: -1
includeBuiltinbooleanIf 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
resourcePath *stringResource to search for (e.g., "textures/player.png")
fileTypesarrayFile 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
logContentstringOptional: error log text. If omitted, reads from godot.log
maxErrorsnumberMaximum 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
includeDetailsbooleanIf 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
setting *stringSetting 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
setting *stringSetting path (e.g., "application/config/name", "display/window/size/width")
value *stringValue 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.

ParameterTypeDescription
name *stringSingleton name for global access (e.g., "GameManager", "EventBus")
path *stringPath to .gd or .tscn file (e.g., "autoload/game_manager.gd")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
enabledbooleanIf true (default), autoload is active. Set false to temporarily disable.

remove_autoload

Unregisters an autoload singleton. Use to remove global managers no longer needed.

ParameterTypeDescription
name *stringSingleton name to remove (e.g., "GameManager")
projectPath *stringAbsolute 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.

ParameterTypeDescription
projectPath *stringAbsolute 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath 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.

ParameterTypeDescription
methodName *stringMethod to call on target (e.g., "_on_start_pressed", "take_damage")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file (e.g., "scenes/ui/menu.tscn")
signalName *stringSignal name (e.g., "pressed", "body_entered", "health_changed")
sourceNodePath *stringEmitting node path (e.g., "StartButton", "Player/Area2D")
targetNodePath *stringReceiving node path (e.g., ".", "Player", "../GameManager")
flagsnumberOptional: 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.

ParameterTypeDescription
methodName *stringConnected method name (e.g., "_on_start_pressed")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file (e.g., "scenes/ui/menu.tscn")
signalName *stringSignal name (e.g., "pressed")
sourceNodePath *stringEmitting node path (e.g., "StartButton")
targetNodePath *stringReceiving node path (e.g., ".")

list_connections

Lists all signal connections in a scene. Use to understand event flow or debug connection issues.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file (e.g., "scenes/player.tscn")
nodePathstringOptional: 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.

ParameterTypeDescription
projectPath *stringAbsolute 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

ParameterTypeDescription
projectPath *stringPath to the Godot project directory
depthnumberMaximum depth to inspect (default: 3)
nodePathstringPath to start inspection from (default: root)

set_runtime_property

Set a property on a node in a running Godot instance

ParameterTypeDescription
nodePath *stringPath to the target node
projectPath *stringPath to the Godot project directory
property *stringProperty name to set
value *stringValue to set (Godot handles type conversion)

call_runtime_method

Call a method on a node in a running Godot instance

ParameterTypeDescription
method *stringMethod name to call
nodePath *stringPath to the target node
projectPath *stringPath to the Godot project directory
argsarrayArguments to pass to the method (as JSON strings)

get_runtime_metrics

Get performance metrics from a running Godot instance

ParameterTypeDescription
projectPath *stringPath to the Godot project directory
metricsarraySpecific 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
resourcePath *stringPath for new .tres file relative to project (e.g., "resources/items/sword.tres")
resourceType *stringResource class name (e.g., "Resource", "CurveTexture", "GradientTexture2D")
propertiesstringOptional: JSON object of properties to set (e.g., {"value": 100})
scriptstringOptional: 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).

ParameterTypeDescription
materialPath *stringPath for new material file relative to project (e.g., "materials/player.tres")
materialType *stringMaterial type: StandardMaterial3D (3D PBR), ShaderMaterial (custom shader), CanvasItemMaterial (2D), ParticleProcessMaterial (particles)
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
propertiesstringOptional: JSON object of properties (e.g., {"albedo_color": [1, 0, 0, 1], "metallic": 0.8})
shaderstringOptional 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
shaderPath *stringPath for new .gdshader file relative to project (e.g., "shaders/outline.gdshader")
shaderType *stringShader type: canvas_item (2D/UI), spatial (3D), particles, sky, fog
codestringOptional: custom shader code. If omitted, uses template or generates basic shader.
templatestringOptional: 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).

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scriptPath *stringPath for new script relative to project (e.g., "scripts/player.gd", "autoload/game_manager.gd")
classNamestringOptional: class_name for global access (e.g., "Player", "GameManager")
contentstringOptional: initial script content to add after class declaration
extendsstringBase class to extend (e.g., "Node", "CharacterBody2D", "Resource"). Default: "Node"
templatestringOptional: 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.

ParameterTypeDescription
modifications *arrayArray of modifications to apply
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scriptPath *stringPath 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scriptPath *stringPath to .gd file relative to project (e.g., "scripts/player.gd")
includeInheritedbooleanIf 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.

ParameterTypeDescription
animationName *stringName for new animation (e.g., "walk", "idle", "attack")
playerNodePath *stringPath to AnimationPlayer node in scene (e.g., ".", "Player/AnimationPlayer")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file relative to project (e.g., "scenes/Player.tscn")
lengthnumberDuration of the animation in seconds (default: 1.0)
loopModestringLoop mode for the animation (default: "none")
stepnumberKeyframe 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.

ParameterTypeDescription
animationName *stringName of existing animation to add track to (e.g., "walk", "idle")
playerNodePath *stringPath to AnimationPlayer node in scene (e.g., ".", "Player/AnimationPlayer")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to .tscn file relative to project (e.g., "scenes/Player.tscn")
track *objectTrack configuration

list_plugins

Lists all plugins in addons/ folder with enabled/disabled status. Use before enable_plugin or disable_plugin to see available plugins.

ParameterTypeDescription
projectPath *stringAbsolute 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.

ParameterTypeDescription
pluginName *stringPlugin folder name in addons/ (e.g., "dialogue_manager", "scatter")
projectPath *stringAbsolute 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.

ParameterTypeDescription
pluginName *stringPlugin folder name in addons/ (e.g., "dialogue_manager", "scatter")
projectPath *stringAbsolute 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.

ParameterTypeDescription
actionName *stringAction name used in code (e.g., "jump", "move_left", "attack")
events *arrayArray of input events - each with type (key/mouse_button/joypad_button/joypad_axis) and binding details
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
deadzonenumberAnalog 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
query *stringSearch text or regex pattern (e.g., "player", "TODO", "func.*damage")
caseSensitivebooleanIf true, case-sensitive search. Default: false
fileTypesarrayFile extensions to search. Default: ["gd", "tscn", "tres"]
maxResultsnumberMaximum results to return. Default: 100
regexbooleanIf 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
sources *arrayArray of atlas sources, each with texture path and tileSize {x, y}
tilesetPath *stringOutput 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.

ParameterTypeDescription
cells *arrayArray of cells with coords {x,y}, sourceId, atlasCoords {x,y}
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to scene containing TileMap (e.g., "scenes/level1.tscn")
tilemapNodePath *stringPath to TileMap node (e.g., "World/TileMap")
layernumberTileMap 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.

ParameterTypeDescription
busName *stringName for the audio bus (e.g., "Music", "SFX", "Voice")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
parentBusIndexnumberParent bus index. Default: 0 (Master)

get_audio_buses

Lists all audio buses and their configuration. Use to check current audio setup.

ParameterTypeDescription
projectPath *stringAbsolute 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.

ParameterTypeDescription
busIndex *numberBus index (0 = Master)
effectIndex *numberEffect slot index (0-7)
effectType *stringEffect type (e.g., "Reverb", "Delay", "Chorus", "Compressor")
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
enabledbooleanWhether effect is active

set_audio_bus_volume

Sets volume for an audio bus in decibels. Use to balance audio levels.

ParameterTypeDescription
busIndex *numberBus index (0 = Master)
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
volumeDb *numberVolume in decibels (0 = unity, -80 = silent, +6 = boost)

create_navigation_region

Creates a NavigationRegion for pathfinding. Use to define walkable areas for AI navigation.

ParameterTypeDescription
nodeName *stringNode name (e.g., "WalkableArea")
parentPath *stringParent node path
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to scene file
is3DbooleanIf true, creates NavigationRegion3D. Default: false

create_navigation_agent

Creates a NavigationAgent for AI pathfinding. Use for enemies, NPCs that need to navigate around obstacles.

ParameterTypeDescription
nodeName *stringNode name (e.g., "NavAgent")
parentPath *stringParent node path (usually the character)
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to scene file
is3DbooleanIf true, creates NavigationAgent3D. Default: false
pathDesiredDistancenumberDistance to consider waypoint reached
targetDesiredDistancenumberDistance to consider target reached

create_animation_tree

Create an AnimationTree node linked to an AnimationPlayer

ParameterTypeDescription
animPlayerPath *stringPath to AnimationPlayer node (relative to parent)
nodeName *stringName for AnimationTree
parentPath *stringParent node path
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to the scene file
rootTypestringRoot node type

add_animation_state

Add a state to an AnimationTree state machine

ParameterTypeDescription
animTreePath *stringPath to AnimationTree node
animationName *stringAnimation to play in this state
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to the scene file
stateName *stringName for the state
stateMachinePathstringPath within tree to state machine (default: root)

connect_animation_states

Connect two states with a transition

ParameterTypeDescription
animTreePath *stringPath to AnimationTree node
fromState *stringSource state name
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
scenePath *stringPath to the scene file
toState *stringTarget state name
advanceConditionstringCondition parameter name for auto-advance
transitionTypestringTransition type

set_theme_color

Set a color in a Theme resource

ParameterTypeDescription
color *objectColor value
colorName *stringColor name (font_color, etc.)
controlType *stringControl type (Button, Label, etc.)
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
themePath *stringPath to the theme resource

set_theme_font_size

Set a font size in a Theme resource

ParameterTypeDescription
controlType *stringControl type (Button, Label, etc.)
fontSizeName *stringFont size name
projectPath *stringAbsolute path to project directory containing project.godot. Use the same path across all tool calls in a workflow.
size *numberFont size in pixels
themePath *stringPath to the theme resource

apply_theme_shader

Generate and apply theme-appropriate shader to a material in a scene

ParameterTypeDescription
nodePath *stringPath to MeshInstance3D or Sprite node
projectPath *stringPath to the Godot project directory
scenePath *stringPath to the scene file (relative to project)
theme *stringVisual theme to apply
effectstringSpecial effect to add (default: none)
shaderParamsstringOptional 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot.
categorystringOptional: filter by category (node, node2d, node3d, control, resource, physics, physics2d, audio, visual, animation)
filterstringOptional: substring filter for class names (case-insensitive, e.g., "light", "collision")
instantiableOnlybooleanIf 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.

ParameterTypeDescription
className *stringExact Godot class name (e.g., "CharacterBody3D", "StandardMaterial3D", "AnimationPlayer")
projectPath *stringAbsolute path to project directory containing project.godot.
includeInheritedbooleanIf 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.

ParameterTypeDescription
className *stringExact Godot class name to inspect
projectPath *stringAbsolute 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.

ParameterTypeDescription
projectPath *stringAbsolute path to project directory containing project.godot.
properties *stringJSON object of properties to set (e.g., {"albedo_color": {"_type": "Color", "r": 1, "g": 0, "b": 0, "a": 1}})
resourcePath *stringPath 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.

ParameterTypeDescription
keyword *stringSearch term (e.g., "chair", "rock", "tree")
assetTypestringType of asset to search (optional, searches all if not specified)
maxResultsnumberMaximum number of results to return (default: 10)
modestringSearch mode: "parallel" queries all providers, "sequential" stops at first with results (default: parallel)
providerstringSpecific 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.

ParameterTypeDescription
assetId *stringAsset ID from search results
projectPath *stringPath to the Godot project directory
provider *stringSource provider for the asset
resolutionstringResolution for download (default: 2k, only for PolyHaven/AmbientCG)
targetFolderstringTarget 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).

ParameterTypeDescription
formatstringImage format (default: png)
heightnumberTarget height in pixels (default: current viewport height)
widthnumberTarget 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.

ParameterTypeDescription
heightnumberTarget height in pixels
viewportPathstringNodePath to the target Viewport node (default: root viewport)
widthnumberTarget width in pixels

inject_action

Simulate a Godot input action (press/release). Requires runtime addon.

ParameterTypeDescription
action *stringAction name as defined in Input Map (e.g., "ui_accept", "jump")
pressedbooleanWhether to press (true) or release (false). Default: true
strengthnumberAction strength 0.0–1.0. Default: 1.0

inject_key

Simulate a keyboard key press/release in the running Godot game. Requires runtime addon.

ParameterTypeDescription
keycode *stringKey name (e.g., "A", "Space", "Escape", "Enter")
altbooleanAlt modifier. Default: false
ctrlbooleanCtrl modifier. Default: false
pressedbooleanPress (true) or release (false). Default: true
shiftbooleanShift modifier. Default: false

inject_mouse_click

Simulate a mouse click at specified position in the running Godot game. Requires runtime addon.

ParameterTypeDescription
x *numberX coordinate in viewport pixels
y *numberY coordinate in viewport pixels
buttonstringMouse button. Default: left
doubleClickbooleanDouble-click. Default: false
pressedbooleanPress (true) or release (false). Default: true

inject_mouse_motion

Simulate mouse movement to a position in the running Godot game. Requires runtime addon.

ParameterTypeDescription
x *numberTarget X coordinate in viewport pixels
y *numberTarget Y coordinate in viewport pixels
relativeXnumberRelative X movement delta
relativeYnumberRelative Y movement delta

lsp_get_diagnostics

Get GDScript diagnostics from Godot Language Server for a script file.

ParameterTypeDescription
projectPath *stringAbsolute path to Godot project root
scriptPath *stringPath to script relative to project root

lsp_get_completions

Get code completions from Godot Language Server at a given position.

ParameterTypeDescription
character *numberZero-based character offset
line *numberZero-based line number
projectPath *stringAbsolute path to Godot project root
scriptPath *stringPath to script relative to project root

lsp_get_hover

Get hover information from Godot Language Server at a given position.

ParameterTypeDescription
character *numberZero-based character offset
line *numberZero-based line number
projectPath *stringAbsolute path to Godot project root
scriptPath *stringPath to script relative to project root

lsp_get_symbols

Get document symbols for a GDScript file from Godot Language Server.

ParameterTypeDescription
projectPath *stringAbsolute path to Godot project root
scriptPath *stringPath 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

ParameterTypeDescription
line *number1-based line number
scriptPath *stringAbsolute or project-relative script path

dap_remove_breakpoint

Remove a breakpoint in a Godot script at a specific line

ParameterTypeDescription
line *number1-based line number
scriptPath *stringAbsolute 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