defold-mcp

defold-mcp

3.4

If you are the rightful owner of defold-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

defold-mcp is an open-source Model Context Protocol (MCP) server designed to integrate the Defold game engine with modern developer tools and AI-powered workflows.

defold-mcp is a pioneering open-source MCP server that aims to enhance the Defold game engine by integrating it with modern developer tools and AI workflows. It provides a comprehensive set of tools to automate, inspect, and manage Defold projects programmatically. This server allows developers to launch and debug projects, generate and edit Lua scripts, manage project settings, and enable hot-reloading and real-time analytics. It is designed to work seamlessly on Apple Silicon Macs and supports environment configuration via `.env` files. The server is extensible, allowing developers to improve and adapt it for new workflows. defold-mcp is particularly useful for developers looking to integrate AI-assisted game development tools like Cursor.

Features

  • Comprehensive Toolset: Exposes a wide range of Defold project operations as MCP tools.
  • Apple Silicon & Dotenv Support: Works out-of-the-box on Apple Silicon Macs and supports environment configuration via `.env` files.
  • Automated Project Management: Easily create, list, and configure Defold projects from the command line or through compatible clients.
  • Script & Asset Automation: Programmatically generate scripts, collections, sprites, and more.
  • Debug & Analytics: Run projects in debug mode, capture console output, and retrieve analytics on project modifications.

Tools

  1. launch_defold

    Launch the Defold editor for a project

  2. run_project

    Run a Defold project in debug mode and capture output

  3. create_project

    Create a new Defold project with a basic structure

  4. list_projects

    List all Defold projects in a directory

  5. get_project_settings

    Read settings from game.project

  6. update_project_settings

    Update settings in game.project

  7. create_script

    Create a new Lua script

  8. edit_script

    Edit an existing Lua script

  9. create_lua_module

    Create a reusable Lua module

  10. create_collection

    Create a new collection

  11. add_game_object

    Add a game object to a collection

  12. add_component

    Add a component (sprite, script, etc.) to a game object

  13. create_sprite

    Create and add a sprite asset

  14. create_tilemap

    Create and add a tilemap asset

  15. create_particlefx

    Create and add a particle effect

  16. create_camera

    Create and add a camera component

  17. create_factory

    Create a factory component for spawning game objects

  18. create_gui

    Create a GUI scene and script

  19. setup_physics

    Configure physics for a collision object

  20. build_project

    Build the project for a target platform

  21. enable_hot_reload

    Enable hot-reload by watching project files

  22. add_native_extension

    Add a native extension

  23. get_project_analytics

    Retrieve analytics on project modifications