Skip to main content
Glama

galetools

CLI y servidor MCP para Gale y Risk of Rain 2: instala, escanea, verifica y prueba mods desde la terminal o desde un asistente como Claude.

  • Habla con Gale a través de su propio CLI y sus enlaces ror2mm://; nunca edita su base de datos.

  • Las pruebas de carga usan perfiles temporales; tus perfiles y configuraciones no se tocan.

  • Solo Windows (Gale + Steam + Windows Defender).

Instalación

Requiere Python 3.10+ y, para scan, el SDK de .NET (dotnet).

uv venv "$env:LOCALAPPDATA\galetools\venv"
uv pip install --python "$env:LOCALAPPDATA\galetools\venv\Scripts\python.exe" "galetools[mcp] @ git+https://github.com/JeffryRU/galetools"

Usa una ruta corta para el entorno virtual: Windows limita las rutas a 260 caracteres.

Variables de entorno opcionales:

Variable

Para qué

GALETOOLS_PROFILE

Perfil por defecto (si no, Default)

GALE_EXE

Ruta a gale.exe si no está en Program Files\Gale

ROR2_DIR

Carpeta del juego si no está en una biblioteca de Steam

GALETOOLS_HOME

Carpeta de caché, descargas y perfiles de prueba (por defecto %LOCALAPPDATA%\galetools)

Related MCP server: DesyncedMCP

CLI: galectl

galectl status                       estado de Gale, del juego y perfiles
galectl mods                         mods del perfil (cambia el perfil con -p "Nombre")
galectl search command pause         busca en Thunderstore (más descargados primero)
galectl info LookingGlass            carpetas, versión y dependencias de un mod
galectl scan Autor-Mod[-1.2.3]       escaneo de seguridad: decompila (ILSpy), busca APIs de riesgo,
                                     detecta código nativo y pasa Windows Defender
galectl install Autor-Mod            escanea y, si el antivirus no detecta nada, instala con Gale
galectl install-local mod.zip        importa un zip local en Gale
galectl verify [--fix]               compara cada mod con su paquete oficial; --fix restaura lo que falte
galectl log                          resumen del último LogOutput.log: errores agrupados y mods que no cargaron
galectl launch [--vanilla]           lanza el juego con el perfil
galectl test Mod1 Mod2 ...           lanza el juego SOLO con esos mods (+dependencias), espera a que cargue,
                                     lo cierra y reporta los errores que no salen en el juego base
galectl test-each                    prueba cada mod por separado
galectl bisect "texto del error"     búsqueda binaria del mod que provoca un error

Las pruebas no empiezan si Risk of Rain 2 ya está abierto y solo cierran el proceso que ellas abrieron.

Servidor MCP

claude mcp add --scope user gale-ror2 -e GALETOOLS_PROFILE="Default" -- "$env:LOCALAPPDATA\galetools\venv\Scripts\galetools-mcp.exe"

Herramientas: gale_status, list_mods, search_mods, mod_info, scan_package, install_mod, install_local_mod, verify_profile, read_game_log, launch_game, test_mod_load, test_each_mod, bisect_error.

Arquitectura

Puertos y adaptadores (hexagonal), en versión ligera:

galetools/
├── domain/          Reglas puras, sin E/S: modelos, parser del log, reglas de seguridad,
│                    estructura de carpetas de Gale, resolución de dependencias
├── ports.py         Interfaces (Protocol) que la aplicación necesita del exterior
├── application/     Casos de uso: catálogo, escaneo, instalación, verificación,
│                    diagnóstico y pruebas de carga. Solo dependen de domain + ports
├── adapters/        Implementaciones reales: Gale (CLI y enlaces), Thunderstore (HTTP),
│                    perfiles en disco, Steam/juego, ILSpy, Windows Defender, caché JSON
├── entrypoints/     CLI (argparse) y servidor MCP: traducen entrada/salida, sin lógica
├── container.py     Raíz de composición: el único sitio que conecta puertos con adaptadores
└── config.py        Configuración desde variables de entorno

Las dependencias apuntan hacia dentro: entrypoints → application → domain, y adapters implementan ports. Por eso los casos de uso se prueban con adaptadores falsos (tests/fakes.py), incluida una prueba de carga completa con un reloj simulado, sin lanzar el juego.

uv pip install --python <venv>\Scripts\python.exe -e ".[mcp,dev]"
<venv>\Scripts\python.exe -m pytest

Licencia

MIT. No incluye código de Gale (GPL-3.0); solo usa su CLI y sus enlaces públicos.

Available Tools

13 tools
bisect_errorB

Binary-searches which single mod makes error_text appear in the log (opens/closes the game several times).

Inputs: error_text (required), profile, settle_seconds. Returns: result

gale_statusA

Whether Gale and Risk of Rain 2 are running, the game folder, and the Gale profiles.

Inputs: no named parameters. Returns: result

install_local_modC

Imports a local Thunderstore-style .zip into a Gale profile through Gale.

Inputs: path (required), profile. Returns: result

install_modA

Installs a Thunderstore mod (with dependencies) into a Gale profile through Gale itself. Scans it first by default and refuses if the antivirus flags it.

Inputs: package (required), profile, scan_first. Returns: result

launch_gameB

Starts Risk of Rain 2 through Gale with a profile (or without mods if vanilla=True).

Inputs: profile, vanilla. Returns: result

list_modsA

Lists the mods of a Gale profile (default profile if empty) with version and enabled state.

Inputs: profile. Returns: result

mod_infoB

Folders, version and dependencies of one installed mod (partial names allowed).

Inputs: name (required), profile. Returns: result

read_game_logB

Summarises the profile's last BepInEx log: loaded plugins, grouped errors, enabled mods that did not load.

Inputs: profile. Returns: result

scan_packageA

Security-scans a Thunderstore package (Owner-Name or Owner-Name-1.2.3): decompiles it, flags risky APIs and native code, and runs Windows Defender. Only downloads; never runs the mod.

Inputs: package (required), antivirus. Returns: result

search_modsB

Searches Risk of Rain 2 mods on Thunderstore by name and description, most downloaded first.

Inputs: query (required), limit. Returns: result

test_each_modA

Loads every enabled mod on its own and reports which ones log errors. ~1 minute per mod; opens and closes the game repeatedly.

Inputs: profile, settle_seconds. Returns: result

test_mod_loadA

Starts the game with ONLY these mods (+ dependencies + core libraries) from a temporary copy of the profile, waits for loading, closes the game and reports errors not present in the base game. Refuses if the game is already open. Empty list = only core libraries.

Inputs: mods (required), profile, settle_seconds. Returns: result

verify_profileB

Compares every installed mod with its official package and lists missing files. fix=True restores them from the official package.

Inputs: fix, only, profile. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools have clearly distinct scopes: discovery (search_mods), inspection (mod_info, list_mods, gale_status), installation, repair, and diagnosis are separable. The only mild overlap is between launch_game and the testing tools (test_mod_load, test_each_mod, bisect_error), which all start the game; descriptions do clarify the difference, but an agent may still hesitate between launch_game and test_mod_load.

    Naming Consistency4/5

    The dominant pattern is verb_noun in snake_case (list_mods, install_mod, verify_profile, read_game_log, launch_game, test_mod_load, bisect_error), applied consistently. Two outliers break the pattern: gale_status uses a server-prefix noun form and mod_info is a noun-first name rather than a verb-based one.

    Tool Count5/5

    13 tools is well inside the ideal range and each one earns its place, covering status, discovery, inspection, installation, repair, and three distinct diagnostic strategies. Nothing appears redundant enough to remove.

    Completeness3/5

    Read/install/verify/launch/test coverage is strong, but the mod lifecycle has notable holes: there is no uninstall/remove, no enable/disable toggle (list_mods reports enabled state yet nothing can change it), and no update_mods or profile create/delete operation. These are core mod-manager workflows that agents would hit dead ends on.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to search, browse, and manage mods across Nexus Mods, mod.io, Thunderstore, and Modrinth, as well as perform local diagnostics like detecting games and parsing crash logs.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to develop Desynced mods by providing direct access to the game's Lua API reference, base-game source, live logs, and installed mods, plus live control via a debugger link for evaluating and reloading Lua in the running game.
      9
      2
      MIT