Gearlynxのロゴ

Gearlynx

コミュニティ
drhelius

Atari Lynx emulator and debugger with embedded MCP server for macOS, Windows, Linux, BSD and RetroArch.

公開者drhelius
リポジトリGearlynx
言語C++
フォーク
12
スター
74
利用可能なツール
0
通信方式stdio
ライセンスGPL-3.0
リンク
  • ツールをAIワークフローに接続

    Gearlynxは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには74件のスターと12件のフォークがあります。

Gearlynx

GitHub Workflow Status GitHub Releases) commits) GitHub contributors GitHub Sponsors License Twitter Follow

Gearlynx is a very accurate, cross-platform Atari Lynx emulator written in C++ that runs on Windows, macOS, Linux, BSD and RetroArch, with an embedded MCP server for AI debugging and development.

This is an open source project with its ongoing development made possible thanks to the support by these awesome backers. If you find it useful, please consider sponsoring.

Don't hesitate to report bugs or ask for new features by opening an issue.

Downloads

Notes:

Features

  • Very accurate emulation supporting the entire commercial Atari Lynx catalog and most homebrew and demos.
  • User selectable Lynx I or Lynx II emulation.
  • Compressed and homebrew ROM support (lnx, lyx, o, bin, and zip).
  • Save states with preview and rewind support.
  • Run-ahead support to reduce input latency.
  • Very accurate audio emulation with configurable low-pass filter (mimics original Lynx audio hardware).
  • ComLynx multiplayer for up to eight emulator instances on the same machine.
  • VGM recorder.
  • Internal database for automatic ROM detection and hardware selection if Auto options are selected.
  • Bank switching (BANK1 + AUDIN) and EEPROM.
  • Save files (EEPROM and NVRAM).
  • GameDrive and ElCheapoSD cartridge APIs.
  • Supported platforms (standalone): Windows, Linux, BSD and macOS.
  • 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.
  • Full debugger with just-in-time run-ahead disassembler that can handle self-modifying code, CPU and memory breakpoints, code navigation (goto address, JP JR and JSR double clicking), debug symbols, automatic labels, memory editor, memory search, Suzy and Mikey register viewer, audio channels, UART, cartridge and video inspector.
  • MCP server for AI-assisted debugging with GitHub Copilot, Claude, Codex and similar, exposing tools for execution control, memory inspection, hardware status, rewind and more.
  • Windows, Linux and macOS Portable Mode.
  • Programmable Shader Chain.
  • ROM loading from the command line by adding the ROM path as an argument.
  • ROM loading using drag & drop.
  • Support for modern game controllers through gamecontrollerdb.txt file located in the same directory as the application binary.

Tips

Basic Usage

  • BIOS: Gearlynx requires a BIOS to work. It is possible to load any BIOS but the original with md5 fcd403db69f54290b51035d82f835e7b is recommended.
  • Mouse Cursor: Automatically hides when hovering over the main output window or when Main Menu is disabled.
  • 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.

Debugging Features

  • Docking Windows: In debug mode, you can dock windows together by pressing SHIFT and dragging a window onto another.
  • 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.
  • 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.
  • Debug Symbols: The emulator automatically tries to load a symbol file when loading a ROM. For example, for path_to_rom_file.rom it tries to load path_to_rom_file.sym, path_to_rom_file.elf, the loaded-file sidecar path_to_rom_file.rom.elf, path_to_rom_file.lbl and path_to_rom_file.noi. You can also load symbol files using the GUI or the CLI. It supports cc65 (VICE label file), lyxass (EQU), mads (lab and hea), llvm-nm, llvm-mos ELF and vicelbl label formats.
  • Sprite Bounding Box: Homebrew and debug builds can draw colored ImGui outlines after Suzy finishes rendering sprites. It can draw all sprites or only SCBs with SPRCOLL bit 7 ($80) set. Real Lynx hardware ignores this bit, but production builds should clear it.
  • Debug Output: Homebrew games can send debug text to the Trace Logger window using unused Mikey registers $FDC0–$FDC4. Enable Debug Output in the Trace Logger Settings menu and make sure the Debug Messages filter is active. See the register protocol below.
RegisterWrite
$FDC0Send buffer to Trace Logger (write any non-zero value)
$FDC1Append byte as ASCII character
$FDC2Append byte as two hex digits
$FDC3Set string pointer low byte
$FDC4Set string pointer high byte (writing this triggers the copy)

Command Line Usage

gearlynx [options] [game_file] [symbol_file]

Arguments:
  [game_file]                 Game file: accepts ROMs (.lyx, .lnx, .o) or ZIP (.zip)
  [symbol_file]               Optional symbol file for debugging

Options:
  -f, --fullscreen            Start in fullscreen mode
  -w, --windowed              Start in windowed mode with menu visible
      --mcp-stdio             Auto-start MCP server with stdio transport
      --mcp-http              Auto-start MCP server with HTTP transport
      --mcp-router            Enable compact MCP tool routing
      --mcp-http-address A    HTTP bind address (default: 127.0.0.1)
      --mcp-http-port N       HTTP port for MCP server (default: 7777)
      --debug-monitor         Start debug monitor TCP server (default port: 6502)
      --debug-monitor-port N  Debug monitor port, 1-65534 (default: 6502)
      --comlynx-join N        Join local ComLynx shared session 1-255
      --headless              Run without GUI (requires MCP, debug monitor, or ComLynx)
      --portable              Store configuration and user data beside the application
  -v, --version               Display version information
  -h, --help                  Display this help message

MCP Server

Gearlynx includes a Model Context Protocol (MCP) server that enables AI-assisted debugging through AI agents like GitHub Copilot, Claude, Codex and similar. The server provides tools for execution control, memory inspection, breakpoints, disassembly, hardware status, rewind and more. STDIO and HTTP transports are supported, with STDIO preferred.

For complete setup instructions and tool documentation, see MCP_README.md.

ComLynx Multiplayer

Choose the same session number in the ComLynx menu on every instance and select Connect, or start each process with --comlynx-join N. Sessions use local shared memory and support up to eight peers on one computer. Independent instances should use separate application copies or --portable data directories so configuration, saves, and single-instance handling do not conflict.

VS Code Extension

A source-level debugger for VS Code lives in its own repository: BrianPeek/gearlynx-vscode. It drives Gearlynx over the debug-monitor protocol (--debug-monitor). The wire contract is documented in VSCODE_PROTOCOL_README.md.

Agent Skills

Gearlynx provides Agent Skills that teach AI assistants how to effectively use the emulator for specific tasks:

  • gearlynx-debugging — Game debugging, code tracing, breakpoint management, hardware inspection, and reverse engineering.
  • gearlynx-romhacking — Cheat creation, memory searching, ROM data modification, text translation, and game patching.

Install with npx skills add drhelius/gearlynx. See the skills README for details.

Hardware Accuracy

Gearlynx passes all tests from Atari Lynx Hardware Test ROMs.

Build Instructions

Windows

  • Install Microsoft Visual Studio Community 2026 or later.
  • Download the latest SDL3 VC development libraries from SDL3 Releases (the file named SDL3-devel-x.y.z-VC.zip).
  • Extract the archive and rename the resulting folder (e.g. SDL3-x.y.z) to SDL3.
  • Place the SDL3 folder inside platforms/windows/dependencies/ so that the include path is platforms/windows/dependencies/SDL3/include/SDL3/.
  • Open the Gearlynx Visual Studio solution platforms/windows/Gearlynx.sln and build.

macOS

  • Install Xcode and run xcode-select --install in the terminal for the compiler to be available on the command line.
  • Run these commands to generate a Mac app bundle:
shell
brew install sdl3
cd platforms/macos
make dist

Linux

  • Ubuntu / Debian / Raspberry Pi (Raspbian):

If you are using Ubuntu 25.04 or later, you can install SDL3 directly. Use the following commands to build:

shell
sudo apt install build-essential libsdl3-dev
cd platforms/linux
make

For older Ubuntu versions (22.04, 24.04), you need to build SDL3 from source first. Use the following commands to build both SDL3 and Gearlynx:

shell
sudo apt install build-essential cmake git curl jq pkg-config \
  libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxfixes-dev \
  libxi-dev libxss-dev libxkbcommon-dev libwayland-dev libdecor-0-dev \
  libdrm-dev libgbm-dev libgl1-mesa-dev libegl1-mesa-dev libdbus-1-dev libudev-dev libxtst-dev
SDL3_TAG=$(curl -s https://api.github.com/repos/libsdl-org/SDL/releases/latest | jq -r '.tag_name')
git clone --depth 1 --branch "$SDL3_TAG" https://github.com/libsdl-org/SDL.git /tmp/SDL3
cmake -S /tmp/SDL3 -B /tmp/SDL3/build -DCMAKE_INSTALL_PREFIX=/usr -DSDL_TESTS=OFF -DSDL_EXAMPLES=OFF
cmake --build /tmp/SDL3/build -j$(nproc)
sudo cmake --install /tmp/SDL3/build
cd platforms/linux
make
  • Fedora:
shell
sudo dnf install @development-tools gcc-c++ SDL3-devel
cd platforms/linux
make
  • Arch Linux:
shell
sudo pacman -S base-devel sdl3
cd platforms/linux
make

BSD

  • FreeBSD:
shell
su root -c "pkg install -y git gmake pkgconf sdl3"
cd platforms/bsd
USE_CLANG=1 gmake
  • NetBSD:
shell
su root -c "pkgin install gmake pkgconf SDL3"
cd platforms/bsd
gmake
  • OpenBSD
shell
doas pkg_add gmake sdl3
cd platforms/bsd
LDFLAGS=-L/usr/X11R6/lib/ USE_CLANG=1 gmake

Libretro

  • Ubuntu / Debian / Raspberry Pi (Raspbian):
shell
sudo apt install build-essential
cd platforms/libretro
make
  • Fedora:
shell
sudo dnf install @development-tools gcc-c++
cd platforms/libretro
make

Contributors

Thank you to all the people who have already contributed to Gearlynx!

Contributors

License

Gearlynx is licensed under the GNU General Public License v3.0 License, see LICENSE for more information.

GearlynxのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Gearlynxに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Gearlynxをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. GearlynxのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "gearlynx": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてGearlynxのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. GearlynxのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Gearlynxを使ってこのタスクを手伝ってもらえますか?
Gearlynx
はい、読みました。
Gearlynxで調べた結果をお伝えします。

よくある質問

Gearlynx MCPサーバーは何に使いますか?

Gearlynxは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでGearlynx MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでGearlynxを利用できます。

TypingMindでGearlynx MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Gearlynxを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Gearlynx MCPをTypingMindに接続するにはどうすればよいですか?

GearlynxはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでGearlynx MCPのどのようなツールを利用できますか?

GearlynxはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Gearlynx MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Gearlynxで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇