Logo vun Phaser Editor MCP Server

Phaser Editor MCP Server

Organisatioun
phaserjs

MCP Server for Phaser Editor

Editeurphaserjs
Repositoryeditor-mcp-server
SproochTypeScript
Forks
4
Stären
35
Disponibel Tools
39
Transporttypstdio
Kategorien
Linken
  • Tools mat KI-Workflows verbannen

    Phaser Editor MCP Server stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 39 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    35 Stären an 4 Forks aus dem verlinkte Repository.

MCP Server for Phaser Editor v5

This Model Context Protocol (MCP) server provides the tools to connect an LLM with Phaser Editor v5. It is designed to work seamlessly with Phaser Editor's IDE features, allowing developers to create and manage game scenes efficiently.

Installation

This server is available as an NPM package and you can use it in the configuration of MCP hosts like Cursor, Claude Desktop, GitHub Copilot, etc...

This is an example of a configuration file for Cursor:

json
{
    "mcpServers": {
        "phaser-editor": {
            "command": "npx",
            "args": ["@phaserjs/editor-mcp-server"]
        }
    }
}

This servers connects with a running instance of the Phaser Editor v5 desktop application. All changes on the project are made through the Phaser Editor running instance.

Coding

All tools provided by this server are specifically tailored to work with Phaser Editor features, such as the Scene Editor, Asset Pack Editor, and others. These tools are not intended for direct modification of your project's source code. However, when used alongside code editors like Cursor, the server enables simultaneous interaction with both Phaser Editor's custom files and the project's source code—creating a powerful, integrated development workflow.

We recommend starting with one of the Phaser Editor project templates, which are preconfigured for seamless integration with Cursor. These templates include all necessary configurations and the rules for the LLMs to understand how to interact with Phaser Editor's custom files and the project's source code.

Using Training Levels to Enhance LLM-Based Content Generation

Large Language Models (LLMs) excel at generating new content when provided with high-quality, contextual examples. This is especially effective for game level generation. To take full advantage of this capability, it's a good practice to create training levels that clearly express the concepts and elements you want the model to replicate.

Why Training Levels Matter

Training levels serve as concrete examples that define the structure and logic of your game. These examples help the LLM understand the components involved and how they interact, enabling it to generate new levels that align with your design.

For example, if you're working with tilemap-based levels, you can create a TrainingLevel scene that includes the key objects used in your game. To improve clarity and semantic understanding:

  • Use one layer per object.
  • Name each layer with a descriptive identifier, such as pipe, cloud, or mountain.

This organization helps the LLM detect patterns and apply them to new content generation tasks.

Visual Tools Help—but Context is Key

The MCP server provides tools to inspect texture images and generate scene "screenshots." While these visuals are helpful, they may not always be sufficient for the LLM to fully grasp the game's context and logic.

That's why creating structured and well-labeled training levels is essential. These levels provide a richer, more actionable context that enhances the model's ability to generate accurate and relevant game content.

Tools Overview

This project provides a comprehensive set of tools for managing scenes, assets, tilemaps, animations, and more within the Phaser Editor environment. Below is a summary of all available tools, grouped by their main functionalities.

IDE Tools

  • ide-get-all-scenes-in-project: Lists all scenes in the project.
  • ide-get-active-scene: Gets the currently focused scene in the editor.
  • ide-open-scene: Opens a scene in the editor.
  • ide-create-new-scene: Creates a new scene file.
  • ide-save-scene: Saves the editor state of a scene.

Assets Tools

  • assets-get-available-textures: Lists all available textures in the project.
  • assets-get-texture-binary: Gets the binary data of a texture.
  • assets-get-available-bitmapfonts: Lists all available bitmap fonts.
  • assets-get-bitmapfont-image: Gets the PNG image/texture of a bitmap font.
  • assets-get-spritesheet-image: Gets the PNG image/texture of a spritesheet.
  • assets-get-texture-content-bounding-box: Gets the bounding box of a texture's content.
  • assets-get-available-animations: Lists all available sprite animations.
  • assets-get-available-spine-skeletons: Lists all Spine skeletons in the project.
  • assets-get-available-spine-atlases: Lists all Spine atlases in the project.
  • assets-get-spine-skeleton-info: Gets info (animations and skins) for a Spine skeleton.
  • assets-get-spine-skin-image: Gets the PNG image of a Spine skin.
  • assets-get-available-tilemaps: Lists all available Tiled tilemap files.
  • assets-get-tilemap-data: Gets the data of a Tiled tilemap file.

Scene Tools

  • scene-clear-scene: Clears the current scene.
  • scene-get-scene-dimension: Gets the dimensions of the current scene.
  • scene-get-screenshot: Gets a screenshot of the scene.
  • scene-get-scene-data: Gets all objects in the current scene, including their properties.
  • scene-move-game-object-in-render-list: Sorts objects in the current scene.
  • scene-delete-game-objects: Deletes specified game objects from the scene.
  • scene-move-game-objects-to-parent: Moves objects to a specified parent.
  • scene-pack-objects-in-container: Groups objects in a container.
  • scene-delete-plain-objects: Deletes specified plain objects from the scene.
  • scene-add-game-objects: Adds multiple new game objects to the scene.
  • scene-update-game-objects: Updates multiple game objects in the scene.
  • scene-add-plain-objects: Adds multiple new plain objects to the scene.
  • scene-update-plain-objects: Updates multiple plain objects in the scene.

Editable Tilemap Tools

  • scene-add-editable-tilemap: Adds a new editable tilemap to the scene. Editable tilemaps are fully modifiable and represented as plain objects.
  • scene-add-tileset-to-editable-tilemap: Adds a tileset to an editable tilemap and updates tile IDs in all layers.
  • scene-delete-tileset-from-editable-tilemap: Removes a tileset from an editable tilemap and updates tile IDs in all layers.
  • scene-add-editable-tilemap-layer: Adds a new layer to an editable tilemap and the scene.
  • scene-resize-editable-tilemap-layer: Resizes an editable tilemap layer's data.
  • scene-write-editable-tilemap-layer-data: Updates part of the tile data in a layer for efficient changes.
  • scene-fill-editable-tilemap-layer-data: Fills a region of a layer with a single tile ID.
  • scene-get-editable-tilemap-layer-selection-data: Retrieves selected tile data from a layer as a 2D array.

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "phaser-editor": {
      "command": "npx",
      "args": [
        "@phaserjs/editor-mcp-server"
      ]
    }
  }
}

Disponibel Tools

  • ide-get-all-scenes-in-project

    Get all scenes in the project.

  • ide-get-active-scene

    Get the scene has the focus in the editor. The active scene is the one the user is working at the moment. It may be happen there isn't an active scene.

  • ide-open-scene

    Open the scene in the editor.

  • ide-create-new-scene

    Create a new scene file. This tool only creates a new scene. If the user wants to show the scene in the game then the user has to add the scene first to the game instance.

  • ide-save-scene

    Save the the editor of the given scene. This tool should be used only if the user requests it explicity, or if you need that the editor generates the code of the scene. It is important to keep both the scene content and the scene's code file in sync if you are working in both files at the same time.

  • scene-clear-scene

    Clear the current scene.

  • scene-get-scene-dimension

    Get the dimensions of the current scene.

  • scene-get-screenshot

    Get a screenshot of the scene.

  • scene-get-scene-data

    Get all objects in the current scene, including their properties.

  • scene-move-game-object-in-render-list

    Sort objects in the current scene.

  • scene-delete-game-objects

    Delete the given game objects from the scene.

  • scene-move-game-objects-to-parent

    Move the given objects to the given parent.

  • scene-pack-objects-in-container

    Create a container to group the given objects. The container and objects are positioned so the container size is minimal.

  • scene-add-editable-tilemap

    Add an editable tilemap to the scene. An editable tilemap is different to a Tiled map because all the data can be edited by the user in the scene editor. However, it follows many of the concepts of Tiled. The editable tilemap is also a plain object so you can manipulate it using most of the plain object tools.

  • scene-add-tileset-to-editable-tilemap

    Add a tileset to an editable tilemap. This will add the tileset to the tilemap data, but it will not add the tileset asset itself. It also will update the ID of the tiles of every layer in the map.

  • scene-delete-tileset-from-editable-tilemap

    Delete a tileset from an editable tilemap. This will remove the tileset from the tilemap data, but it will not delete the tileset asset itself. It also will update the ID of the tiles of every layer in the map.

  • scene-add-editable-tilemap-layer

    Add an editable tilemap layer to an editable tilemap. Because the complexity of the editable tilemaps, we provide a couple of dedicated tools. An editable tilemap is different to a Tiled map because all the data can be edited by the user in the scene editor. This method adds a layer to the tilemap data but also it adds an EditableLayer game object to the scene.

  • scene-resize-editable-tilemap-layer

    Resize an editable tilemap layer. This will resize the layer data, but it will not resize the layer game object itself. It also will update the ID of the tiles of every layer in the map.

  • scene-write-editable-tilemap-layer-data

    Write part of the tile data of an editable tilemap layer. This is useful to update a layer's data without having to send the whole layer data again.

  • scene-fill-editable-tilemap-layer-data

    Fill a region of the tile data of an editable tilemap layer with a single tile ID. This is useful to do things like clear the layer (fill the full layer with a -1 tile), or to paint backgrounds, filling the layer with the background tile, or filling just a part of the layer like for making a floor, or any other level element.

  • scene-get-editable-tilemap-layer-selection-data

    Get the selected tile data of an editable tilemap layer. It returns a 2D array with the tile IDs. The selection is always a rectangular region of the tilemap layer.

  • scene-delete-plain-objects

    Delete the given plain objects from the scene.

  • scene-add-game-objects

    Add multiple new game objects to the scene

  • scene-update-game-objects

    Update multiple game objects in the scene.

  • scene-add-plain-objects

    Add multiple new plain objects to the scene

  • scene-update-plain-objects

    Update multiple plain objects in the scene.

  • assets-get-available-textures

    Get all available textures in the project.

  • assets-get-texture-binary

    Get the binary data of a texture.

  • assets-get-available-bitmapfonts

    Get all available bitmap fonts in the project.

  • assets-get-bitmapfont-image

    Get the PNG image/texture of the given bitmap font.

  • assets-get-spritesheet-image

    Get the PNG image/texture of the given spritesheet. You can use this tool to get a better understanding of the position of tiles/frames.

  • assets-get-texture-content-bounding-box

    Get the bounding box of the content of the given texture. Many textures has transparent padding but we need the exact offset and size of the content/object of the texture to place them in the right positions in the scene. Like when placing different objects one next to the other, with touching edges.

  • assets-get-available-animations

    Get all available sprite animations in the project.

  • assets-get-available-spine-skeletons

    Get the all the Spine skeletons in the project. It only returns the key of the skeleton.

  • assets-get-available-spine-atlases

    Get the all the Spine atlases in the project.

  • assets-get-spine-skeleton-info

    Get the skeleton info (animations and skins) of the given Spine skeleton key. To build the info of a skeleton it requires also the Spine atlas key. The user can select a different atlas key, but it is common that the user also define a 'preview' atlas key for each skeleton. You can use it if it exists or ask for a different atlas key to the user.

  • assets-get-spine-skin-image

    Get the PNG image of the given Spine skin. You can use this tool to get a better understanding of the appearance of a Spine skeleton with a given skin. The image may be scaled or not. You can the skeleton data to get more info about the size of a skeleton.

  • assets-get-available-tilemaps

    Search for the available Tiled tilemap files in the asset packs and return the list of tilemap keys. A Tiled tilemap file contains the data of a tilemap. It is used by the scene editor to create the Tilemap and TilemapLayer objects. These maps are created by the third party tool Tiled. Like the other assets in the asset packs, Phaser Editor uses the tilemap key to identify the tilemap.

  • assets-get-tilemap-data

    Get the data of a Tiled tilemap file. It returns the data of the tilemap, including the layers, tilesets, and objects. The data is used by the scene editor to create the Tilemap and TilemapLayer objects.

Phaser Editor MCP Server MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Phaser Editor MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Phaser Editor MCP Server als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Phaser Editor MCP Server an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "phaser-editor-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@phaserjs/editor-mcp-server"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Phaser Editor MCP Server. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Phaser Editor MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Phaser Editor MCP Server?
Phaser Editor MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat Phaser Editor MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Phaser Editor MCP Server benotzt?

Phaser Editor MCP Server ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Phaser Editor MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Phaser Editor MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Phaser Editor MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Phaser Editor MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Phaser Editor MCP Server MCP mat TypingMind?

Phaser Editor MCP Server leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Phaser Editor MCP Server MCP an TypingMind zur Verfügung?

Phaser Editor MCP Server stellt 39 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Phaser Editor MCP Server MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Phaser Editor MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇