Skip to content
Back to search

Gearsystem

Sega Master System / Game Gear / SG-1000 emulator and debugger with embedded MCP server for macOS, Windows, Linux, BSD and RetroArch.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/drhelius/Gearsystem with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/drhelius/Gearsystem'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/drhelius--gearsystem/badge.svg)](/listings/drhelius--gearsystem)

HTML

<a href="/listings/drhelius--gearsystem"><img src="/api/listings/drhelius--gearsystem/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 329 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. # Gearsystem
  2. [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/drhelius/Gearsystem/gearsystem.yml)](https://github.com/drhelius/Gearsystem/actions/workflows/gearsystem.yml)
  3. [![GitHub Releases)](https://img.shields.io/github/v/tag/drhelius/Gearsystem?label=version)](https://github.com/drhelius/Gearsystem/releases)
  4. [![commits)](https://img.shields.io/github/commit-activity/t/drhelius/Gearsystem)](https://github.com/drhelius/Gearsystem/commits/master)
  5. [![GitHub contributors](https://img.shields.io/github/contributors/drhelius/Gearsystem)](https://github.com/drhelius/Gearsystem/graphs/contributors)
  6. [![GitHub Sponsors](https://img.shields.io/github/sponsors/drhelius)](https://github.com/sponsors/drhelius)
  7. [![License](https://img.shields.io/github/license/drhelius/Gearsystem)](https://github.com/drhelius/Gearsystem/blob/master/LICENSE)
  8. [![Twitter Follow](https://img.shields.io/twitter/follow/drhelius)](https://x.com/drhelius)
  9. Gearsystem is a very accurate, cross-platform Sega Master System / Game Gear / SG-1000 emulator written in C++ that runs on Windows, macOS, Linux, BSD and RetroArch, with an embedded MCP server for AI debugging and development.
  10. This is an open source project with its ongoing development made possible thanks to the support by these awesome [backers](backers.md). If you find it useful, please consider [sponsoring](https://github.com/sponsors/drhelius).
  11. Don't hesitate to report bugs or ask for new features by [opening an issue](https://github.com/drhelius/Gearsystem/issues).
  12. <img src="http://www.geardome.com/files/gearsystem/gearsystem_debug_03.png">
  13. ## Downloads
  14. <table>
  15. <thead>
  16. <tr>
  17. <th>Platform</th>
  18. <th>Architecture</th>
  19. <th>Download Link</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. <tr>
  24. <td rowspan="2"><strong>Windows</strong></td>
  25. <td>Desktop x64</td>
  26. <td><a href="https://github.com/drhelius/Gearsystem/releases/download/3.9.25/Gearsystem-3.9.25-desktop-windows-x64.zip">Gearsystem-3.9.25-desktop-windows-x64.zip</a></td>
  27. </tr>
  28. <tr>
  29. <td>Desktop ARM64</td>
  30. <td><a href="https://github.com/drhelius/Gearsystem/releases/download/3.9.25/Gearsystem-3.9.25-desktop-windows-arm64.zip">Gearsystem-3.9.25-desktop-windows-arm64.zip</a></td>
  31. </tr>
  32. <tr>
  33. <td rowspan="3"><strong>macOS</strong></td>
  34. <td>Homebrew</td>
  35. <td><code>brew install --cask drhelius/geardome/gearsystem</code></td>
  36. </tr>
  37. <tr>
  38. <td>Desktop Apple Silicon</td>
  39. <td><a href="https://github.com/drhelius/Gearsystem/releases/download/3.9.25/Gearsystem-3.9.25-desktop-macos-arm64.zip">Gearsystem-3.9.25-desktop-macos-arm64.zip</a></td>
  40. </tr>
  41. <tr>
  42. <td>Desktop Intel</td>
  43. <td><a href="https://github.com/drhelius/Gearsystem/releases/download/3.9.25/Gearsystem-3.9.25-desktop-macos-intel.zip">Gearsystem-3.9.25-desktop-macos-intel.zip</a></td>
  44. </tr>
  45. <tr>
  46. <td rowspan="6"><strong>Linux</strong></td>
  47. <td>Ubuntu PPA</td>
  48. <td><a href="https://github.com/drhelius/ppa-geardome">drhelius/ppa-geardome</a></td>
  49. </tr>
  50. <tr>
  51. <td>Fedora RPM</td>
  52. <td><a href="https://github.com/drhelius/rpm-geardome">drhelius/rpm-geardome</a></td>
  53. </tr>
  54. <tr>
  55. <td>Desktop Ubuntu 26.04 x64</td>
  56. <td><a href="https://github.com/drhelius/Gearsystem/releases/download/3.9.25/Gearsystem-3.9.25-desktop-ubuntu26.04-x64.zip">Gearsystem-3.9.25-desktop-ubuntu26.04-x64.zip</a></td>
  57. </tr>
  58. <tr>
  59. <td>Desktop Ubuntu 26.04 ARM64</td>
  60. <td><a href="https://github.com/drhelius/Gearsystem/releases/download/3.9.25/Gearsystem-3.9.25-desktop-ubuntu26.04-arm64.zip">Gearsystem-3.9.25-desktop-ubuntu26.04-arm64.zip</a></td>
  61. </tr>
  62. <tr>
  63. <td>Desktop Ubuntu 24.04 x64</td>
  64. <td><a href="https://github.com/drhelius/Gearsystem/releases/download/3.9.25/Gearsystem-3.9.25-desktop-ubuntu24.04-x64.zip">Gearsystem-3.9.25-desktop-ubuntu24.04-x64.zip</a></td>
  65. </tr>
  66. <tr>
  67. <td>Desktop Ubuntu 24.04 ARM64</td>
  68. <td><a href="https://github.com/drhelius/Gearsystem/releases/download/3.9.25/Gearsystem-3.9.25-desktop-ubuntu24.04-arm64.zip">Gearsystem-3.9.25-desktop-ubuntu24.04-arm64.zip</a></td>
  69. </tr>
  70. <tr>
  71. <td><strong>MCPB</strong></td>
  72. <td>All platforms</td>
  73. <td><a href="MCP_README.md">MCP Readme</a></td>
  74. </tr>
  75. <tr>
  76. <td><strong>RetroArch</strong></td>
  77. <td>All platforms</td>
  78. <td><a href="https://docs.libretro.com/library/gearsystem/">Libretro core documentation</a></td>
  79. </tr>
  80. <tr>
  81. <td><strong>Dev Builds</strong></td>
  82. <td>All platforms</td>
  83. <td><a href="https://github.com/drhelius/Gearsystem/actions/workflows/gearsystem.yml">GitHub Actions</a></td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. **Notes:**
  88. - **Windows**: May need [Visual C++ Redistributable](https://go.microsoft.com/fwlink/?LinkId=746572) and [OpenGL Compatibility Pack](https://apps.microsoft.com/detail/9nqpsl29bfff)
  89. - **Homebrew**: If Homebrew asks you to trust the third-party tap, run `brew trust --tap drhelius/geardome`
  90. - **Linux**: May need `libsdl3`
  91. ## Supported Machines
  92. - Sega Mark III
  93. - Sega Master System
  94. - Sega Game Gear
  95. - Sega Game 1000 (SG-1000)
  96. - Othello Multivision
  97. ## Features
  98. - Very accurate Z80, VDP, PSG and FM emulation.
  99. - Supported cartridges: ROM, ROM + RAM, SEGA, Codemasters, Korean, MSX + Nemesis, Janggun, SG-1000, and many Korean multi-carts.
  100. - Automatic region detection: NTSC-JAP, NTSC-USA, PAL-EUR.
  101. - Support for YM2413 (OPLL) FM sound chip.
  102. - Gear-to-Gear cable support for two local desktop processes, including serial and parallel communication.
  103. - Mark III Joy-Joy cable support for two local desktop processes.
  104. - Light Phaser and Paddle Control support.
  105. - Internal database for ROM detection.
  106. - Battery powered RAM save support.
  107. - Save states with preview and rewind support.
  108. - Run-ahead support to reduce input latency.
  109. - Compressed ROM support (ZIP).
  110. - *Game Genie* and *Pro Action Replay* cheat support, with RetroArch `.cht` import.
  111. - VGM recorder.
  112. - Supported platforms (standalone): Windows, Linux, BSD and macOS.
  113. - Supported platforms (libretro): Windows, Linux, macOS, Raspberry Pi, Android, iOS, tvOS, webOS, PlayStation Vita, PlayStation 3, Nintendo 3DS, Nintendo GameCube, Nintendo Wii, Nintendo WiiU, Nintendo Switch, Emscripten, Classic Mini systems (NES, SNES, C64, ...), OpenDingux, RetroFW and QNX.
  114. - Full debugger with just-in-time disassembler, CPU breakpoints, memory access breakpoints, code navigation (goto address, JP JR and CALL double clicking), debug symbols, automatic labels, memory editor, trace logger, IO inspector and VRAM viewer including tiles, sprites, backgrounds and palettes.
  115. - MCP server for AI-assisted debugging with Claude Code, Codex and similar, exposing tools for execution control, memory inspection, hardware status, rewind and more.
  116. - Windows, Linux and macOS *Portable Mode*.
  117. - [Programmable Shader Chain](platforms/shared/desktop/shaders/README.md).
  118. - ROM loading from the command line by adding the ROM path as an argument.
  119. - ROM loading using drag & drop.
  120. - Support for modern game controllers through [gamecontrollerdb.txt](https://github.com/mdqinc/SDL_GameControllerDB) file located in the same directory as the application binary.
  121. ## Tips
  122. ### Basic Usage
  123. - **BIOS**: Gearsystem can run with or without a BIOS. You can optionally load a BIOS and enable it. It's possible to run the title included in the BIOS by setting **Media Slot** to `None` in the **Emulator** menu. This emulates a machine without any media plugged in.
  124. - **Overscan**: For a precise representation of the original image, select **Overscan** `Top+Bottom` and **Aspect Ratio** `Standard (4:3 DAR)` in the **Video** menu. Game Gear will ignore any overscan settings.
  125. - **Mouse Cursor**: Automatically hides when hovering over the main output window or when Main Menu is disabled.
  126. - **Portable Mode**: Run with `--portable`, or create an empty file named `portable.ini` in the same directory as the application binary. On macOS, place the file next to the `.app` bundle.
  127. - **Gear-to-Gear and Mark III Link Cable**:
  128. Open `Link Cable` in two desktop instances, select the same session, and connect both, or start each process with `--link-session N`. Select `Auto`, `Gear-to-Gear`, or `Mark III` under `Protocol`; the session is independent of this selection. `Auto` uses Gear-to-Gear for native Game Gear software and Mark III Joy-Joy for F-16 Fighting Falcon (Japan). For Mark III, Return, 1, 2, and Space are mapped to the SK-1100 keyboard. Reset the console if Mark III hardware is attached after startup. Independent instances should use separate application copies or `--portable` data directories so configuration, saves, and single-instance handling do not conflict.
  129. ### Debugging Features
  130. - **Docking Windows**: In debug mode, you can dock windows together by pressing SHIFT and dragging a window onto another.
  131. - **Multi-viewport**: In Windows or macOS, you can enable "multi-viewport" in the debug menu. You must restart the emulator for the change to take effect. Once enabled, you can drag debugger windows outside the main window.
  132. - **Single Instance**: You can enable "Single Instance" in the `Emulator` menu. When enabled, opening a ROM while another instance is running will send the ROM to the running instance instead of starting a new one.
  133. - **Debug Symbols**: The emulator automatically tries to load a symbol file when loading a ROM (.sym, .noi). For example, for `path_to_rom_file.sms` it tries to load `path_to_rom_file.sym`. You can also load a symbol file using the GUI or the CLI. It supports sjasmplus/Pasmo (EQU), SDCC/NoICE (.noi), wla-dx and vasm/generic file formats.
  134. ### Command Line Usage
  135. ```
  136. gearsystem [options] [rom_file] [symbol_file]
  137. Arguments:
  138. [rom_file] ROM file: accepts ROMs (.sms, .gg, .sg, .mv) or ZIP (.zip)
  139. [symbol_file] Optional symbol file for debugging
  140. Options:
  141. -f, --fullscreen Start in fullscreen mode
  142. -w, --windowed Start in windowed mode with menu visible
  143. --load-state SLOT Load save state slot 1-5, or a state file, once the media is loaded
  144. --mcp-stdio Auto-start MCP server with stdio transport
  145. --mcp-http Auto-start MCP server with HTTP transport
  146. --mcp-router Enable compact MCP tool routing
  147. --mcp-http-address A HTTP bind address (default: 127.0.0.1)
  148. --mcp-http-port N HTTP port for MCP server (default: 7777)
  149. --headless Run without GUI (requires MCP or Link Cable)
  150. --link-session N Connect to link cable session 1-255
  151. --link-stall-us N Override barrier stall threshold (0=default)
  152. --portable Store configuration and user data beside the application
  153. -v, --version Display version information
  154. -h, --help Display this help message
  155. ```
  156. ### MCP Server
  157. Gearsystem includes a [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) server that enables AI-assisted debugging through AI agents like Claude Code, Codex and similar. The server provides tools for execution control, memory inspection, breakpoints, disassembly, hardware status, and more. STDIO and HTTP transports are supported, with STDIO preferred.
  158. For complete setup instructions and tool documentation, see [MCP_README.md](MCP_README.md).
  159. ### Agent Skills
  160. Gearsystem provides [Agent Skills](https://agentskills.io/) that teach AI assistants how to effectively use the emulator for specific tasks:
  161. - **[gearsystem-debugging](skills/gearsystem-debugging/SKILL.md)** — Game debugging, code tracing, breakpoint management, hardware inspection, and reverse engineering.
  162. - **[gearsystem-romhacking](skills/gearsystem-romhacking/SKILL.md)** — Cheat creation, memory searching, ROM data modification, text translation, and game patching.
  163. Install with `npx skills add drhelius/gearsystem`. See the [skills README](skills/README.md) for details.
  164. ## Build Instructions
  165. ### Windows
  166. - Install Microsoft Visual Studio Community 2026 or later.
  167. - Download the latest SDL3 VC development libraries from [SDL3 Releases](https://github.com/libsdl-org/SDL/releases) (the file named `SDL3-devel-x.y.z-VC.zip`).
  168. - Extract the archive and rename the resulting folder (e.g. `SDL3-x.y.z`) to `SDL3`.
  169. - Place the `SDL3` folder inside `platforms/windows/dependencies/` so that the include path is `platforms/windows/dependencies/SDL3/include/SDL3/`.
  170. - Open the Gearsystem Visual Studio solution `platforms/windows/Gearsystem.sln` and build.
  171. ### macOS
  172. - Install Xcode and run `xcode-select --install` in the terminal for the compiler to be available on the command line.
  173. - Run these commands to generate a Mac *app* bundle:
  174. ``` shell
  175. brew install sdl3
  176. cd platforms/macos
  177. make dist
  178. ```
  179. ### Linux
  180. - Ubuntu / Debian / Raspberry Pi (Raspbian):
  181. If you are using Ubuntu 26.04, you can install SDL3 directly. Use the following commands to build:
  182. ``` shell
  183. sudo apt install build-essential pkg-config libsdl3-dev libgl-dev
  184. cd platforms/linux
  185. make
  186. ```
  187. For Ubuntu 24.04, you need to build SDL3 from source first. Use the following commands to build both SDL3 and Gearsystem:
  188. ``` shell
  189. sudo apt install build-essential cmake git curl jq pkg-config \
  190. libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxfixes-dev \
  191. libxi-dev libxss-dev libxkbcommon-dev libwayland-dev libdecor-0-dev \
  192. libdrm-dev libgbm-dev libgl1-mesa-dev libegl1-mesa-dev libdbus-1-dev libudev-dev libxtst-dev
  193. SDL3_TAG=$(curl -s https://api.github.com/repos/libsdl-org/SDL/releases/latest | jq -r '.tag_name')
  194. git clone --depth 1 --branch "$SDL3_TAG" https://github.com/libsdl-org/SDL.git /tmp/SDL3
  195. cmake -S /tmp/SDL3 -B /tmp/SDL3/build -DCMAKE_INSTALL_PREFIX=/usr -DSDL_TESTS=OFF -DSDL_EXAMPLES=OFF
  196. cmake --build /tmp/SDL3/build -j$(nproc)
  197. sudo cmake --install /tmp/SDL3/build
  198. cd platforms/linux
  199. make
  200. ```
  201. - Fedora:
  202. ``` shell
  203. sudo dnf install @development-tools gcc-c++ SDL3-devel
  204. cd platforms/linux
  205. make
  206. ```
  207. - Arch Linux:
  208. ``` shell
  209. sudo pacman -S base-devel sdl3
  210. cd platforms/linux
  211. make
  212. ```
  213. ### BSD
  214. - FreeBSD:
  215. ``` shell
  216. su root -c "pkg install -y git gmake pkgconf sdl3"
  217. cd platforms/bsd
  218. USE_CLANG=1 gmake
  219. ```
  220. - NetBSD:
  221. ``` shell
  222. su root -c "pkgin install gmake pkgconf SDL3"
  223. cd platforms/bsd
  224. gmake
  225. ```
  226. - OpenBSD
  227. ``` shell
  228. doas pkg_add gmake sdl3
  229. cd platforms/bsd
  230. LDFLAGS=-L/usr/X11R6/lib/ USE_CLANG=1 gmake
  231. ```
  232. ### Libretro
  233. - Ubuntu / Debian / Raspberry Pi (Raspbian):
  234. ``` shell
  235. sudo apt install build-essential
  236. cd platforms/libretro
  237. make
  238. ```
  239. - Fedora:
  240. ``` shell
  241. sudo dnf install @development-tools gcc-c++
  242. cd platforms/libretro
  243. make
  244. ```
  245. ## Accuracy Tests
  246. Zexall Z80 instruction exerciser ([from SMS Power!](http://www.smspower.org/Homebrew/ZEXALL-SMS))
  247. <img src="http://www.geardome.com/files/gearsystem/zexall.png" alt="zexall.png" width="256"/>
  248. SMS VDP Test ([from SMS Power!](http://www.smspower.org/Homebrew/SMSVDPTest-SMS))
  249. <img src="http://www.geardome.com/files/gearsystem/vdptest10.png" alt="vdptest1.sms" width="256"/><img src="http://www.geardome.com/files/gearsystem/vdptest11.png" alt="vdptest2.sms" width="256"/><img src="http://www.geardome.com/files/gearsystem/vdptest12.png" alt="vdptest3.sms" width="256"/>
  250. ## Screenshots
  251. ![Screenshot](http://www.geardome.com/files/gearsystem/01.png)![Screenshot](http://www.geardome.com/files/gearsystem/02.png)
  252. ![Screenshot](http://www.geardome.com/files/gearsystem/03.png)![Screenshot](http://www.geardome.com/files/gearsystem/04.png)
  253. ![Screenshot](http://www.geardome.com/files/gearsystem/05.png)![Screenshot](http://www.geardome.com/files/gearsystem/06.png)
  254. ![Screenshot](http://www.geardome.com/files/gearsystem/07.png)![Screenshot](http://www.geardome.com/files/gearsystem/08.png)
  255. ![Screenshot](http://www.geardome.com/files/gearsystem/09.png)![Screenshot](http://www.geardome.com/files/gearsystem/10.png)
  256. ![Screenshot](http://www.geardome.com/files/gearsystem/11.png)![Screenshot](http://www.geardome.com/files/gearsystem/12.png)
  257. ![Screenshot](http://www.geardome.com/files/gearsystem/13.png)![Screenshot](http://www.geardome.com/files/gearsystem/14.png)
  258. <img src="http://www.geardome.com/files/gearsystem/15.png" width="368" height="326"><img src="http://www.geardome.com/files/gearsystem/16.png" width="368" height="326">
  259. <img src="http://www.geardome.com/files/gearsystem/17.png" width="368" height="326"><img src="http://www.geardome.com/files/gearsystem/18.png" width="368" height="326">
  260. ## Contributors
  261. Thank you to all the people who have already contributed to Gearsystem!
  262. [![Contributors](https://contrib.rocks/image?repo=drhelius/gearsystem)](https://github.com/drhelius/gearsystem/graphs/contributors)
  263. ## License
  264. Gearsystem is licensed under the GNU General Public License v3.0 License, see [LICENSE](LICENSE) for more information.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.