/ Diretório / Playground / Gearboy
● Comunidade drhelius ⚡ Instantâneo

Gearboy

por drhelius · drhelius/Gearboy

Game Boy / Game Boy Color emulator with an embedded MCP server for AI-assisted debugging and ROM analysis.

Gearboy is a cross-platform Game Boy, Game Boy Color, and Super Game Boy emulator written in C++ with an embedded MCP server. AI agents can control execution (pause, step, resume), inspect memory, set breakpoints, disassemble code, and monitor hardware state in real-time. Supports stdio and HTTP transport (port 7777). Runs on macOS, Windows, Linux, BSD, and RetroArch.

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

gearboy-2.replay ▶ pronto
0/0

Instalar

Escolha seu cliente

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "gearboy-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/drhelius/Gearboy"
      ]
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "gearboy-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/drhelius/Gearboy"
      ]
    }
  }
}

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "gearboy-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/drhelius/Gearboy"
      ]
    }
  }
}

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "gearboy-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/drhelius/Gearboy"
      ]
    }
  }
}

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "gearboy-2",
      "command": "TODO",
      "args": [
        "See README: https://github.com/drhelius/Gearboy"
      ]
    }
  ]
}

O Continue usa um array de objetos de servidor em vez de um map.

~/.config/zed/settings.json
{
  "context_servers": {
    "gearboy-2": {
      "command": {
        "path": "TODO",
        "args": [
          "See README: https://github.com/drhelius/Gearboy"
        ]
      }
    }
  }
}

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

claude mcp add gearboy-2 -- TODO 'See README: https://github.com/drhelius/Gearboy'

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: Gearboy

How to debug a Game Boy ROM with AI assistance using Gearboy

👤 Homebrew Game Boy developers and ROM hackers ⏱ ~30 min intermediate

Quando usar: You're developing a Game Boy homebrew ROM and need to debug runtime issues.

Pré-requisitos
  • Gearboy built with MCP support — Build from source following the GitHub README
  • A Game Boy ROM file (.gb or .gbc) — Your own homebrew ROM or a ROM you legally own
Fluxo
  1. Load ROM and connect
    Connect to the Gearboy MCP server and load my ROM. Show me the current CPU state and disassembly at the program counter.✓ Copiado
    → CPU registers, flags, and disassembled instructions at PC
  2. Set a breakpoint and investigate
    Set a breakpoint at address 0x0150 (after the header). Step through execution and explain what each instruction does.✓ Copiado
    → Step-by-step execution with instruction explanations
  3. Inspect memory
    Show me the contents of WRAM from 0xC000 to 0xC0FF. Are there any recognizable data structures?✓ Copiado
    → Memory dump with analysis of data patterns

Resultado: A clear understanding of how the ROM executes, with bugs identified and explained.

Armadilhas
  • Breakpoints on frequently-hit addresses slow execution dramatically — Use conditional breakpoints or set them only when you're close to the bug
Combine com: filesystem

Learn Game Boy architecture interactively with AI and Gearboy

👤 Students learning retro console hardware and assembly ⏱ ~45 min intermediate

Quando usar: You want to understand how the Game Boy CPU, memory, and graphics work hands-on.

Pré-requisitos
  • Gearboy with MCP server — Build from source
  • A simple test ROM — Use a homebrew test ROM or Blargg's test ROMs
Fluxo
  1. Explore the memory map
    Show me the Game Boy memory map. Read the ROM header at 0x0100-0x014F and explain each field.✓ Copiado
    → Annotated header with title, cartridge type, ROM/RAM sizes
  2. Watch VRAM in action
    Step through the VBlank interrupt handler and explain how tiles are loaded into VRAM.✓ Copiado
    → Step-by-step explanation of tile loading with VRAM state

Resultado: Hands-on understanding of Game Boy hardware through interactive exploration.

Armadilhas
  • Assembly can be overwhelming for beginners — Start with simple test ROMs that exercise one hardware feature at a time

Combinações

Combine com outros MCPs para 10× de alavancagem

gearboy-2 + filesystem

Export memory dumps and debug logs for offline analysis

Dump the entire VRAM contents to a file and annotate the tile data layout.✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
pause/resume/step none / step_count? Control emulator execution 0
read_memory address: int, size: int Read emulator memory at any address 0
write_memory address: int, data: bytes Write to emulator memory 0
set_breakpoint address: int, type?: str Set a CPU or memory breakpoint 0
disassemble address: int, count: int Disassemble instructions at an address 0
get_cpu_state none Get current CPU registers and flags 0

Custo e limites

O que custa rodar

Cota de API
N/A — fully local
Tokens por chamada
100–500 tokens per debug command
Monetário
Free and open source (MIT license)
Dica
Use targeted memory reads instead of full dumps to keep token usage low.

Segurança

Permissões, segredos, alcance

Armazenamento de credenciais: N/A
Saída de dados: Fully local — no network calls

Solução de problemas

Erros comuns e correções

MCP server not responding

Ensure Gearboy was built with MCP support enabled. Check that the server port (default 7777) is not in use.

Verificar: curl http://localhost:7777/health
ROM fails to load

Verify the ROM file is a valid .gb or .gbc file. Check the file isn't corrupted.

Verificar: Check the ROM header with a hex editor
Breakpoint never hits

Verify the address is in the execution path. Use the disassembler to check if code actually runs at that address.

Verificar: Disassemble around the target address

Alternativas

Gearboy vs. outros

AlternativaQuando usarTroca
GeargrafxYou want to debug PC Engine / TurboGrafx-16 ROMs instead of Game BoyDifferent console, same MCP-enabled emulator approach by the same developer

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills