little-helper
Little Helper bridges your Godot 4 game engine with modern Large Language Models and autonomous coding agents
In-Engine AI Copilot & Model Context Protocol (MCP) Bridge for Godot 4 1. In-Engine AI Chat: Pair-program directly inside the Godot editor using your favorite LLM (OpenAI, Anthropic Claude, Google Gemini, DeepSeek, local Ollama, or custom OpenAI-compatible endpoints). 2. External Agent (MCP Bridge): Connect autonomous AI coding agents (Antigravity, Cursor, Claude Desktop) directly to your running Godot editor via the open Model Context Protocol (MCP). 1. Installation 1. Copy or clone the addons/little_helper folder into your Godot project's addons/ directory. 2.
Summary extracted from the README.
๐ค LittleHelper for Godot 4
LittleHelper is a lightweight, zero-dependency Godot 4 editor plugin that bridges the gap between your game engine and modern AI models. It works in two flexible modes:
- In-Engine AI Chat: Pair-program directly inside the Godot editor using your favorite LLM (OpenAI, Anthropic Claude, Google Gemini, DeepSeek, local Ollama, or custom OpenAI-compatible endpoints).
- External Agent (MCP Bridge): Connect autonomous AI coding agents (Antigravity, Cursor, Claude Desktop) directly to your running Godot editor via the open Model Context Protocol (MCP).
โจ Features
- ๐ฎ 24 Native Engine Tools: Live scene inspection, node creation/removal, scene instantiation, reparenting, property editing, resource creation, script writing/patching, signal wiring, project settings, ClassDB reflection, GDScript evaluation, scene management, project execution, and debug log tailing.
- ๐ Direct Script Writing & Patching: Write full
.gdscripts to disk or patch targeted functions with one-click [Apply to Script] directly from chat code blocks. - ๐ Context Mentions (@) & Attachments (+): Reference your active script (
@script), selected node (@node), scene hierarchy (@tree), API docs (@docs), or debug logs (@logs) directly in prompts, or attach any project asset via the+menu. - โฉ๏ธ Full Undo / Redo: Scene and resource modifications (
add_node,remove_node,instantiate_scene,reparent_node,set_node_property,create_resource,attach_script,connect_signal) integrate with Godot'sEditorUndoRedoManager(Ctrl+Z/Ctrl+Y). - ๐ In-Engine API Docs: Look up real Godot 4 class methods, property signatures, and signals using the
/doccommand andget_documentationtool to eliminate hallucinated syntax. - โ๏ธ Custom Instructions / Persona: Set custom developer rules in Settings (e.g. static typing, specific architecture, 2D/3D project conventions).
- ๐พ Persistent Chat Sessions: Chat history persists automatically across editor restarts in
user://little_helper_chat_history.json. - โก Slash Commands: Quick editor shortcuts with autocompletion (
/selected,/select,/tree,/inspect,/tools,/doc,/script,/save,/open,/remove,/run,/stop,/logs,/setting,/eval,/clear). - ๐ Secure Credentials: API keys are stored exclusively in
user://little_helper_settings.cfgโnever inres://or source control. - ๐ฆ Zero External Dependencies: In-engine chat uses Godot's native
HTTPRequest. The MCP bridge uses standard Node.js built-ins (net,readline). Nonpm installor third-party packages required.
๐ Compatibility & Requirements
- Engine: Godot 4.2+ (Tested on Godot 4.3 & 4.4).
- In-Engine Chat: Zero external dependencies. Uses Godot's built-in
HTTPRequest. - MCP Bridge (Optional): Requires Node.js (v18+ recommended) installed on your system only if you want to connect external agents (Cursor, Claude Desktop, Antigravity) via stdio MCP.
๐ Quick Start
1. Installation
- Copy or clone the
addons/little_helperfolder into your Godot project'saddons/directory. - In the Godot editor, open Project โ Project Settings โ Plugins.
- Enable the LittleHelper plugin.
- The LittleHelper dock will appear in your editor docks (usually beside the Inspector or FileSystem).
๐ ๏ธ Operating Modes
Open the Settings drawer (gear icon in the top header) to choose your operating mode:
Mode 1: In-Engine Chat
Chat directly with an AI assistant inside the dock.
- Supported Providers:
- OpenAI:
gpt-4o,gpt-4o-mini, etc. - Anthropic Claude:
claude-3-5-sonnet-20241022, etc. - Google Gemini:
gemini-flash-lite-latest,gemini-3.1-flash-lite,gemini-3-flash-preview, etc. - DeepSeek:
deepseek-chat,deepseek-coder - Ollama (Local Offline):
llama3,mistral,qwen2.5-coder, etc. - Custom Endpoint: Any OpenAI-compatible server (LM Studio, LocalAI, vLLM, OpenRouter).
- OpenAI:
Mode 2: External Agent (MCP Bridge)
Turn your Godot editor into an MCP server. External AI coding assistants can inspect and modify your project live while you work.
Add the following to your agent's MCP configuration (mcp_config.json or claude_desktop_config.json):
{
"mcpServers": {
"godot-little-helper": {
"command": "node",
"args": [
"addons/little_helper/bridge/mcp_bridge.js"
],
"env": {
"GODOT_PORT": "9099"
}
}
}
}
(Tip: You can click the "Copy MCP Config" button inside the LittleHelper settings drawer to copy your project's exact absolute path snippet).
Mode 3: Dual Mode
Both In-Engine Chat and the External MCP Bridge run concurrently.
๐ Context Mentions (@) & Attachments (+)
LittleHelper features a modern, intuitive copilot prompt interface (Ask anything, @ to mention, / for actions):
+Attach Button: Click the+button beside the prompt to instantly attach the active script, selected node, scene hierarchy, debug logs, or browse project files (.gd,.tscn,.tres).@Mentions: Type@anywhere in your message to trigger the context autocomplete menu:@script: Injects the active GDScript currently open in Godot's Script Editor.@node: Injects the currently selected node(s), class, and inspector properties.@tree: Injects the active scene hierarchy summary.@docs: Injects Godot 4 engine API references from ClassDB.@logs: Injects recent Godot engine debug & error logs.res://...: Directly attach any project file path in your prompt.
โจ๏ธ Slash Commands
Type / in the prompt input to open the command autocomplete menu:
| Command | Usage | Description |
|---|---|---|
/help |
/help |
Show all commands and dock status |
/selected |
/selected |
Inspect currently selected node(s) |
/select |
/select <node_path> |
Select and focus a node in the scene tree & inspector |
/tree |
/tree |
View full scene hierarchy |
/inspect |
/inspect <node_path> |
Inspect node properties, transform, and script |
/tools |
/tools |
List all 24 registered engine & MCP tools |
/doc |
/doc <class>[.<symbol>] |
Fetch Godot 4 class/method API documentation |
/script |
/script |
Inspect currently active GDScript in script editor |
/save |
/save [all] |
Save the active scene (or /save all for all open scenes) |
/open |
/open <scene_path> |
Open a scene (.tscn) in the editor tab |
/remove |
/remove <node_path> |
Remove a node from scene with Undo/Redo |
/run |
/run [scene_path] |
Run main project scene (or custom scene path) in debug mode |
/stop |
/stop |
Stop the running debug instance |
/logs |
/logs [lines] |
Tail recent engine output and error logs (godot.log) |
/setting |
/setting <name_or_prefix> [value] |
Get, set, or search ProjectSettings (project.godot) |
/eval |
/eval <code> |
Evaluate a GDScript expression or code block |
/clear |
/clear |
Clear conversation history |
๐งฐ Registered MCP Tools
When connected via MCP, external agents have access to 24 real-time tools:
Scene & Node Hierarchy
get_selected_nodes: Get currently selected editor nodes.get_scene_tree: Traverse full node hierarchy with configurablemax_depth.inspect_node: Detailed node metadata, export properties, scripts, and configuration warnings.select_node: Programmatically select and focus a node in Godot's inspector.add_node: Instantiate and attach new child nodes with Undo/Redo.remove_node: Delete nodes from the active scene with Undo/Redo.instantiate_scene: Spawn packed sub-scene instances (.tscn) into the hierarchy with Undo/Redo.reparent_node: Move nodes to a new parent in the active scene with Undo/Redo.set_node_property: Mutate properties (types, vectors, colors) with Undo/Redo.create_resource: Instantiate Resources (e.g.BoxShape3D,StandardMaterial3D,BoxMesh) and assign to nodes or save to disk with Undo/Redo.connect_signal: Wire signals between nodes with Undo/Redo.attach_script: Assign a GDScript file to a node with Undo/Redo.
Scene & Project Lifecycle
save_scene: Save active scene or all modified scenes to disk.open_scene: Open and switch active editor scene from path.run_project: Launch debug instance of main scene or specified.tscn.stop_project: Kill the running debug instance.get_debug_logs: Tail the Godot engine log file (user://logs/godot.log).project_setting: Get, set, or search project settings inproject.godot.
Reflection & Code Execution
get_class_info: Query Godot's built-inClassDBfor methods, properties, and signals.get_documentation: Inspect full Godot 4 API documentation with exact method signatures and property types.read_script: Read source code of any GDScript with optional line ranges.write_script: Write or create complete GDScript files directly on disk and open them in Script Editor.patch_script: Replace targeted code blocks or functions in existing scripts.execute_code: Execute a dynamic GDScript snippet or expression inside the editor with scene root access.
๐ Directory Structure
addons/little_helper/
โโโ plugin.cfg # Plugin metadata & editor registration
โโโ little_helper.gd # Plugin lifecycle entry script
โโโ icon.svg # Mascot avatar & editor icon
โโโ LICENSE.txt # MIT License
โโโ README.md # Plugin documentation
โโโ bridge/
โ โโโ mcp_bridge.js # Lightweight Node.js stdio MCP bridge
โโโ src/
โ โโโ core/
โ โ โโโ tool_registry.gd # Central tool dispatcher & aggregator
โ โ โโโ bridge_server.gd # Localhost TCP JSON-RPC bridge server
โ โโโ tools/
โ โ โโโ tool_utils.gd # Shared engine utilities & variant sanitizing
โ โ โโโ scene_tools.gd # Scene hierarchy inspection & selection
โ โ โโโ node_tools.gd # Node creation, reparenting & Undo/Redo mutations
โ โ โโโ project_tools.gd # Scene lifecycle, debug logs & ProjectSettings
โ โ โโโ code_tools.gd # ClassDB reflection & dynamic GDScript evaluation
โ โโโ agent/
โ โ โโโ llm_client.gd # Native HTTPRequest multi-provider LLM client
โ โโโ ui/
โ โโโ little_helper_dock.gd # Dock controller & slash command handling
โ โโโ little_helper_dock.tscn # Dock user interface & settings panel
โโโ icons/ # Custom vector UI icons
๐ License
MIT License. Free to use, modify, and distribute in any personal or commercial Godot project.