Godot MCP Goのロゴ

Godot MCP Go

コミュニティ
regiellis

Build, inspect, test, and debug Godot games from your terminal. Automate repetitive work with scripts, or let an agent use the same commands. No agent, model, or AI account is required. MCP is an optional interface.

公開者regiellis
リポジトリgodot-mcp-go
言語HTML
フォーク
5
スター
65
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Godot MCP Goは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには65件のスターと5件のフォークがあります。

Swallowtail

Godot automation. Your game. Your workflow.

Build, inspect, test, and debug Godot games from your terminal. Automate repetitive work with scripts, or let an agent use the same commands. No agent, model, or AI account is required. MCP is an optional interface.

[!NOTE] This project shipped as godot-mcp through 0.11. That name described one connector, and the toolkit automates Godot from a terminal, a shell script, or a connected client, with MCP as one optional interface. The old name also matched many other Godot MCP projects. Swallowtail names the toolkit itself. The repository URL, the Go module path, and the godot-mcp executable are unchanged, with no scheduled removal date.

Use swallowtail for new commands and scripts. Release bundles also include the deprecated godot-mcp executable with identical functionality. Preview an existing project's addon migration with swallowtail migrate --project DIR. See Migrating to Swallowtail. The project is MIT licensed.

Terminal quickstart · Scripting and CI · Command reference · Releases

Your game. Your workflow.

  • Run commands: inspect a scene, change a property, validate it, and play the result.
  • Automate your workflow: turn repeatable work into shell scripts, checks, and playtests. Use JSON output and exit codes to connect the steps.
  • Add your own commands: drop a GDScript file into res://mcp_commands/ and it shows up in the CLI, in help, and as an MCP tool. See Add your own commands.
  • Connect your tools: expose the same operations through the CLI or an MCP client. Choose the task and review what changes.

From a project with the addon enabled:

sh
swallowtail scene tree
swallowtail scene validate --path res://hello.tscn
swallowtail scene play --mode res://hello.tscn
swallowtail runtime tree
swallowtail scene stop

The quickstart builds that scene from an empty project. Godot 4.7.2 is the current development build.

Working with Godot's built-in CLI

Godot already includes a command-line interface for launching the engine, running scripts, importing assets, and exporting projects. Swallowtail uses your installed Godot engine for those operations and adds commands that work with the live editor session and running game.

JobHow Swallowtail handles it
Import, check, test, export, runInvokes Godot and reports results for shell workflows
Inspect and edit scenesConnects to the editor addon and operates on the live session
PlaytestReads runtime state, sends input, captures frames, and checks behavior
Discover APIsQueries the running engine's ClassDB and command catalog

Godot is installed separately. See Godot's command-line reference and How it works.

Game QA and release reports

Available in 1.1.0, swallowtail qa runs game-owned GDScript scenarios, retains logs, screenshots and frame samples, compares compatible baselines and generates branded PDFs. Reports distinguish source tests, manual package coverage and ship-readiness assessments.

sh
swallowtail qa init --project /games/example
swallowtail qa run --project /games/example --config qa/config.json
swallowtail qa report --project /games/example --run path/to/run --out output/qa.pdf

Python 3.10+ is required. PDF generation needs ReportLab 4 in that interpreter. Set SWALLOWTAIL_PYTHON to use a project environment. PresentMon is an optional Windows capture dependency. Platform bundles include the swallowtail-qa skill. See Game QA and reports.

CLI first, MCP optional

Run commands from your terminal, reuse them in scripts, or add them to CI. Read the results directly, or pipe JSON into your next step.

MCP connects clients that use that protocol to the same command handlers. It is available through serve over stdio or the editor's HTTP endpoint. Neither is required for ordinary CLI use.

For MCP clients, the default typed catalog can be large. serve --typed=false exposes one generic tool when that suits the client better. See MCP setup and tool context costs.

How it compares

What each tool documents: how you start, what you set up, and what you can run from a terminal, a script, or an MCP client. Sources and the comparison date follow the table.

What you needSwallowtailGodot AIGodot MCP Native
Starting pointStandalone automation CLI + editor addonMCP integration for the editorMCP editor addon + companion CLI
Run from your terminalUse swallowtail directly, without MCPDocumented setup uses godot-ai attach to connect an MCP clientUse gdmcp through its separate local CLI API
Use without an AI agentYes. The CLI and scripts need no agent, model, or accountIts requirements list an MCP client; every documented workflow runs through oneYes, through its gdmcp CLI, which the docs present for agents with shell access
Set up the connectionGo binary + Godot addon for live commandsPython server via uv + Godot plugin + MCP clientGodot addon; prebuilt CLI for terminal use
Automate a workflowCreate projects, import, check, test, export, and operate the live editorEdit scenes and scripts, run projects and test suites through MCP toolsDiscover tools, run domain commands, and preview or apply command batches
Inspect a playtestRuntime state, input, captures, breakpoints, stepping, and hot reloadGame state, input sequences, screenshots, and error logsRuntime probe, breakpoints, stack and variable inspection, and execution control
Connect an MCP clientOptional stdio or editor-hosted HTTP interfaceDocumented primary workflowMCP interface alongside the separate CLI API

Compared against the published documentation on September 7, 2026: Godot AI, its tool reference, Godot MCP Native, and its CLI reference. This summarizes documented workflows, not an exhaustive feature audit.

Why I built Swallowtail

A note from the maintainer.

After twenty years as a programmer, I just wanted to build games. Games for my son. Games for myself.

I don't have the budget to hire a team for every idea. I also don't want to spend ten years on one uncertain project at the expense of my health or my family. Swallowtail grew out of finding a way to make progress with the time and resources I have.

What I wanted was a toolkit that lets me work the way I want on any given day, and that includes using AI as one of the tools. Some days that is a terminal and a script I can run again. Some days it is an agent driving the editor while I review what it changed. Swallowtail gives both the same commands, so the choice stays mine: what to try, what to keep, and when to stop and play it.

I understand the concerns about this technology. I'm not OpenAI, Anthropic, or NVIDIA. I'm an individual programmer making games. You don't have to agree with my choices, and I respect that. I'm here to build and share, not to fight. Questions and criticism are welcome. Bullying and personal attacks aren't.

The full note covers the project's purpose and what the toolkit requires.

Samples

Reversi is a complete game built by agents driving swallowtail: eleven screens, thirty GDScript files, every widget drawn in code. Play it in the browser or clone the repository. Smaller demos live under samples/, and the Samples page lists them all.

Contributing

This repository is a one-way public mirror with squashed history. Open an issue or discussion for bugs, questions, or proposed changes. Pull requests cannot be merged directly into the canonical development history.

main is the released tool and dev is what comes next, published as it lands with no support promise. The asset-library branch is an addon packaging snapshot. Maintainer-only scripts/, internal docs, and eval harnesses are omitted from the public mirror; Taskfile tasks that depend on those files are maintainer-only.

How it works

swallowtail (Go CLI / client)  ──WebSocket(JSON-RPC 2.0):9080──▶  Godot editor addon (server)
MCP client (streamable HTTP) ──POST /mcp:9100────────────────▶        │
                                            file IPC (user://) ◀──────┘──▶  running game
                                                              (MCPGameInspector / MCPGameInput autoloads)
  • The addon runs a WebSocket server inside the editor (the long-lived process). The CLI is a short-lived client that dials in, runs one command, and exits.
  • The CLI auto-discovers the port from <project>/.godot/swallowtail.json (written by the addon) when run inside the project; otherwise pass --port (default 9080).
  • runtime/input commands reach the running game via file IPC brokered by two game-side autoloads, or, for a standalone debug build with no editor open, over the game's own direct server (swallowtail --game …, opt-in project setting). Either way you can inspect the live scene tree, read/set node state, capture frames, and simulate input.
  • Supported scene edits use Godot's UndoRedo. Review script and file changes in version control.

Requirements

  • Godot 4.7 (launch with godot), the version this is developed and released against. 4.3 through 4.8 work in beta.
  • Go 1.26+ to build the CLI.
  • Task (optional but recommended) for the dev workflow.

[!IMPORTANT] 4.7 is the target; 4.3 is the floor, in beta. The addon loads and serves on Godot 4.3 through 4.8. Registration is per group, so an engine that can't compile a group skips it and lists it under unavailable_groups in engine.commands, and the six APIs newer than 4.3 (scene close, unsaved-tab reporting, csg bake, the AGX tonemap, runtime error capture) refuse with the version they need. The 3.x line is out of scope: convert with Godot's own --convert-3to4 first.

Builds this release was run against: the official 4.3.0, 4.4, 4.5, and 4.6 stables, a headless editor per version against its own copy of the project, each registering all 332 commands with unavailable_groups absent and the game IPC live; 4.7.1-rc (d6096250e) and 4.7.2-rc (36a04fe52); and a 4.8-dev build from master (eda2a482e, after dev 2). On 4.8 the addon runs unmodified, with every command of that build registering and no parse or compile errors, and engine.search picks up 4.8's FuzzySearch automatically. 4.8 writes a unique_id attribute into saved scenes that 4.7 does not, so a project saved by 4.8 is not round-trip clean back to 4.7; that is an engine format change, not an addon one.

Moving a project between versions: Porting between Godot versions (beta).

[!NOTE] C# / .NET? Supported. The csharp group scaffolds and builds .NET projects (csharp.info / csharp.setup / csharp.build), and script.* is C#-aware: script.create writes a C# class template for .cs paths, script.validate --path X.cs compiles with per-file structured diagnostics, and script.list recognizes C# classes. Running C# scripts in-editor requires a Godot .NET editor build plus the dotnet SDK (swallowtail doctor checks for it); editor.run_script / runtime.eval execute GDScript either way, and the introspection layer is language-agnostic.

Windows note: if the editor ever crashes with ERROR: WASAPI: GetBufferSize, another app has taken exclusive control of your audio device (Chrome on resume is a common culprit). Turn off exclusive mode in Windows Sound settings (Device properties → Advanced → uncheck "Allow applications to take exclusive control"). It's an OS/audio issue, not this addon. (--audio-driver Dummy also sidesteps it if needed.)

Build

sh
task build          # -> bin/swallowtail(.exe)
# or:
go build -o bin/swallowtail ./cmd/swallowtail

Install into a project

From an unpacked release bundle, install the addon (and the agent skill) into any Godot project in one step:

sh
swallowtail install --project /path/to/your/project --enable

Starting from nothing? Bootstrap a fresh Godot 4.7 project and wire the addon in one command:

sh
swallowtail create --path ./mygame --install --enable

Copies addons/swallowtail/ and .claude/skills/swallowtail/ in and enables the plugin in project.godot. See INSTALL.md for flags and the manual alternative.

[!WARNING] install --enable was broken in 0.6.0 through 0.8.2. On those versions the installer enabled the plugin without writing the two game-side autoloads, so every runtime.* and input.* command failed on a fresh install while the editor-side commands worked. If a project was installed by an affected version, toggle the plugin off and back on in Project Settings > Plugins, which injects the pair; swallowtail doctor reports the missing entries and the repair command. Current builds write them at install time.

[!CAUTION] Before you ship: the addon is development tooling. Disable the plugin and add addons/swallowtail/* to every export preset's exclude filter so it never rides into an exported game. Before you ship has the two steps and the scan that proves they worked; INSTALL.md carries the same steps offline.

Quick start

  1. Open the test project (or your own with the addon installed) in Godot 4.7+:
    sh
    task editor          # godot --path project --editor
    From an installed CLI, swallowtail launch opens one editor for the project it is run in, refuses to stack a second on a running one, and logs the editor's output to .godot/swallowtail-launch.log rather than the terminal. Add --headless for a windowless session. Ensure the Swallowtail plugin is enabled (Project → Project Settings → Plugins). The addon prints [MCP] Server listening on ws://127.0.0.1:9080.
  2. From inside the project directory, drive it:
    sh
    swallowtail project info
    swallowtail scene tree
    swallowtail node add --type Sprite2D --name Player --parent-path .
    swallowtail node set --node-path Player --property position --value "Vector2(100, 200)"

Discover, then drive

Because the CLI talks to the live engine, you can ask it what your engine build actually supports instead of guessing:

sh
swallowtail engine search --query offset_transform          # find members across all classes
swallowtail engine class-info --class Control --filter transform
swallowtail engine doc-search --query "wrap text"           # search the docs prose by concept
swallowtail engine docs --class Label --member autowrap_mode  # read what it means

Even with no typed wrapper, node.set/node.get work on any property the live node exposes, and editor.run_script / runtime.eval run arbitrary GDScript, so any property or callable the running build exposes is reachable, whatever its version.

Playtest loop

sh
swallowtail scene play --mode main
swallowtail runtime tree
swallowtail input action --action ui_accept --pressed true
swallowtail runtime get --node-path Player --properties '["position"]'
swallowtail runtime screenshot --save-path user://shot.png
swallowtail scene stop

Use as an MCP server

swallowtail serve runs as a Model Context Protocol server over stdio, so MCP clients (Claude Desktop, Claude Code, …) can drive Godot directly. By default every command is a typed MCP tool with a real schema built live from the addon's param docs; godot_run remains the generic escape hatch ({ "method": "<group>.<command>", "params": {...} }, the same surface as the CLI), and serve --typed=false keeps tool-limited clients on that single tool. godot_run and the typed runtime_*/input_* tools accept game: true to drive a standalone debug-build game with no editor open. The model discovers the running engine's API with engine.search/engine.class_info and then acts.

Example client config:

json
{
  "mcpServers": {
    "swallowtail": {
      "command": "swallowtail",
      "args": ["serve", "--project", "/path/to/your/project"]
    }
  }
}

--project sets where the server discovers the addon port. If the editor is down when the client connects, serve starts with the generic godot_run tool alone and adds the typed tools once the editor answers. To drive an editor on another machine, forward its loopback port over SSH; Reach an editor on another machine has the commands for Windows, Linux and macOS.

serve also ships MCP prompts: the durable playbooks (discover-then-drive, spatial-placement, launch-recovery, bug-hunt) as first-class prompts your client can pull with prompts/get, served even when the editor is down. Those sit alongside the read-only godot:// resources and the instructions string every connect carries.

Or connect straight to the editor (no binary)

The addon itself hosts a streamable-HTTP MCP endpoint inside the editor at POST /mcp on 127.0.0.1, auto-port 9100-9115 (the actual port is in <project>/.godot/swallowtail.json as http_port; pin one with the swallowtail/network/http_port project setting or SWALLOWTAIL_HTTP_PORT). Any MCP client that speaks streamable HTTP connects with no external process:

json
{
  "mcpServers": {
    "swallowtail": {
      "url": "http://127.0.0.1:9100/mcp"
    }
  }
}

Same tool surface as serve (the generic godot_run plus typed per-command tools), same guards. Set swallowtail/network/http_typed to false in Project Settings to list only godot_run for tool-limited clients, or swallowtail/network/mcp_http to false to turn the endpoint off.

Live dashboard (opt-in)

swallowtail dashboard starts a small web UI that shows live activity across every client on the wire: the CLI, serve/MCP, the editor's HTTP endpoint, and anything else you have connected. It reports tool calls, error rate, per-group breakdown, active connections, uptime, and a recent-activity feed. The page (htmx + anime.js) and its assets are embedded in the binary; no Node/build step.

sh
swallowtail dashboard --port 8090     # then open http://127.0.0.1:8090

Run it from inside your project dir (it discovers the addon port like the CLI), or pass --project DIR / --addon-port N. It holds a single persistent connection and polls the addon's stats.snapshot.

The same dashboard also lives inside the editor: the addon docks a Swallowtail panel (right side, movable like any dock) with the same numbers: stat tiles, error banner, top groups, recent errors, and the live timeline with filters. It reads them in-process from the addon, so it needs no extra process and no port. The web UI stays for watching from outside the editor; the dock is there while you work.

Build on it

The CLI is built to be scripted. The contract: piped results on stdout as JSON (--format tsv|ndjson for shell tools, SWALLOWTAIL_FORMAT to pin one per shell; a terminal gets color-coded tables instead, never a pipe), errors on stderr with JSON-RPC codes, exit codes 0/1/2, port discovery from the project directory, and doctor/status as scriptable preflights. The editor-less subcommands are built for the same contract: import, check, export, and run exit with a code CI can branch on and return structured errors rather than a log to grep. The catalog itself is queryable JSON, and engine commands --docs returns every command with typed params, so generators and UIs read the command list instead of hardcoding one. Underneath it all is a stable JSON-RPC-over-WebSocket wire that any language can speak: a Python script, a browser panel, a QA rig driving a standalone game via --game.

bash
# hide every Label in the edited scene
swallowtail batch find-nodes-by-type --type Label | jq -r '.matches[].path' \
  | while read -r p; do swallowtail node set --node-path "$p" --property visible --value false; done

Worked examples (a CI smoke test, a Python client, a working browser panel): Scripting and CI · Your own tools and UIs.

Command groups

analysis android anim_tree animation audio authoring batch camera cleanup csg csharp doc editor engine export fs gridmap import input input_map lighting localization material mesh multiplayer navigation node particles path pcg physics profiling project resource runtime scatter scene scene2d scene3d script shader skeleton spatial test theme tilemap ui wfc

Invocation is swallowtail <group> <command> [--flag value ...]. Names accept kebab- or snake-case; values that start with [/{ are parsed as JSON. On error the CLI prints the JSON-RPC code, message, and any suggestions to stderr. Explore the catalog from the CLI itself: swallowtail help all lists every group's commands, swallowtail <group> --help narrows to one group, and swallowtail <group> <command> --help prints that command's param table.

Agent skill

skills/swallowtail/SKILL.md is a Claude Code skill that teaches an agent to use the CLI well: the discover-then-drive loop, Godot's node/scene composition style, the command groups, core workflows, and pitfalls. Drop it into a project's .claude/skills/ so an agent starts with the loop, the groups, and the pitfalls already loaded.

Layout

cmd/swallowtail/                 Go CLI entry
internal/{protocol,client}/    JSON-RPC envelope + WebSocket client/discovery
project/                       Godot 4.7 test project (run with godot)
project/addons/swallowtail/      the GDScript addon (commands/, services/, utils/)
skills/swallowtail/SKILL.md      the agent skill
Taskfile.yml                   dev tasks (run `task` to list)

Command implementations live in project/addons/swallowtail/commands/ (each group a *_commands.gd), registered in command_router.gd; add a command by registering a handler there. The services/ autoloads broker the running-game IPC.

License

MIT. See LICENSE.

インストール

TypingMind
{
  "mcpServers": {
    "godot-mcp-go": {
      "command": "godot-mcp",
      "args": []
    }
  }
}

Godot MCP GoのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Godot MCP Goに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Godot MCP Goをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Godot MCP GoのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "godot-mcp-go": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてGodot MCP GoのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Godot MCP GoのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Godot MCP Goを使ってこのタスクを手伝ってもらえますか?
Godot MCP Go
はい、読みました。
Godot MCP Goで調べた結果をお伝えします。

よくある質問

Godot MCP Go MCPサーバーは何に使いますか?

Godot MCP Goは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでGodot MCP Go MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでGodot MCP Goを利用できます。

TypingMindでGodot MCP Go MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Godot MCP Goを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Godot MCP Go MCPをTypingMindに接続するにはどうすればよいですか?

Godot MCP GoはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでGodot MCP Go MCPのどのようなツールを利用できますか?

Godot MCP GoはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Godot MCP Go MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Godot MCP Goで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇