Logo de Godot Agent

Godot Agent

Organisation
aigengame

Godot automation for AI agents to build and verify projects through a CLI, Agent Skill, or MCP server, with structured results, headless operations, and live runtime control.

Éditeuraigengame
Dépôtgodot-agent
LanguePython
Forks
9
Étoiles
53
Outils disponibles
0
Type de transportstdio
LicenceMIT
Liens
  • Connectez des outils à vos workflows IA

    Godot Agent propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 0 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité open source

    53 étoiles et 9 forks sur le dépôt associé.

gda — Godot Automation for AI Agents

gda — Godot automation for AI agents

Read this in: 简体中文 · Español · 日本語

CI PyPI Python Godot Platform MCP License

Build and verify Godot projects with AI coding agents, shell scripts, and CI. gda provides Godot automation with headless validation as well as live runtime inspection and control through a CLI, a bundled Agent Skill, or an MCP server, returning structured results agents can act on.

Two complementary modes cover this build-and-verify workflow:

  • Headless — create and edit project content, compile scripts, validate and boot scenes, analyze project structure, and export builds without an editor plugin or daemon.
  • Live — inspect and drive the running game through a per-project daemon: runtime tree and state, input simulation, frame capture, logs, errors, and performance.

Product overview · CLI, Agent Skill, or MCP? · Playable demos · PyPI

TL;DR

Just tell your AI agent:

Install the gda CLI with uv tool install gda (or pipx install gda), and install its Agent Skill with npx skills add aigengame/godot-agent --skill gda -g. Then read the skill, follow it to set up gda for my Godot project, and check the setup with gda info --json.

Contents

Why gda?

  • Verification across the game development lifecycle. Headless validation confirms project readiness; Live operations return runtime evidence about actual behavior.
  • Structured results and discoverable schemas. With --json, each command emits exactly one result object on stdout. Typed input and output models also power --schema and the generated MCP tool surface.
  • Godot-native bounded context and ubiquitous language. gda uses a single Godot-aligned operation model and vocabulary, giving agents consistent terms for project content and runtime state.
  • Operate reliably in restricted environments. Redirect user data and logs to writable locations, isolate concurrent runs, and return typed environment failures before Godot crashes. This makes it easier for agents to work in sandboxes.
  • Three complementary access paths. Run the CLI directly from an agent, shell, or CI; install the bundled Agent Skill for reusable guidance; or expose the same operations as MCP tools. See CLI, Agent Skill, or MCP? for comparison and tradeoffs.
  • Bounded automation with actionable failures. Timeouts, bounded output, typed failures, diagnostics, and mutation reports help agents decide what happened and how to recover.

These capabilities were refined while building a real game, with the work documented in a public dogfooding record.

Capabilities at a glance

GoalWhat gda providesStart with
Build Godot project content (Headless)Create and edit scenes, nodes, scripts, resources, project settings, shaders, and themesscene / node / script / resource / project / shader / theme
Verify project readiness (Headless)Compile scripts, validate dependencies, boot scenes in a bounded preflight, analyze project structure, and export buildsscript validate / scene validate / scene preflight / project / export
Verify runtime behavior (Live)Read runtime state, call declared methods, simulate input, capture frames, collect logs and errors, and sample performancegda daemon start, then game / input / screen / diag / logger / perf
Connect an AI coding agentUse direct CLI execution, reusable Agent Skill guidance, or MCP tool discovery and callinggda / gda skill / gda-mcp
Run reliably in automationReceive structured results, typed schemas and failures, bounded execution, isolated logs, and actionable diagnostics--json / --schema / --user-data-root / timeouts

Installation

Requirements: Python 3.13+ and a Godot binary — 4.4+ for Headless operations, 4.6+ for Live operations (see the platform support table).

Install gda, the Godot CLI for AI agents, from PyPI onto your PATH:

bash
uv tool install gda      # or: pipx install gda
gda --help

Into an existing environment:

bash
pip install gda

From source (for development or unreleased changes):

bash
git clone https://github.com/aigengame/godot-agent.git
cd godot-agent
uv sync                  # create the environment + install dependencies
uv run gda --help

Quick start

Point gda at your Godot binary, then ask the engine its version — no project needed:

bash
export GDA_GODOT="/path/to/Godot"   # or pass --godot to any command; Windows: use *_console.exe
gda info --json
# {"major":4,"minor":6,"patch":3,"status":"stable","string":"4.6.3-stable (official)",…}

With --json, stdout is clean JSON you can pipe; all engine and script diagnostics go to stderr:

bash
gda info --json | jq .major   # → 4

No project yet? gda still runs projectless on plain filesystem paths (relative to your current directory); only res:// resolution needs a project. See Configuration. To create one, use a destination that is new or empty (entries such as .git do not count). gda writes one file, a project.godot that sets only the name:

bash
gda project create ./my-game --name "My Game" --json
# {"path":"/home/me/my-game","name":"My Game","created_dirs":["/home/me/my-game"],"project_file":"/home/me/my-game/project.godot"}

Build a scene headlessly. Point gda at a Godot project (a directory with project.godot) once; relative paths then resolve inside it, and nodes are addressed by their path relative to the scene root:

bash
export GDA_PROJECT="/path/to/your/godot-project"   # or pass --project to any command
gda scene create scenes/main.tscn --root-type Node2D --json
gda node add  scenes/main.tscn --type Sprite2D --name Hero --json
gda node set  scenes/main.tscn --node Hero --property position --value 10,20 --json
gda scene validate scenes/main.tscn --json
gda scene get scenes/main.tscn --json
# {"path":"scenes/main.tscn","root":{"name":"main","type":"Node2D","children":[{"name":"Hero",…}]}}

Inspect and drive the running game with Live operations. These operations run the project's main scene, so point it at the one you just built via Godot's application/run/main_scene project setting (the editor's Application → Run → Main Scene), then start the daemon (Godot 4.6+):

bash
gda project set application/run/main_scene --value res://scenes/main.tscn --json  # a Godot project setting key
gda daemon start             # start the daemon for $GDA_PROJECT (installs the in-game harness)
gda game tree --json         # the runtime scene tree, after _ready
gda perf monitors --json     # live engine counters: fps, memory, node count
gda daemon stop

(gda screen capture works live too, but needs a windowed session — start the daemon with gda daemon start --windowed.)

Choose your integration

gda provides one operation surface through three complementary access paths. Use the CLI, the Agent Skill, the MCP server, or a combination that fits your workflow. The underlying operations and structured results stay the same.

Not sure which path fits your workflow? See Godot MCP vs CLI vs Agent Skill.

Access pathBest forHow
CLI (gda)humans, shell scripts, CI, and agents that can run commandsgda <group> <command> --json
Agent Skill (gda skill)coding agents that support Agent Skills and prefer a token-light CLI workflowprint or install the bundled guidance (below)
MCP (gda-mcp)MCP-compatible clients that discover and call toolsrun the stdio server (below)

Use the Agent Skill

gda ships an Agent Skill that teaches an AI agent when and how to drive Godot from the CLI. Use it when your coding agent supports Agent Skills and you want reusable guidance without registering a server. Install it with the Skills CLI, which asks which agents to install it for (name them with -a):

bash
npx skills add aigengame/godot-agent --skill gda       # this project
npx skills add aigengame/godot-agent --skill gda -g    # all your projects

This copy tracks the repository's main branch. For guidance that matches your installed gda version, use gda skill instead. It prints the same file from the package, or installs it:

bash
gda skill                                              # print SKILL.md (redirect it anywhere)
gda skill --install --provider claude --scope user     # resolve a known agent's skills dir
gda skill --install --dir ~/.claude/skills/gda         # …or give the directory yourself

Either way you still install gda, since the Agent Skill drives it. The Agent Skill recipes list each agent's skills directory.

Use the MCP server

gda-mcp is the bundled Godot MCP server for compatible clients. It implements the Model Context Protocol over stdio and is available through the [mcp] extra. Run it through uvx without a permanent install:

bash
uvx --from "gda[mcp]" gda-mcp

The server resolves two pieces of context — which Godot project to drive and which Godot binary to run (MCP can't pass per-call flags):

  • Project — set GDA_PROJECT. Without it, gda-mcp uses the workspace roots the client sends (the folder you have open) — but the MCP 2026-07-28 revision deprecates roots, so pinning GDA_PROJECT is the setup that keeps working. See Configuration.
  • Engine — set GDA_GODOT to your Godot binary, e.g. "GDA_GODOT": "/path/to/Godot".

gda-mcp accepts both protocol eras — the pre-2026 MCP protocol and the 2026-07-28 revision — but not with the same project resolution: a pre-2026 client still sends roots, a client on the new revision does not, so it resolves from GDA_PROJECT or the server's cwd. Pin GDA_PROJECT before your client moves. On the new revision gda-mcp also marks tools/list cacheable (1-hour TTL).

Register with Coding Agents

Project scope, .mcp.json at the repo root (auto-detects the project via roots):

json
{
  "mcpServers": {
    "gda-mcp": {
      "command": "uvx",
      "args": ["--from", "gda[mcp]", "gda-mcp"]
    }
  }
}

User scope (every project) — the CLI, which writes ~/.claude.json:

bash
claude mcp add --scope user gda-mcp -- uvx --from "gda[mcp]" gda-mcp

Project scope, .codex/config.toml at the repo root (the project must be trusted):

toml
[mcp_servers.gda-mcp]
command = "uvx"
args = ["--from", "gda[mcp]", "gda-mcp"]

[mcp_servers.gda-mcp.env]
GDA_PROJECT = "/absolute/path/to/your/godot/project"

User scope (available everywhere, but pinned to one project) — the same table in ~/.codex/config.toml, or add it with the CLI. Codex has no workspace variable, so GDA_PROJECT is an absolute path; use project scope if you work across several projects:

bash
codex mcp add gda-mcp --env GDA_PROJECT=/absolute/path/to/your/godot/project -- \
  uvx --from "gda[mcp]" gda-mcp

Project scope, .cursor/mcp.json at the repo root (${workspaceFolder} tracks the open project):

json
{
  "mcpServers": {
    "gda-mcp": {
      "type": "stdio",
      "command": "/path/to/uvx",
      "args": ["--from", "gda[mcp]", "gda-mcp"],
      "env": {
        "GDA_PROJECT": "${workspaceFolder}"
      }
    }
  }
}

User scope (available everywhere, but pinned to one project) — the same config in ~/.cursor/mcp.json with GDA_PROJECT set to an absolute path (${workspaceFolder} only works in project scope; use project scope for several projects). Cursor has no mcp add command — register via the JSON above or the Settings → MCP UI.

Cursor is GUI-launched with a minimal PATH, so a bare uvx may not resolve — hence the absolute command above; fill it with the output of which uvx. Full recipes — PATH injection, Claude Desktop, user vs project scope, per-agent project pinning — are in the registration recipes.

How it works

gda is one Godot automation toolchain with three components and two complementary operation modes:

ComponentRole
gdaRuns Godot operations directly as a CLI and returns structured --json results.
gda-mcpMaps the same operations and structured results to MCP tools generated from --schema.
gda-daemonSupervises a running game per project for Live operations.
  • Headless operations run as one-shot processes — no daemon or editor plugin to install (create a scene, edit a script, validate or boot a scene, export, analyze).
  • Live operations require a running game — gda-daemon launches it, injects an inert in-game harness, and brokers requests over local IPC (runtime tree, input, frame capture, performance, diagnostics).

Headless validation confirms project readiness; Live operations return runtime evidence about actual behavior.

The in-game harness gda-daemon injects is dev-only: gda export run strips it from the artifact entirely, and built any other way (editor GUI, raw godot --export) it still self-disables in the exported game — so a shipped game never runs anything daemon-related (and via gda export run, doesn't even carry it).

Platform & version support:

ModeGodotPlatforms
Headless4.4+macOS · Linux · Windows¹
Live² (via gda-daemon)4.6+macOS · Linux · Windows

¹ Headless is cross-platform by design (one-shot processes, no platform-specific dependency) — Windows keeps the full headless surface, though CI does not exercise it. ² A windowed session, which screen capture and screen frames need, requires a display: an on-console GUI session on macOS, $DISPLAY or $WAYLAND_DISPLAY on Linux (Xvfb on a headless host), or an accessible interactive desktop on Windows. Each command's --schema constraints state its supported platforms.

Command reference

gda commands are grouped by Godot domain object and use a small, consistent verb vocabulary, so the same verb means the same thing in every group:

VerbMeaning
create / deleteMake / remove a standalone entity (scene, script, resource).
add / removeAdd / remove a sub-entity within a container (node → scene).
get / listRead one entity / enumerate many.
setMutate a property.
domain verbsplay, run, export, import, … kept with their natural meaning.

Every command supports --json and --schema. Commands that read or mutate a res:// path resolve a project context. Run gda <group> <command> --help for full flags — gda --help is the authoritative list of what is installed.

New here? A good first path: gda info → gda scene create → gda node add → gda script validate → gda export run; then go live with gda daemon start → gda game tree.

Meta — about gda / the engine itself

CommandWhat it does
gda infoReport the Godot engine version.
gda versionReport which gda is installed and where it came from (--json adds the install provenance).
gda helpShow a command's help (gda help scene get) or the whole CLI's.
gda schemaEmit the whole command surface as one machine-readable JSON manifest.
gda skillEmit or install the bundled Agent Skill (SKILL.md) that teaches an agent how to drive gda.

Headless commands — Godot 4.4+, all platforms

scene — scene files (.tscn)

CommandWhat it does
scene createCreate a new .tscn with the given root node type, or --inherits a base scene: a variant whose root is the base's root (not node add --instance, which composes a child).
scene getRead a scene and report its structured node tree.
scene listEnumerate the .tscn scenes in the resolved project.
scene get-exportsList the @export properties a scene's nodes' scripts declare.
scene deleteDelete a scene file and report what was removed.
scene validateCheck a scene statically — dependencies resolve and bound scripts compile, sub-scenes included — without instantiating it (the project's autoloads still start, as on every --project command); a broken scene is a verdict (valid: false, exit 0), not an error.
scene preflightCheck a scene dynamically — boot it headless, run _ready, and report started plus the script errors seen; a failed start is a verdict, not an error.

Run both — scene get reads a scene with its script missing as healthy, only validate names the file, and only preflight catches a first-frame failure.

node — nodes within a scene file

CommandWhat it does
node addAdd a node under a parent, optionally at --index: a built-in type, a class_name script, or --instance to compose another scene as an instanced child.
node getRead a node's properties (by node path) as typed JSON.
node listList a scene's node tree with each node's path relative to the root.
node setSet a node property, coercing the value to its declared Godot type. On a Control, position writes the four offsets; a Container's children are layout-managed and carry no offsets — set custom_minimum_size, the size flags, or the parent's layout.
node removeRemove a node (and its subtree) by node path. Refuses a node another scene declares: inherited, or inside an instanced child.
node duplicateDuplicate a node (and its subtree) under its parent.
node moveReparent a node (and its subtree) under a new parent, or reorder it with --index. Refuses a node another scene declares: inherited, or inside an instanced child.
node connect-signalWire a source node's signal to a target node's method.
node disconnect-signalUnwire an existing signal→method connection.

script — GDScript files (.gd)

CommandWhat it does
script createCreate a new .gd script from a template or verbatim --content.
script getRead a script's source plus its class_name / extends metadata.
script listEnumerate the .gd scripts in the resolved project.
script setEdit a script via search-replace, line-range, or full overwrite.
script deleteDelete a script file and report what was removed.
script attachAttach a .gd script to a node (by node path) in a scene.
script validateCompile-check .gd scripts — several PATHs in one engine launch, or --all for the whole project — reporting one aggregate valid plus a per-script entry under scripts; a failing script is a verdict (valid: false, exit 0), not an error.
script runRun a project script headless as a one-shot entry point, under --timeout. Its exit_status and stderr pass straight through; stdout is inline up to 64 KiB and, when truncated, the complete stdout is written to the file the result names — and a non-zero quit() is data, not a failure, unless you pass --strict.

project — the project as a whole (settings, autoloads, static analysis)

CommandWhat it does
project createCreate a minimal project, a project.godot that sets only the name, in a new or empty destination directory; entries such as .git do not count.
project infoReport project metadata (name, main scene, viewport, engine version).
project getRead a single project setting by section/key as typed JSON.
project listList the project's settings keys (customized by default; --all adds engine defaults, --section filters by prefix).
project setSet a project setting, coercing the value to its declared type.
project add-autoloadRegister an autoload singleton (name → script/scene).
project remove-autoloadUnregister an autoload singleton by name.
project add-input-actionRegister an InputMap action bound to keys and/or a controller (--key, --joy-button, --joy-axis as <axis>[:<sign>], --device, --deadzone, --physical); at least one binding is required.
project remove-input-actionUnregister an InputMap action by name.
project scanRun the engine import pass so the engine writes its index of class_name scripts. gda does not check whether the index is current: run this on a fresh checkout and after you add, rename or delete a class_name script.
project find-referencesFind every project file that references a given resource.
project dependenciesMap each scene/resource to the resources it depends on.
project find-unused-resourcesFind resource files that nothing references.
project statisticsReport the project's file/line counts, autoloads, and more.

resource — resource files (.tres) and the project's imported assets

CommandWhat it does
resource createCreate a new .tres resource of the given type.
resource getRead a .tres resource's properties as typed JSON.
resource setSet a .tres property, coercing the value to its declared type.
resource deleteDelete a .tres resource file and report what was removed.
resource uidResolve a resource UID ↔ its res:// path in both directions.
resource importEnsure assets are imported into the project cache (clean-worktree loading).

export — export presets and artifacts

CommandWhat it does
export listEnumerate the project's export presets (name, platform, …).
export getReport one preset's details plus export-template install status.
export runExport a named preset (release / debug / pack) to a destination, and report what it left in the project: every file created (classified), and the rewritten files outside the .godot/ cache — a cold cache leaves thousands behind, and rewrites inside the cache are not reported.
export smokeRun an exported artifact headless and bounded, and report its exit status, output, and recognized diagnostics. --quit-after lets the engine shut down normally (it asserts no project completion), and --timeout is only a hard bound, so it cannot prove shutdown-only diagnostics are absent.

export smoke takes a macOS .app or a directly host-runnable file. End-to-end evidence covers macOS and Windows Desktop; Linux is not measured and not promised.

shader — shader files (.gdshader)

CommandWhat it does
shader createCreate a new .gdshader from a template or verbatim --content.
shader getRead a shader's source plus its shader_type.
shader setEdit a .gdshader via search-replace, line-range, or full overwrite.

theme — theme resources (.tres)

CommandWhat it does
theme createCreate a new, loadable .tres Theme resource (no-clobber).

Live commands — via gda-daemon; Godot 4.6+

daemon — the live runtime lifecycle

CommandWhat it does
daemon startStart the per-project daemon and install the in-game harness; the engine session launches lazily, on the first operation that needs one (--windowed for screen capture). The project must define application/run/main_scene, or pass --scene.
daemon wait-readyLaunch the engine session now and wait for it; --timeout is the daemon's budget for that launch, not a hard ceiling on the call. Read-only diag / logger tails never launch a session, so run this first when such a read is your first live command. A ready session is not a cleanly started scene: read clean_start before you read the game as evidence.
daemon stopStop the project's daemon and any running engine session.
daemon statusReport the daemon's state (running, windowed mode, session, and that session's startup verdict).
daemon installInstall the in-game harness without starting a daemon, and report what it wrote. Idempotent; daemon start does this itself, so use it only to review or commit the project.godot change on its own.
daemon uninstallRemove the in-game harness — autoload entry, harness files, .uid sidecars — restoring project.godot, and report what was removed. Dev-tooling teardown only: gda export run already strips the harness from exported builds.

game — the running game's runtime scene graph

CommandWhat it does
game treeRead the running game's runtime scene tree (after _ready).
game findFind runtime nodes by engine class, script, group, name, or unique name, instead of by path. --type is the ENGINE class (subclass-inclusive) and never a project class_name — --script res://path.gd is what reaches that.
game getRead a runtime node's live properties by node path; explicit names can address attached-script variables.
game rectRead a runtime Control's layout output by node path: the rendered viewport rect, the same rect in the parent's space, and the intrinsic and combined minimum sizes.
game setSet a runtime node property, or an explicitly named attached-script variable, on the running game; verified reports whether the read-back matched.
game callInvoke one method the node's script declares in GDA_CALLABLE — the project's own read-only promise, which gda cannot verify — and project what it returns; nothing undeclared is ever called.

game call reads what game get cannot: state your project exposes as a method. game set --property position follows the same Control rule as node set. game get refuses a Control's position, size, global_position and global_rect; game rect is the read for them.

diag — runtime diagnostics

CommandWhat it does
diag errorsTail the running game's runtime errors (categorized).

logger — structured runtime log

CommandWhat it does
logger tailTail the running game's whole runtime log as structured records (--level, --limit, --raw).

perf — performance monitoring

CommandWhat it does
perf monitorsSnapshot the engine's counters — or, with --frames, sample a window with statistics and budget verdicts (--summary omits the per-frame samples).
perf monitorSample a node property or signal over a frame window (timeline).

input — input simulation

CommandWhat it does
input keyInject a key event (with modifiers).
input mouse-clickInject a complete click gesture (move, press, release) at (x, y).
input mouse-moveInject mouse motion to (x, y).
input actionPress/release a mapped input action — polled state only, unless --as-event delivers it to _input/_gui_input.
input tapTap one key or action: press, hold, release across frames (--key delivers an event, --action sets polled state unless --as-event).
input sequenceInject a multi-frame event timeline.

Read injected mouse coordinates from event.position — in a daemon session get_mouse_position() / get_global_mouse_position() can stay stale.

In a windowed session, a loss of OS focus after input action releases the held state: the engine releases every pressed input, an injected action state included, when another application or a second windowed session takes the focus, and regaining the focus does not restore it. Press again after such a loss.

screen — viewport capture

CommandWhat it does
screen captureCapture one viewport frame to a PNG; --settle-frames N lets the game run N frames first.
screen framesCapture an N-frame PNG sequence (--summary for a compact aggregate result; --settle-frames runs once, before the first frame).

A capture's receipt carries two frame counters: engine_frame is the boundary the read was taken at, render_frame the drawn frame the pixels are. Each screen frames item includes a receipt; --summary keeps only the first and last receipts.

Global flags

FlagDescription
--jsonEmit the outcome as a single JSON object on stdout — the result on success, the {"error": {…}} envelope on failure. Without it, both are printed as a concise human-readable rendering instead. Accepted before the command as well.
--schemaEmit the command's input/output JSON Schema contract (no Godot spawned).
--godotPath to the Godot binary (overrides $GDA_GODOT).
--projectGodot project directory for res:// resolution (overrides $GDA_PROJECT; defaults to the current directory if it is a project). Domain commands only. Resolving a project runs that project's code — see Project code execution.
--versionPrint the installed gda version. With --json, also where it came from — install kind (wheel, editable, or unknown) and, for an editable install, the source checkout's Git revision.
--helpShow usage for gda or any command.

Configuration

gda finds the Godot binary from the --godot <path> flag, otherwise the GDA_GODOT environment variable — set one of these so gda can locate your engine.

Domain commands resolve a Godot project so that res:// paths resolve. A named directory must be a project, or gda reports an error; when nothing resolves, gda runs projectless — plain filesystem paths work, res:// does not.

ContextProject resolution order
CLI--project → GDA_PROJECT (both strict: an invalid one is an error) → the current directory, if it holds project.godot → projectless
MCP (gda-mcp)GDA_PROJECT (strict) → the client's workspace root, if it sends a valid one (pre-2026 clients) → the server's cwd, if it is a project → projectless

Pointing gda at a project runs some of that project's own code — by design, since the project is trusted (ADR-0009):

  • Autoloads start on every --project operation that boots the game-facing engine, read-only ones included (a cached resource import boots nothing).
  • Scene scripts' _init runs wherever a scene is instantiated: every mutating node command and node get; scene get / scene list / node list read without instantiating.
  • script run executes the named script in full; scene preflight boots the scene and runs its _ready.
  • resource import on a cache miss and the native export of export run boot the editor instead: the engine's importers and the project's import plugins run, with every @tool autoload and the enabled editor plugins; plain autoloads do not. export run also runs the export plugins those editor plugins register, after it reads the preset in an ordinary operation that starts the autoloads.
  • game call runs the one method the node's GDA_CALLABLE declaration names; nothing undeclared is ever called.

Headless Godot interleaves its banner, warnings, and print() output into stdout. gda solves this with a sentinel contract (ADR-0002):

  • The GDScript payload emits exactly one result, wrapped in unique sentinels on stdout:

    <<<GDA:RESULT>>>{ …json… }<<<GDA:END>>>
  • It routes all of its own diagnostics to stderr; stdout carries nothing but the contract.

  • gda extracts and parses only the bytes between the sentinels, ignoring the surrounding engine noise, and surfaces stderr for inspection.

This is what makes gda's output safe to consume programmatically, and it generalizes to the per-message protocol the daemon uses for live operations.

Exit codes (the CLI ABI). A failed gda run exits with a small, stable code so a shell or agent can branch on the failure category without parsing the JSON error:

Exit codeCategoryWhen
0—Success.
2usagegda could not resolve what was asked for — an unrecognized command or option. A recognized near miss carries the invocation to use instead in the envelope's hint.
127environmentThe Godot binary could not be launched (shell convention: not found).
124environmentGodot launched but did not return before the timeout (shell convention: timed out); the envelope carries the partial output captured so far.
3versionThe detected Godot version is below the supported minimum.
4operationThe engine ran but the operation failed — a registered operation error, an engine crash, or an unstructured non-zero exit.
5parseThe process claimed success but violated the structured-output contract.
6liveA live operation failed — e.g. no running daemon/session, or a live timeout.

These values are the public ABI; their authoritative source is src/gda/exit_codes.py. The {"error": {category, code, …}} envelope carries a finer code within each category (e.g. path_not_found, already_exists, node_not_found all sit under operation / exit 4). The full registry lives in ADR-0002's GdaError.code table.

bash
uv sync                       # set up the environment

uv run pytest                 # run the full suite (includes e2e tests against a real Godot)
uv run pytest -m "not e2e"    # unit tests only (no Godot binary required)
uv run pytest -m e2e          # only the end-to-end tests (needs Godot 4.4+ on this machine)
uv run pytest -n 0            # any tier above serially (the default also goes serial under --pdb)
uv run pytest -n 2            # any tier above on two workers, e.g. beside another e2e run
uv run pytest -m e2e --splits 3 --group 2 --splitting-algorithm least_duration   # one third of the e2e tier, as one CI shard runs it

uv run ruff check .           # lint
uv run ruff format .          # auto-format (append --check to verify without writing)
uv run pyright                # type-check (src/ + tests/, basic mode)

The e2e tier runs by default with uv run pytest, and fails loudly — saying how to fix it — when GDA_GODOT does not name a Godot binary, rather than skipping. Deselect the whole tier with -m "not e2e" (CI's per-PR job uses exactly this).

Every tier runs on 4 xdist workers by default, capped at the CPU count, with --dist loadgroup keeping the tests that open a window on one worker. That policy is pyproject.toml's addopts and the default is in tests/conftest.py; CI runs the same entry with no flags. PYTEST_XDIST_AUTO_NUM_WORKERS=<n> changes the default for one run (CI maps the repository variable PYTEST_WORKERS to it), and an explicit -n wins over both. Adjust the count to your machine's core count: too many workers contend for CPU time. CI's e2e job shards the tier across runners with the same --splits/--group flags; the e2e-shards dispatch input or the repository variable E2E_SHARDS sets the count (default 4; 1 runs the tier as one job).

Linting and formatting are enforced by ruff — one tool in place of flake8 + black + isort, configured under [tool.ruff] in pyproject.toml and pinned via uv.lock so local and CI agree. CI's lint job runs ruff check . and ruff format --check . on every PR; run uv run ruff format . before committing to stay green.

Types are checked by pyright in basic mode, covering src/ and tests/ and configured under [tool.pyright] in pyproject.toml (also pinned via uv.lock). CI's type-check job runs uv run --frozen pyright on every PR.

src/gda/
  cli.py            # composition root (Typer): mounts every command group
  exit_codes.py     # the exit-status table (public ABI)
  commands/         # one module per command group: its models, renderers, commands
  surface/          # the command surface: the per-command descriptor (one
                    # HeadlessCommand per command), the shared options, the CLI dispatch
                    # tails + the runner seams the groups call, the `gda schema` manifest
  core/             # the library the daemon, the surface and the groups build on
    project/        # the project on disk: project.godot, file tree, import cache, paths
    engine/         # one Godot process: binary resolution (flag > $GDA_GODOT),
                    # the one-shot headless spawn seam, user data, the sentinel wire
    contract/       # the shared typed I/O core (Pydantic) backing --json and --schema,
                    # and the shared human-readable (non-JSON) render helpers
    failure/        # failure classification + the error-code registry
    steps/          # the shared steps: the engine import pass and the completed run
  ops/operations.gd # the headless GDScript payload, dispatched by operation name
  daemon/           # gda-daemon: server, session supervision, IPC protocol, discovery,
                    # and the live-operation client that talks to it
  harness/          # the inert in-game `gda` autoload injected into a live session
  mcp/              # gda-mcp: the schema → MCP-tool server
tests/              # unit + e2e tests against a real engine (shared fixtures in conftest.py)
docs/adr/           # architecture decision records
CONTEXT.md          # the project's shared domain language

gda has two external boundaries, each behind a seam fast tests inject through: spawning a one-shot headless process (core/engine/launch.py) and talking to a running game via the daemon (daemon/client.py). The e2e suite drives a real engine across both.

Contributing

Contributions are welcome. Read CONTEXT.md to align with the project's shared language, and review the relevant ADRs for the area you're touching. Issues and PRDs live as GitHub issues. Commits follow the Conventional Commits specification. Python code is linted and formatted with ruff and type-checked with pyright, both enforced in CI — run uv run ruff format . and uv run pyright before committing (see Development above).

Working with an AI coding agent? This project is built to be agent-navigable — AGENTS.md is the entry point for coding agents, wiring in the project's rules, domain docs, and skills.

License

Released under the MIT License. Copyright (c) 2026 aigengame.

Utilisez le serveur MCP Godot Agent avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois Godot Agent connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajoutez Godot Agent en tant que serveur

Lorsque l’état du connecteur affiche « Prêt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « Prêt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP Godot Agent.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "godot-agent": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de Godot Agent, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de Godot Agent.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser Godot Agent pour m’aider dans cette tâche ?
Godot Agent
Bien sûr. J’ai tout lu.
Voici ce que j’ai trouvé avec Godot Agent.

Foire aux questions

À quoi sert le serveur MCP Godot Agent ?

Godot Agent est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP Godot Agent avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser Godot Agent avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP Godot Agent avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois Godot Agent connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP Godot Agent à TypingMind ?

Godot Agent fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privées sur votre ordinateur.

Quels outils le serveur MCP Godot Agent propose-t-il dans TypingMind ?

Godot Agent propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP Godot Agent ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si Godot Agent nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇