Godot 4 工作流指南

Godot MCP 连接 2D 素材工作台

免登录试玩游戏模板,查看 Godot 4 SpriteFrames 的导入步骤与供后续接入参考的 MCP 配置示例。

MCP 配置示例 · 抢先体验横向滑动查看命令
codex mcp add game-studio --url https://spritedash.com/mcp --bearer-token-env-var GAME_STUDIO_TOKEN
像素风横版训练场景

工作流程

  1. 查看限定权限的密钥配置

    示例展示端点开放后如何连接 Codex、Claude Code 或 Cursor,只授权客户端需要的项目和工具。

  2. 了解素材任务流程

    指南介绍如何为动作报价、查看任务状态,并将 Godot 4 选为导出目标。

  3. 导入 SpriteFrames

    如果已有 Godot 导出 ZIP,把 frames.tres、贴图和 play.gd 解压到项目,应用到 AnimatedSprite2D。

引擎导出规格

引擎导出规格
目标交付文件使用方法
通用精灵表atlas.json · sheet.png · frames/ · audio/帧边界、锚点与时长
Phaser 3texture-atlas.json · sheet.png通过 this.load.atlas() 加载
Godot 4frames.tres · sheet.png · play.gd导入 AnimatedSprite2D
静态网页游戏whitebox_web · game-config.json · asset-manifest.json解压后通过静态 HTTP 服务运行

在游戏里加载

Godot 4 · AnimatedSprite2D

@onready var actor: AnimatedSprite2D = $AnimatedSprite2D

func _ready() -> void:
    actor.sprite_frames = preload("res://adapters/godot/frames.tres")
    actor.play("attack")

12 个工作台 MCP 工具

公开抢先体验期间 MCP 暂未开放。下方示例介绍端点开放后如何用限定权限的密钥连接 Streamable HTTP。

get_account

Read the current plan, both credit pools and entitlements. Free. Call at most once per session.

projects

List, get or whitebox_get with read scope. Create or whitebox_save with generate scope. Creation needs idempotencyKey; whitebox saves use expectedRevision. Free.

set_style_lock

Save a new default style lock version with palette and project-owned reference images. Free.

request_upload

Request a short-lived PUT ticket for a project-owned image or audio file. Free. Send binary bytes, not base64 JSON.

create_subject

Create a character or a 2D VFX subject. Prompt generation requires a matching quote; registering an uploaded image is free. Use an idempotency key.

quote_task

Quote an existing Studio task input. Free. Quotes expire in five minutes; use the exact quoted input and a fresh idempotency key.

generate_animation

Queue a character action with a matching quote and idempotency key. Paid generation consumes quoted credits.

generate_vfx

Queue a weapon slash, explosion, hit sparks or magic clip with a matching quote and idempotency key. Supports luma_alpha. Uses quoted credits.

generate_sfx

Queue SFX generation or register uploaded audio. Uses the matching quote and idempotency key; upload registration is free.

get_task_status

Read one to twelve project-owned tasks. Free. Optionally wait up to 15 seconds; respect retryAfterMs for pending work.

reslice_or_bind_sfx

Reslice an existing video, or CAS-save frame bindings and mix. Both are free. Use an idempotency key.

export_assets

Queue an Atlas-validated generic, Phaser 3 and Godot 4 ZIP, or a standalone whitebox_web game ZIP using whiteboxConfigId. Free. Use an idempotency key; poll with get_task_status and download with export scope.

Codex

codex mcp add game-studio --url https://spritedash.com/mcp --bearer-token-env-var GAME_STUDIO_TOKEN

Claude Code

claude mcp add --transport http game-studio https://spritedash.com/mcp --header "Authorization: Bearer $GAME_STUDIO_TOKEN"

Cursor

{
  "mcpServers": {
    "game-studio": {
      "url": "https://spritedash.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_STUDIO_KEY"
      }
    }
  }
}

常见问题

抢先体验期间可以连接 MCP 吗?

公开 MCP 端点暂未开放。配置示例用于了解后续连接素材工作流的方式。

可以操控 Godot 编辑器吗?

MCP 为素材工作流设计,资源需要在你自己的 Godot 项目中导入。

导出包含哪些文件?

Godot 4 适配器包含 frames.tres、贴图和应用导出锚点的 play.gd。

查看工作流程

做出第一个可玩的动作

抢先体验期间可公开试玩,在线生成、MCP 和收款暂未开放。

免费打开工作台