/ 目錄 / 演練場 / Geargrafx
● 社群 drhelius ⚡ 即開即用

Geargrafx

作者 drhelius · drhelius/Geargrafx

PC Engine / TurboGrafx-16 emulator with an embedded MCP server for AI-assisted debugging and retro game analysis.

Geargrafx is a cross-platform TurboGrafx-16 / PC Engine / SuperGrafx / PCE CD-ROM² emulator written in C++ with an embedded MCP server. AI agents can control execution, inspect memory, set breakpoints, disassemble HuC6280 code, view sprites/tiles, and inspect CD-ROM subsystem state. Supports stdio and HTTP transport, Multi Tap (5 players), save states with previews, and VGM recording.

為什麼要用

核心特性

即時演示

實際使用效果

geargrafx-2.replay ▶ 就緒
0/0

安裝

查看作者儲存庫中的安裝說明

使用場景

實戰用法: Geargrafx

How to debug a PC Engine ROM with AI assistance using Geargrafx

👤 PC Engine homebrew developers and retro game researchers ⏱ ~30 min intermediate

何時使用: You're developing or analyzing a PC Engine ROM and need to debug runtime behavior.

前置條件
  • Geargrafx built with MCP support — Build from source following the GitHub README
  • A PC Engine ROM file (.pce or .sgx) — Your own homebrew ROM or a ROM you legally own
步驟
  1. Connect and inspect
    Connect to the Geargrafx MCP server. Show me the current HuC6280 CPU state and disassembly at the program counter.✓ 已複製
    → CPU registers and disassembled instructions
  2. Analyze sprite system
    Inspect the VDC sprite table. How many sprites are active and what tiles do they reference?✓ 已複製
    → Sprite attribute table with positions, tile indices, and flags

結果: Understanding of ROM execution and VDC hardware state for debugging.

注意事項
  • CD-ROM games require proper CUE/BIN setup — Ensure your CUE file paths are correct and all BIN tracks are present
搭配使用: filesystem

Learn PC Engine hardware architecture interactively

👤 Students and enthusiasts learning retro console hardware ⏱ ~45 min advanced

何時使用: You want to understand the HuC6280 CPU, VDC graphics, and PSG audio systems.

前置條件
  • Geargrafx with MCP server — Build from source
步驟
  1. Explore the VDC
    Step through the VBlank interrupt and explain how the PC Engine's VDC handles background scrolling and sprite rendering.✓ 已複製
    → Annotated explanation of VDC register writes and their effects

結果: Hands-on understanding of PC Engine hardware internals.

注意事項
  • SuperGrafx has two VDCs which complicates analysis — Start with regular PC Engine games before tackling SuperGrafx titles

組合

與其他 MCP 搭配,撬動十倍槓桿

geargrafx-2 + filesystem

Export debug data and memory dumps for documentation

Dump the VDC sprite table and tile data to files for analysis.✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
pause/resume/step none / step_count? Control emulator execution 0
read_memory address: int, size: int Read emulator memory at any address 0
set_breakpoint address: int Set a CPU breakpoint 0
disassemble address: int, count: int Disassemble HuC6280 instructions 0
get_hardware_status none Get VDC, VCE, and PSG register states 0

成本與限制

運行它的成本

API 配額
N/A — fully local
每次呼叫 Token 數
100–500 tokens per debug command
費用
Free and open source (MIT license)
提示
Use targeted reads instead of full memory dumps.

安全

權限、密鑰、影響範圍

憑證儲存: N/A
資料出站: Fully local — no network calls

故障排查

常見錯誤與修復

MCP server not responding

Ensure Geargrafx was built with MCP support. Check the default port is available.

驗證: Test the HTTP endpoint
CD-ROM game won't load

Verify CUE file references correct BIN paths. Try converting to CHD format.

驗證: Check CUE file contents match actual BIN filenames
SuperGrafx ROM crashes

Only a handful of SuperGrafx games exist. Verify the ROM is actually an SGX title, not a regular PCE ROM.

驗證: Check ROM header

替代方案

Geargrafx 對比其他方案

替代方案何時用它替代權衡
GearboyYou want to debug Game Boy ROMs instead of PC EngineDifferent console, same MCP-enabled emulator approach

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills