Skip to main content
Glama

spritecook-mcp

将你的 AI 智能体(Cursor、VS Code、Claude、Codex、Grok Build 等)连接到 SpriteCook,用于 AI 驱动的像素艺术和游戏资源生成。

快速设置

npx spritecook-mcp setup

这将:

  1. 检测你已安装的 AI 客户端,包括 Grok Build

  2. 验证在需要时使用 API 密钥;Grok Build 使用宿主管理的 OAuth

  3. 自动配置 MCP 连接

  4. 安装可选的智能体技能,以实现更智能的 AI 集成

可选的技能包括精选的指南,涵盖异步任务轮询、规范 sprite_url 输出、模型发现、GPT-Image-2 质量设置、引导式角色工作流、保存的预设、多图像风格参考、本地文件上传、背景清理、资源组织与恢复,以及 Godot 就绪的角色导出。

Related MCP server: mnehmos.aseprite.mcp

你将获得

设置完成后,你的 AI 智能体可以直接生成像素艺术和游戏资源:

"生成一个 64x64 像素艺术剑精灵"

"为我的平台游戏创建角色精灵表"

"制作一组带透明背景的药水图标"

"使用我的角色预设生成新的待机精灵"

"导入这个本地 Boss PNG,然后为其制作缓慢待机动作的动画"

"移除这个角色资源的背景,并给我透明的 PNG"

"将生成的剑资源重命名为 Iron Sword Pickup"

手动配置

如果你希望手动配置,请参考以下内容添加到编辑器的 MCP 配置中:

Cursor(.cursor/mcp.json):

{
  "mcpServers": {
    "spritecook": {
      "url": "https://api.spritecook.ai/mcp/",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

VS Code(.vscode/settings.json):

{
  "mcp": {
    "servers": {
      "spritecook": {
        "type": "http",
        "url": "https://api.spritecook.ai/mcp/",
        "headers": { "Authorization": "Bearer YOUR_API_KEY" }
      }
    }
  }
}

Grok Build(.grok/config.toml 或 ~/.grok/config.toml):

[mcp_servers.spritecook]
url = "https://api.spritecook.ai/mcp/oauth"
enabled = true
tool_timeout_sec = 6000

在 Grok Build 中打开 /mcps 并验证 spritecook。Grok 会存储并刷新 OAuth 凭据,而不会将其暴露给模型。如果工具没有出现,请运行 grok mcp doctor spritecook 和 grok inspect。

该仓库还包含一个根目录下的 .mcp.json,用于 Grok Build 市场提交。发布市场列表是一个单独的发布步骤。

环境变量

  • SPRITECOOK_API_URL - 覆盖 API 基础 URL(用于本地开发)

链接

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
      D
      maintenance
      Enables AI agents to create, inspect, edit, and export pixel art, sprites, animations, and spritesheets using headless Aseprite, and to convert arbitrary images into indexed pixel art.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables an AI agent to create and edit pixel art directly in Aseprite — building sprites, layers, frames, animation tags and palettes, painting pixels and primitives, inspecting the rendered result, and exporting GIFs or sprite sheets. All work lands on real .aseprite files that can be opened and edited by hand.
      43
      1
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to create and refine pixel art and sprite animations through MCP tools, including seeded generators, indexed palettes, shading, animation presets, inline PNG previews, and multi-format export.
      28
      MIT