Skip to main content
Glama

SpriteDash MCP

简体中文

Validate a 2D sprite sheet, export it to Phaser 3 or Godot 4, and start a playable Phaser scene from your coding agent. SpriteDash provides a local CLI and a stdio Model Context Protocol server. The local tools need no SpriteDash account, API key, or hosted generation.

Arena Survivor running with the sample sprite assets

Try it locally

Use Node.js 22 or newer. Run these commands from a checkout of this repository.

npm ci
npx --yes --package . -- spritedash-atlas check fixtures/atlas/good/atlas.json fixtures/atlas/good/sheet.png
npx --yes --package . -- spritedash-atlas export fixtures/atlas/good/atlas.json fixtures/atlas/good/sheet.png --engine phaser3 --out-dir ./out/phaser
npx --yes --package . -- spritedash-atlas export fixtures/atlas/good/atlas.json fixtures/atlas/good/sheet.png --engine godot4 --out-dir ./out/godot

To see a useful failure, try the fixture with an 8 px baseline shift.

npx --yes --package . -- spritedash-atlas check fixtures/atlas/bad/atlas.json fixtures/atlas/bad/sheet.png

The fixture reports BASELINE_CLIPPING: frame 2 extends 8 px below the declared baseline, with a 2 px limit. The checker exits with 0 for a valid input, 1 for a validation failure, or 2 for usage or operational errors. Add --json when reading results from a script.

Once the package is available on npm, export or check with npx --yes --package spritedash-mcp -- spritedash-atlas …. The same package provides the server command npx -y spritedash-mcp. Until release, use the checkout commands above.

Related MCP server: Aseprite MCP Server

Connect your coding agent

Use an absolute path to the checkout's bin/spritedash-mcp.mjs when configuring an editor. Install the checkout's dependencies with npm ci first.

Cursor or Windsurf

For Cursor, add this entry to the project's .cursor/mcp.json. In Windsurf Cascade, open the MCP settings' raw configuration editor. On legacy macOS and Linux installs it opens ~/.codeium/windsurf/mcp_config.json. Merge the entry into the existing mcpServers object if there are other servers. For the newer Devin Local client, use its documented MCP configuration location. Cursor MCP · Windsurf MCP and current client docs

{
  "mcpServers": {
    "spritedash": {
      "command": "node",
      "args": ["/absolute/path/to/spritedash-mcp/bin/spritedash-mcp.mjs"]
    }
  }
}

Claude Code or Codex

claude mcp add --transport stdio spritedash -- node /absolute/path/to/spritedash-mcp/bin/spritedash-mcp.mjs
codex mcp add spritedash -- node /absolute/path/to/spritedash-mcp/bin/spritedash-mcp.mjs

Open a new agent session and inspect its MCP tools. Claude Code has /mcp and Codex has codex mcp list. When the package is public, the launcher can be replaced with npx -y spritedash-mcp in the same stdio configuration. Claude Code MCP · Codex MCP

DeepSeek and Godot

When using a DeepSeek model, connect SpriteDash through a compatible MCP host, such as DeepSeek Harness with its @deepseek-ai/dsh-mcp-client plugin and the stdio launch command above. The DeepSeek chat interface and bare model API do not serve as local stdio MCP hosts. Godot is the export target. Run the MCP tools in your coding agent, then open the results in Godot. DeepSeek Harness MCP client · Godot AnimatedSprite2D

For DeepSeek Harness, add this entry in the scope where your agent runs.

- id: mcp-spritedash
  name: '@deepseek-ai/dsh-mcp-client'
  config:
    serverName: spritedash
    transport: stdio
    command: node
    args: ['/absolute/path/to/spritedash-mcp/bin/spritedash-mcp.mjs']

Local tools

Tool

Inputs

Output

local_validate_atlas

atlasPath, sheetPath

An Atlas v1 validation report for the JSON and its PNG

local_export_engine_atlas

atlasPath, sheetPath, engine (phaser3 or godot4), outDir

Engine atlas files in the selected local directory

local_scaffold_whitebox

outDir

A local Phaser whitebox project to play and modify

Try asking your agent to “Validate the good and failing atlas fixtures, explain what fails, and export the good fixture to Phaser.” Use paths inside the intended project and choose a fresh output directory.

Use the exports

  • Phaser 3 loads sheet.png and atlas.phaser.json with this.load.atlas('hero', 'path/sheet.png', 'path/atlas.phaser.json'). The good fixture uses frame names such as practice_0000. The atlas carries frame metadata. Select the frame order and timing in your game.

  • Godot 4 uses frames.tres and its sibling sheet.png. Copy both into the same folder in the Godot project and assign the resource to an AnimatedSprite2D node's Sprite Frames property.

Play the offline example

npm run build
python3 -m http.server 4173 --bind 127.0.0.1 --directory examples/arena-survivor-phaser

Open 127.0.0.1:4173. The build copies the installed Phaser package into the example. From there it runs from a local static server and needs no sign-in or CDN. See the example folder for the game and asset swap.

Slash example shown on a black background and as a transparent overlay

Agent skills

The repository includes instructions for the 2D asset pipeline and for reviewing game audio. The skills guide your existing CLI or MCP workflow under your agent's current permissions. The Skills CLI requires Node.js 22.20 or newer. Choose a skill from your checkout or use the public repository as the source after release. Skills CLI

npx skills add /absolute/path/to/spritedash-mcp --skill spritedash-2d-pipeline
npx skills add /absolute/path/to/spritedash-mcp --skill game-sfx-craft

Choose the right workflow

If you need…

Use…

A reproducible atlas check or engine conversion in CI

spritedash-atlas

The same checks and engine export inside an agent session

The local SpriteDash MCP server

To author art or pack source sprites by hand

Your preferred sprite editor or texture packer, then validate compatible Atlas v1 output

To incorporate output into combat or animation code

Your Phaser 3 or Godot 4 project and the engine-specific files

To automate work inside the Godot editor

A separate editor-integration tool

Local tools and SpriteDash Cloud

Capability

Free, open-source local package

SpriteDash Cloud

Atlas checks, engine exports, playable sample, Agent Skills

Runs locally without a SpriteDash account or API key

The same file formats work with the hosted workflow

AI sprite and VFX generation, hosted media processing, private project storage

Use your own PNG, Atlas JSON and audio

Closed-source service, available only when provisioned for your account

MCP connection

Three local tools over stdio

A scoped key and an enabled endpoint are needed to discover and call available hosted tools

Hosted SpriteDash

The offline atlas checker, Phaser 3 and Godot 4 exports, both Agent Skills, and the playable Arena Survivor sample are 100% free and run locally. After installation you can use them offline without a SpriteDash account or API key.

Hosted MCP access is rolling out during SpriteDash Early Access. Leave SPRITEDASH_API_KEY unset until you have access to an enabled, compatible hosted endpoint. When that access is available, use a scoped key and set SPRITEDASH_MCP_URL only if you need a custom endpoint. The public preview offers free demos. Hosted AI generation and checkout are currently unavailable there.

On a provisioned endpoint, request a completed private export with get_task_status({taskIds: ["TASK_ID"], downloadTo: "./exports"}). The key needs the export scope. The bridge uses downloadTo only on your machine, resolves it inside the MCP working directory, and saves to a new file. The receipt includes its path, byte count, and SHA-256.

Contributing and license

See CONTRIBUTING.md for development and SECURITY.md for private reporting. Project code is Apache-2.0. Phaser 3 and source assets in the example retain their separate license notices.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI coding agents to create, draw, and refine Aseprite documents through deterministic canvas, layer, frame, tag, and palette tools, with pixel analyzers, style validation, and preview/diff visual feedback. It also supports spritesheet and animated GIF export, producing multi-layer game-ready assets.
      1
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables users to automate the creation, editing, animation, and export of pixel-art game assets through a multi-agent pipeline that derives style specs and blueprints, generates Lua build scripts, and drives the canvas editor to produce .aseprite files, spritesheets, atlases, GIFs, and previews.
      12
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables agents to author, validate, inspect, patch, and render editable JSON pixel-art and animation recipes through local tools, producing PNG contact sheets, APNGs, sprite atlases, and related export bundles.
      2
      8
      1,642 npm
      152
      MIT