Logo GB Studio / GBA Studio Agentic MCP Server

GB Studio / GBA Studio Agentic MCP Server

Cộng đồng
eoinjordan

Claude or other MCP Agentic integration for GB Studio Automated game asset creation and project management REST API endpoints for scenes, actors, assets, and validation End-to-end workflow with your MCP server

Nhà phát hànheoinjordan
Kho mãgb-studio-agent
Ngôn ngữTypeScript
Bản fork
4
Sao
19
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    GB Studio / GBA Studio Agentic MCP Server cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    19 sao và 4 bản fork từ kho mã được liên kết.

GB Studio / GBA Studio Agentic MCP Server for creating GameBoy Games.

Prompt to build out a template for your students, kids, or yourself to extend.

Image

GIF

Also works for GBA STUDIO ...my fork of GB Studio that covers the GBA

Quick Start

  1. Install: npm install -g gbstudio-claude-mcp

  2. Start server: gbstudio-claude-mcp

  3. Connect Claude Desktop (see TUTORIAL.md)

  4. Prompt Claude: "Review and test my application logic"

That’s it. Claude will reivew, extend or even generate a playable game template you can iterate on with students in GB Studio.

Vibe Coding, LLMs, and Modern Education: Can give students Constructive Tools, Not Just Answers

After 14 years teaching kids programming, electronics, 3D printing, and game development, I’ve learned this: the best educational tools don’t just make things easier. They make learning a rewarding activity. GB Studio is one of those tools. It’s a visual game builder that gives you a Game Boy development, putting real creative power in the hands of students, educators, and hobbyists to build for physical hardware. When we combine GB Studio with education on what is possible to do with large language models (LLMs), we bring a postitive view to students on how they can integrate with rather than rely on them as a crutch.

What is Vibe Coding?

“Vibe coding” isn’t just a buzzword. It’s a paradigm shift. It’s programming stripped of syntactic gatekeeping, where creators focus on flow, logic, and ideas instead of memorizing semicolons. Tools like Scratch, App Inventor, and GB Studio embody this philosophy: they eliminate barriers and recenter programming around what actually matters: creativity and problem-solving.

For kids, vibe coding is a what they are growing up with. It will let them focus on the “why” and “how” of programming without drowning in syntax. This isn’t just helpful. It’s important for students to get to think in systems, design, and logic but are shut out by traditional coding’s steep learning curve.

The Role of LLMs in Education

Large language models like ChatGPT have sparked fierce debate in education, and for good reason. Used carelessly, they become cheating tools that replaces thinking with copy-pasa mindset. But used with purpos, they can become scaffolding that accelerates real learning. The difference isn’t the tool. It’s how we wield it.

This is exactly why I built the Clawdbot MCP server. By integrating LLMs directly with GB Studio, users and teachers can:

  • Scaffold projects: Generate starter templates, assets, and event flows from simple prompts.
  • Automate testing: Run smoke tests to catch bugs and validate project logic.
  • Encourage iteration: Help students refine their projects by providing suggestions and examples.

Games can be built from scratch too but they wont be AAA class so measure your expectations lol

Pong (Game Boy)

Create a Pong clone for the original Game Boy. Two paddles, a ball, and a score counter. The player controls the left paddle, the right paddle is AI-controlled. Use simple monochrome graphics and authentic GB sound effects. Generate all scenes, actors, and assets for a playable Pong game.

Pac-Man (Game Boy Color)

Build a Pac-Man style maze game for Game Boy Color. The player navigates a maze, collects pellets, and avoids ghosts. Include at least one maze layout, four ghosts with basic AI, and colorful graphics. Generate all scenes, actors, and assets needed for a playable demo.

Mario Bros Style Platformer (Game Boy Color)

Design a Mario Bros inspired platformer for Game Boy Color. The player can run, jump, and stomp on enemies. Include three levels, power-ups, coins, and a flagpole at the end of each level. Use bright palettes and catchy background music. Generate all scenes, actors, and assets for a classic platformer experience.

Space Shooter (Game Boy)

Create a vertical scrolling space shooter for the original Game Boy. The player controls a spaceship, shoots enemies, and dodges obstacles. Include multiple enemy types, power-ups, and a boss fight. Use classic GB graphics and chiptune sound effects. Generate all scenes, actors, and assets for a playable shooter.

Claude MCP Server for GB Studio

This is a TypeScript server for manipulating GB Studio projects using the Model Context Protocol (MCP). It provides endpoints for project discovery, validation, and creation of game assets.


Installation

Install globally with npm:

sh
npm install -g gbstudio-claude-mcp

Local Environment Setup (.env)

For local development, store API keys and configuration in a .env file at the project root. This keeps secrets out of source control and matches the pattern used in GitHub Actions.

  1. Create a .env file in the project root:
    env
    CLAUDE_API_KEY=your-claude-api-key-here
    # Add other keys as needed
  2. The server will automatically load variables from .env if you use [dotenv].
  3. .env files are gitignored by default.

Never commit your .env file to source control.


Usage

Start the server:

sh
gbstudio-claude-mcp

The server runs on http://localhost:3000 by default.

Configure your MCP client (e.g., Claude Desktop) to connect to this server. For full setup and troubleshooting, see the tutorial linked at the end of this document.


End-to-End Usage: Windows & Linux/macOS

See the TUTORIAL.md for a complete, step-by-step guide to building a GB Studio game with this server, including screenshots and troubleshooting tips for both Windows and Linux/macOS.


MCP Protocol Support

This package supports the Model Context Protocol (MCP). You can run the server in MCP stdio mode for use with Claude Desktop and other MCP clients:

sh
npm run build:mcp
node build/mcp.js

The MCP stdio server proxies to the local REST API on http://localhost:3000, so start the REST server first. To use a different port, set GBSTUDIO_API_URL (full URL) or GBSTUDIO_API_PORT (port number):

sh
gbstudio-claude-mcp

Or add this to your MCP client configuration:

{
   "mcpServers": {
      "gbstudio-mcp": {
         "command": "node",
         "args": ["/absolute/path/to/build/mcp.js"]
      }
   }
}

Clawdbot / Moltbot Compatibility

Clawdbot and Moltbot discover tools via AgentSkills-compatible SKILL.md files. This repo ships one at:

  • skills/gbstudio-mcp/SKILL.md

Compatibility depends on transport:

  • If Clawdbot can run stdio MCP servers as child processes, node build/mcp.js will work.
  • If your Clawdbot setup expects HTTP+SSE MCP servers, you will need a bridge, because this MCP server is stdio-only.
  • If you only run the REST API, Clawdbot will not auto-discover tools as MCP.

To enable the skill in Moltbot, add an entry like this:

json
{
  "skills": {
    "load": {
      "extraDirs": [
        "~/.clawdbot/skills"
      ],
      "watch": true,
      "watchDebounceMs": 250
    },
    "entries": {
      "gbstudio-mcp": {
        "enabled": true,
        "env": {}
      }
    }
  }
}

Project Structure

  • src/index.ts — Main server and endpoint logic
  • tests/ — Jest test suites for all endpoints
  • tests/poachermon/ — Real GB Studio project for integration tests
  • gbstudio_api_endpoints.csv — Catalog of all planned endpoints

Local Development

  1. Clone the repository:
    sh
    git clone https://github.com/eoinjordan/gb-studio-agent.git
    cd gb-studio-agent
  2. Install Node.js (recommended: v21.7.1 or compatible)
  3. Install dependencies:
    sh
    npm install
  4. Start the development server:
    sh
    npm run dev
  5. Run the test suite:
    sh
    npm test

Health

  • GET /health — Returns { status: "ok" } for health checks.

Claude API Key

  • GET /claude-key — Returns { present: true } if CLAUDE_API_KEY is set in the environment, else { present: false } with 404.

Find Project

  • POST /find_project — Finds the first .gbsproj file starting from a given directory.
    • Body: { startPath: string }
    • Returns: { projectPath: string } or 404 if not found.

Inventory

  • POST /inventory — Lists scenes, actors, triggers, and assets from a GB Studio project root.
    • Body: { projectRoot: string }
    • Returns: { scenes, actors, triggers, assets } or 404/400 on error.

Validate

  • POST /validate — Validates the structure of a GB Studio project (checks for a valid .gbsproj file and required fields).
    • Body: { projectRoot: string }
    • Returns: { valid: true, message: string, scenes: number, projectPath: string, target: "gb" | "gba", engine: "gb-studio" | "gba-studio", version: string | null } if valid, or 400/404 with an error message if invalid or missing required fields.
    • Error Cases:
      • 400 if projectRoot is missing or .gbsproj is invalid/missing required fields
      • 404 if projectRoot does not exist or no .gbsproj file found

Build GBA ROM

  • POST /gba/build — Builds a .gba ROM using a local GBA Studio checkout.
    • Body: { projectRoot: string, gbaStudioRoot?: string, output?: string, buildCli?: boolean, verbose?: boolean, extraArgs?: string[] }
    • Environment: GBA_STUDIO_ROOT can be used instead of gbaStudioRoot.
    • Returns: { success: true, projectPath, gbaStudioRoot, output, stdout, stderr } on success, or { success: false, error, stdout, stderr }.
    • MCP tool: build_gba_rom exposes the same arguments for Claude/agent clients.

Create Scene

  • POST /scene/create — Adds a new scene to the specified GB Studio project.
    • Body: { projectRoot: string, scene: object }
    • Returns: { success: true, scene } on success, or 400/404/500 with an error message.

Create Actor

  • POST /actor/create — Creates a new actor in the specified scene.
    • Body: { projectRoot: string, sceneId: string, actor: object }
    • Returns: { success: true, actor } on success, or 400/404/500 with an error message.

Create Background

  • POST /background/create — Creates a new background in the project.
    • Body: { projectRoot: string, background: object }
    • Returns: { success: true, background } on success, or 400/404/500 with an error message.

Create Sprite

  • POST /sprite/create — Creates a new sprite in the project.
    • Body: { projectRoot: string, sprite: object }
    • Returns: { success: true, sprite } on success, or 400/404/500 with an error message.

Create Music

  • POST /music/create — Creates a new music track in the project.
    • Body: { projectRoot: string, music: object }
    • Returns: { success: true, music } on success, or 400/404/500 with an error message.

Create Sound

  • POST /sound/create — Creates a new sound effect in the project.
    • Body: { projectRoot: string, sound: object }
    • Returns: { success: true, sound } on success, or 400/404/500 with an error message.

Create Tileset

  • POST /tileset/create — Creates a new tileset in the project.
    • Body: { projectRoot: string, tileset: object }
    • Returns: { success: true, tileset } on success, or 400/404/500 with an error message.

Create Trigger

  • POST /trigger/create — Creates a new trigger in the specified scene.
    • Body: { projectRoot: string, sceneId: string, trigger: object }
    • Returns: { success: true, trigger } on success, or 400/404/500 with an error message.

Create Variable

  • POST /variable/create — Creates a new variable in the project.
    • Body: { projectRoot: string, variable: object }
    • Returns: { success: true, variable } on success, or 400/404/500 with an error message.

Create Script

  • POST /script/create — Creates a new script in the project.
    • Body: { projectRoot: string, script: object }
    • Returns: { success: true, script } on success, or 400/404/500 with an error message.

Create Palette

  • POST /palette/create — Creates a new palette in the project.
    • Body: { projectRoot: string, palette: object }
    • Returns: { success: true, palette } on success, or 400/404/500 with an error message.

Create Font

  • POST /font/create — Creates a new font in the project.
    • Body: { projectRoot: string, font: object }
    • Returns: { success: true, font } on success, or 400/404/500 with an error message.

Create Emote

  • POST /emote/create — Creates a new emote in the project.
    • Body: { projectRoot: string, emote: object }
    • Returns: { success: true, emote } on success, or 400/404/500 with an error message.

Create Avatar

  • POST /avatar/create — Creates a new avatar in the project.
    • Body: { projectRoot: string, avatar: object }
    • Returns: { success: true, avatar } on success, or 400/404/500 with an error message.

Create Constant

  • POST /constant/create — Creates a new constant in the project.
    • Body: { projectRoot: string, constant: object }
    • Returns: { success: true, constant } on success, or 400/404/500 with an error message.

Create Prefab Actor

  • POST /prefab/actor/create — Creates a new actor prefab in the project.
    • Body: { projectRoot: string, actorPrefab: object }
    • Returns: { success: true, actorPrefab } on success, or 400/404/500 with an error message.

Create Prefab Trigger

  • POST /prefab/trigger/create — Creates a new trigger prefab in the project.
    • Body: { projectRoot: string, triggerPrefab: object }
    • Returns: { success: true, triggerPrefab } on success, or 400/404/500 with an error message.

Update Settings

  • POST /settings/update — Updates project settings.
    • Body: { projectRoot: string, settings: object }
    • Returns: { success: true, settings } on success, or 400/404/500 with an error message.

Update Metadata

  • POST /metadata/update — Updates project metadata.
    • Body: { projectRoot: string, metadata: object }
    • Returns: { success: true, metadata } on success, or 400/404/500 with an error message.

Create Engine Field Value

  • POST /engine-field-value/create — Creates a new engine field value in the project.
    • Body: { projectRoot: string, engineFieldValue: object }
    • Returns: { success: true, engineFieldValue } on success, or 400/404/500 with an error message.

Claude Key

  • POST /claude/key — Sets the Claude API key in the environment.
    • Body: { key: string }
    • Returns: { success: true } on success, or 400 with an error message.

Building a Game End-to-End

To build a GB Studio game using this MCP server with Claude:

  1. Discover Project: Use /find_project to locate an existing .gbsproj file or start from a directory.
  2. Validate Project: Use /validate to ensure the project is valid.
  3. Get Inventory: Use /inventory to list current scenes, actors, triggers, assets.
  4. Create Scenes: Use /scene/create to add new scenes.
  5. Create Actors: Use /actor/create to add actors to scenes.
  6. Create Assets: Use creation endpoints (currently stubs) to add sprites, backgrounds, etc.
  7. Update Settings/Metadata: Use update endpoints to configure the project.
  8. Build/Export: Use /gba/build or MCP build_gba_rom to compile a GBA Studio project to .gba.

Note: All endpoints are now fully functional.

GBA Studio Build Example

json
{
  "projectRoot": "C:/Users/Eoin/git/gba-studio/examples/gba-starter-project",
  "gbaStudioRoot": "C:/Users/Eoin/git/gba-studio",
  "output": "C:/tmp/gba-starter.gba",
  "buildCli": true
}

Example Prompts

See TUTORIAL.md for detailed sample prompts and full end-to-end workflows for different game genres.

Test Coverage

All endpoints are covered by Jest tests in the tests/ directory. Run npm test to validate all functionality. Tests use real sample projects.

Publishing

To publish a new version:

  1. Update version in package.json
  2. Build the project:
    sh
    npm run build
  3. Login to npm:
    sh
    npm login --auth-type=legacy
  4. Publish to npm:
    sh
    npm publish --access public

See npm publishing docs for more info.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make changes and add tests
  4. Submit a pull request to https://github.com/eoinjordan/gb-studio-agent

License

MIT

Cài đặt

TypingMind
{
  "mcpServers": {
    "gb-studio-agent": {
      "command": "gbstudio-claude-mcp",
      "args": []
    }
  }
}

Dùng MCP GB Studio / GBA Studio Agentic MCP Server với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối GB Studio / GBA Studio Agentic MCP Server, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm GB Studio / GBA Studio Agentic MCP Server làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của GB Studio / GBA Studio Agentic MCP Server.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "gb-studio-agent": {
      "command": "npx",
      "args": [
        "-y",
        "gbstudio-claude-mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của GB Studio / GBA Studio Agentic MCP Server, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của GB Studio / GBA Studio Agentic MCP Server.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng GB Studio / GBA Studio Agentic MCP Server giúp tôi làm việc này không?
GB Studio / GBA Studio Agentic MCP Server
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng GB Studio / GBA Studio Agentic MCP Server.

Câu hỏi thường gặp

Máy chủ MCP GB Studio / GBA Studio Agentic MCP Server dùng để làm gì?

GB Studio / GBA Studio Agentic MCP Server là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP GB Studio / GBA Studio Agentic MCP Server với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng GB Studio / GBA Studio Agentic MCP Server với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP GB Studio / GBA Studio Agentic MCP Server với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối GB Studio / GBA Studio Agentic MCP Server, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP GB Studio / GBA Studio Agentic MCP Server với TypingMind?

GB Studio / GBA Studio Agentic MCP Server hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP GB Studio / GBA Studio Agentic MCP Server cung cấp những công cụ nào trong TypingMind?

GB Studio / GBA Studio Agentic MCP Server cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP GB Studio / GBA Studio Agentic MCP Server không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu GB Studio / GBA Studio Agentic MCP Server yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇