godot-interactive
БесплатноБез исполняемых скриптовНе проверенInteract with a running Godot game via MCP — launch, screenshot, click, inspect scene tree, get/set properties, call methods, run dev-console commands…
от bfollington★ 53 звезды на GitHubОб этом скилле
Godot Interactive (MCP)
Drive a running Godot game from an agent: launch it, look at it, click it, inspect the scene tree, read and write node properties, call methods, and run dev-console commands — an observe → interact → observe loop that replaces manual playtesting for anything verifiable.
The two halves
- godot-mcp — a Node MCP server. Spawns/kills the Godot process, captures its stdout, and
wraps a file protocol into
game_*tools. - GodotMCPBridge — a GDScript autoload running inside the game. Polls a command file every frame, executes commands on the live tree, writes responses and screenshots.
Everything interactive goes through the bridge. If the bridge isn't loaded or isn't being
found, every game_* tool times out while run_project still reports success.
Limitation: the MCP spawns its own Godot process. It cannot attach to a game you launched with F5 from the editor.
Protocol v4.0: where the files live
Every bridge file lives in a per-project directory:
dir = $GODOT_MCP_DIR, else /tmp/godot-mcp/<slug>
slug = <project-dir-name>-<first 8 hex of sha1(absolute project path)>
<dir>/command.json written by the client, consumed + deleted by the bridge
<dir>/response.json written by the bridge, read by the client
<dir>/screenshot.png written by the bridge
<dir>/instance.json written on ready — {project, slug, pid, bridge_version}
Before v4.0 these were fixed /tmp/godot_* paths. Two Godot projects running at once
silently ate each other's commands and clobbered each other's screenshots — results came back
from the wrong game with no error at all. If you find /tmp/godot_screenshot.png or
/tmp/godot_mcp_command.json referenced anywhere, that documentation or that bridge copy is
pre-v4.0 and wrong.
The slug formula is a cross-language contract — the GDScript bridge, the TypeScript server, and any shell/python helpers must derive it identically. Change it in one place and the tooling stops finding the game.
Clients discover live games by globbing /tmp/godot-mcp/*/instance.json; a crash leaves the
manifest behind, so treat it as a hint and confirm the pid is alive.
Two instances of the same project still share a directory and will race. Launch the
secondary with GODOT_MCP_DISABLE_BRIDGE=1 (the bundled template's env var — rename it to your
project's prefix if you prefer) so only the primary answers. Before driving a game, check
whether the user already has one running (pgrep -fl "Godot.*<project>") — if they do, your
commands land in their session and theirs land in yours.
Four things that silently lie to you
These are the expensive failures. All four look like a bug in whatever you just changed.
1. The screenshot on disk can be stale
game_screenshot reads the PNG off disk — it does not force a capture. Fresh frames come
from exactly two places:
- an explicit
{"action":"screenshot"}over the file protocol (request_screenshot()), which always captures regardless of settings; or - the automatic post-command capture after
game_click/game_key/game_console/game_set_property— which only happens whenscreenshots_enabledis true.
screenshots_enabled defaults to false (the readback costs ~29ms of GPU stall), so on a
fresh launch every screenshot returned alongside a command is whatever was last written.
Enable it once per session:
game_set_property(node_path: "/root/GodotMCPBridge", property: "screenshots_enabled", value: true)
There is also no periodic screenshot timer (the old every-2s save was a recurring 15–40ms main-thread stall). Nothing refreshes the PNG on its own.
2. An occluded window renders nothing
Godot stops drawing when its window is fully occluded. viewport.get_texture().get_image()
then returns null, the bridge keeps serving the last frame it drew, and everything else
keeps working perfectly — commands succeed, game_scene_tree reports live and correct state,
and every screenshot shows a world from before your change.
The tell: two screenshots across a change that should be visible come back byte-identical.
md5 -q /tmp/godot-mcp/<slug>/screenshot.png # same hash twice = nothing is rendering
Do not "fix" this with open -a Godot (macOS) — that raises the Godot editor, a separate
process that will occlude the game and cause the exact problem you are trying to solve. Raise
the game by PID:
PID=$(ps ax -o pid,command | grep "[G]odot -d --path $PWD" | awk '{print $1}' | head -1)
osascript -e "tell application \"System Events\" to set frontmost of (first process whose unix id is $PID) to true"
If you are in a session where you cannot make the game window visibly frontmost, screenshots
are simply unavailable — stop retrying. game_scene_tree, game_get_property,
game_call_method, game_console and get_debug_output all work regardless. Verify state by
reading propertie
Установить godot-interactive в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл godot-interactive?
Interact with a running Godot game via MCP — launch, screenshot, click, inspect scene tree, get/set properties, call methods, run dev-console commands. Powered by godot-mcp + the GodotMCPBridge autoload (protocol v4.0).
Как установить скилл godot-interactive?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл godot-interactive запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic