SkillAgentSearch skills...

defold-mcp

MCP server + desktop app for the Defold game engine: AI agents can build, bundle, run, hot-reload and inspect Defold projects, drive the running engine, and search the API reference

Install / Use

claude mcp add Fulviuus -- npx -y github:Fulviuus/defold-mcp

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

80/100

Category

Other

Supported Platforms

Claude Code
Claude Desktop

Our assessment of defold-mcp

defold-mcp scores 80/100 on our quality scale, 214th of 252 Other skills we index.

Its MCP Server is 14 KB long, well organised into 25 sections with 12 code examples: a thorough specification that gives an agent plenty to work with.

It has 10 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
30/30
Structure
20/20
Description
15/15
Adoption
4/20
Freshness
11/15

Maintenance, license and trust

  • The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 95/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

defold-mcp compared with similar skills

All 4 of these similar skills score higher than defold-mcp; compare them before choosing.

SkillScoreStarsUpdatedFormat
defold-mcp (this skill)by Fulviuus80103mo agoMCP Server
Agent-Reachby Panniantong10094.8k1d agoCLAUDE.md
headroomby headroomlabs-ai10074.8ktodayCLAUDE.md
CowAgentby zhayujie10047.3ktodayCLAUDE.md
Scraplingby D4Vinci10086.5k1d agoMCP Server

Frequently asked questions

How do I install defold-mcp?
Run claude mcp add Fulviuus -- npx -y github:Fulviuus/defold-mcp. The install tabs above show the steps for each supported agent.
Which AI agents does defold-mcp work with?
It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
Is defold-mcp safe to use?
It is MIT-licensed and scores 95/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is defold-mcp still maintained?
The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
<p align="center"> <img src="assets/logo.png" alt="Defold MCP" width="520" /> </p>

defold-mcp-server

An MCP server that gives AI coding agents first-class access to the Defold game engine: inspect and edit projects, build and bundle with bob, run games locally, hot-reload code into a live game, drive the running engine, and search the official API reference.

Everything works headlessly — no Defold editor required. A desktop app manages the server, streams its activity to a live console, and auto-configures your AI agents.

Features

  • Project intelligence — parse game.project, collections, game objects, GUI scenes, atlases and any other text-format resource into structured JSON; outline Lua scripts (functions, go.property definitions, requires, handled messages); find references to any asset before renaming or deleting it.
  • Build pipeline — download/cache bob.jar per Defold version, compile with structured error diagnostics (resource, line, message), bundle for all supported platforms, resolve dependencies.
  • Run & debug loop — download/cache the dmengine dev binary, launch the game in the background, read its logs incrementally, stop it gracefully.
  • Live engine control — hot reload changed scripts/resources into the running game (the same mechanism the editor uses), toggle the profiler and physics debug, set frame cap and vsync, record gameplay video, reboot or exit the engine, and stream engine logs over TCP — including from editor-launched games and devices on the network.
  • Visual feedback — screenshot the running game as an image the agent can actually look at, to verify rendering, layout and UI (not just logs).
  • API documentation — search and read the official Defold API reference for the exact engine version you build with (go, gui, msg, sys, physics, render, editor scripting, native extension SDK, ...).

Requirements

  • Node.js >= 18
  • Java (JDK 17+, 21+ recommended) — only for the build tools (defold_build, defold_bundle, defold_resolve_dependencies). Everything else works without Java. Install from Adoptium or brew install openjdk.
  • Network access on first use of a Defold version (downloads bob.jar, dmengine, API docs from official Defold servers into ~/.defold-mcp).

Installation

git clone https://github.com/Fulviuus/defold-mcp.git && cd defold-mcp
npm install
npm run build   # produces dist/index.js
npm test        # optional: 46 unit + end-to-end tests

Desktop app (recommended for multi-agent setups)

A Tauri app in desktop/ manages the server for you: a live console of everything the server does (every tool call, build output, engine logs), start/stop with a chosen host/port, and one-click configuration of AI agents (Claude Code, Claude Desktop, Codex CLI, Cursor, Gemini CLI, VS Code Copilot, Windsurf, Cline, Zed).

cd desktop
npm install
npm run dev      # run the app (requires Rust toolchain)
npm run build    # produce a distributable bundle (.app / .msi / .deb)

In the app: pick host/port → Start server → choose an agent from the dropdown → Configure. The app merges a defold entry into that agent's own config file (backing up the original) pointing at http://127.0.0.1:<port>/mcp. All connected agents share this one server instance, and its activity streams into the console.

Transports

The server speaks both MCP transports:

  • stdio (default) — the client spawns the server itself: node dist/index.js
  • Streamable HTTP — one long-lived server many clients connect to: node dist/index.js --transport http --host 127.0.0.1 --port 9810 (MCP endpoint at /mcp, status at /health). This is what the desktop app runs. DNS-rebinding protection is enabled on loopback binds; binding 0.0.0.0 is possible for LAN use but exposes the endpoint to your network — only do this on trusted networks.

Claude Code

claude mcp add defold -- node /path/to/defold-mcp/dist/index.js

or in .mcp.json:

{
  "mcpServers": {
    "defold": {
      "command": "node",
      "args": ["/path/to/defold-mcp/dist/index.js"],
      "env": { "DEFOLD_PROJECT_ROOT": "/path/to/your/game" }
    }
  }
}

OpenAI Codex CLI

codex mcp add defold \
  --env DEFOLD_PROJECT_ROOT=/path/to/your/game \
  --env JAVA_HOME=/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home \
  -- node /path/to/defold-mcp/dist/index.js

or in ~/.codex/config.toml:

[mcp_servers.defold]
command = "node"
args = ["/path/to/defold-mcp/dist/index.js"]
startup_timeout_sec = 30   # default 10
tool_timeout_sec = 600     # default 60 — too short for defold_build/defold_bundle

[mcp_servers.defold.env]
DEFOLD_PROJECT_ROOT = "/path/to/your/game"
JAVA_HOME = "/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home"

Two Codex-specific gotchas:

  • Raise tool_timeout_sec (default 60 s): first builds download platform packages and can run for minutes; Codex kills slower tool calls.
  • Codex sanitizes the server environment (only HOME, PATH, USER, ... survive). JAVA_HOME and DEFOLD_PROJECT_ROOT are not inherited from your shell — set them in the env table, or whitelist shell vars with env_vars = ["JAVA_HOME"].

Gemini CLI

gemini mcp add -s user \
  -e DEFOLD_PROJECT_ROOT=/path/to/your/game \
  -e JAVA_HOME=/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home \
  defold node /path/to/defold-mcp/dist/index.js

(or the same mcpServers JSON block as Claude Desktop in ~/.gemini/settings.json; note gemini mcp add defaults to project scope — -s user makes it global. Per-server "timeout" is in ms, default 600000.)

Cursor / Claude Desktop / Windsurf / Cline

All use the same mcpServers JSON shape — only the file location differs:

| Client | File | |---|---| | Cursor | .cursor/mcp.json (project) or ~/.cursor/mcp.json (global) | | Claude Desktop | claude_desktop_config.json | | Windsurf | ~/.codeium/windsurf/mcp_config.json | | Cline | Cline panel → MCP Servers → Configure (cline_mcp_settings.json) |

{
  "mcpServers": {
    "defold": {
      "command": "node",
      "args": ["/path/to/defold-mcp/dist/index.js"],
      "env": {
        "DEFOLD_PROJECT_ROOT": "/path/to/your/game",
        "JAVA_HOME": "/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home"
      }
    }
  }
}

In Cursor, "DEFOLD_PROJECT_ROOT": "${workspaceFolder}" works. Cursor only forwards ~40 tools to the agent across all servers — disable unused servers if you hit the cap.

VS Code (GitHub Copilot agent mode)

.vscode/mcp.json — note the top-level key is servers, not mcpServers:

{
  "servers": {
    "defold": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/defold-mcp/dist/index.js"],
      "env": { "DEFOLD_PROJECT_ROOT": "${workspaceFolder}" }
    }
  }
}

Zed

~/.config/zed/settings.json — Zed calls them context_servers:

{
  "context_servers": {
    "defold": {
      "command": "node",
      "args": ["/path/to/defold-mcp/dist/index.js"],
      "env": { "DEFOLD_PROJECT_ROOT": "/path/to/your/game" }
    }
  }
}

Any other MCP client

The server is a standard stdio MCP server, so anything that speaks MCP works. You only ever configure three things:

  1. Launch: node /path/to/defold-mcp/dist/index.js
  2. DEFOLD_PROJECT_ROOT (optional): if the agent's working directory is inside the game project, the server finds game.project by walking upward and no env var is needed.
  3. JAVA_HOME (optional): only needed for defold_build/defold_bundle/defold_resolve_dependencies when java is not on the PATH the client gives the server.

If the client enforces per-tool timeouts, raise them for the build tools (first builds can take minutes).

Environment variables

| Variable | Purpose | |---|---| | DEFOLD_PROJECT_ROOT | Default project root (directory containing game.project). Tools also accept an explicit project_root argument, and fall back to searching upward from the working directory. | | DEFOLD_MCP_CACHE_DIR | Toolchain cache directory (default ~/.defold-mcp). | | JAVA_HOME | JDK used to run bob.jar (otherwise java from PATH). | | DEFOLD_EMAIL / DEFOLD_AUTH | Defaults for bob resolve against private dependency hosts. |

Tools

Project & settings

| Tool | Description | |---|---| | defold_project_info | Project overview: title, main collection, display, dependencies, resource counts. | | defold_get_settings | Read game.project (all sections / one section / one key). | | defold_set_setting | Set or remove a game.project key, preserving formatting. Auto-appends the trailing c for compiled-resource keys (see below). | | defold_list_dependencies | Declared dependencies + locally resolved archives. | | defold_add_dependency / defold_remove_dependency | Manage dependency URLs. |

Resources

| Tool | Description | |---|---| | defold_list_resources | List project files by type/name with pagination. | | defold_parse_resource | Parse any resource to JSON (collections, .go, .gui, atlases, ...; Lua outline for scripts; sections for game.project). | | defold_create_resource | Scaffold script / gui_script / render_script / lua / go / collection / gui / atlas / input_binding from valid templates. | | defold_find_references | Find files referencing an asset (also dotted require form for Lua modules). |

Build & toolchain

| Tool | Description | |---|---| | defold_setup | Install/verify Java, bob.jar, dmengine and API docs for a Defold version (stable, beta, alpha or 1.12.4). | | defold_build | bob build with structured error/warning diagnostics. | | defold_bundle | Platform bundles (macOS/Windows/Linux/Android/iOS/HTML5); signing flags via extra_args. | | defold_resolve_dependencies | bob resolve. | | defold_clean | Delete build output. | | defold_doctor | Environment diagnosis (Java, cache, project root, running games). |

Run & live engine

| Tool | Description | |---|---| | defold_run | Build + launch the game with the dmengine dev binary (background). | | defold_stop | Stop the launched game. | | defold_game_logs | Read captured stdout/stderr incrementally (stable offsets, filtering). | | defold_engine_info | /info + ping of a running engine (local or device). | | defold_hot_reload | Compile and hot-swap resources into the running game. | | defold_engine_command | @system commands: toggle_profile, toggle_physics_debug, set_update_frequency, set_vsync, start/stop_record, reboot, exit, ... | | defold_engine_logs | Stream the engine TCP log service (works for editor-launched games and devices too). | | defold_editor_logs | Stream the running Defold editor's console (build + engine output) via its /console/stream HTTP endpoint (Defold 1.13.0+). | | defold_screenshot | Capture a screenshot of the running game as a viewable image, so agents can visually verify rendering/layout/UI (macOS; requires Screen Recording permission). |

API reference

| Tool | Description | |---|---| | defold_api_search | Ranked search across the full API reference for a given engine version. | | defold_api_doc | Full docs for an element (go.animate) or a namespace index (go), with parameters, returns and examples. |

Typical agent workflow

defold_setup                          # once: verify Java, fetch bob + engine + docs
defold_project_info                   # orient
defold_parse_resource /main/main.collection
... edit files with normal file tools ...
defold_build                          # structured compile errors
defold_run                            # launch
defold_hot_reload ["/main/player.script"]   # iterate without restarting
defold_game_logs filter="ERROR"       # observe
defold_stop

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars10
CategoryOther
Updated3mo ago
Forks0

Languages

TypeScript

Trust signals

95/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

2 info
defold-mcp — MCP Server: Install & Safety Check | SkillAgent