1. Conduid
  2. Gaming
  3. Sts2 Modding MCP
MCP server · Gaming

Sts2 Modding MCP

MCP server for Slay the Spire 2 modding — 153 tools for game data querying, mod code generation, building, and deployment

Unclaimed last commit 8 months ago gaming
39Low

Scored 5 hours ago · breakdown

About Sts2 Modding MCP

Sts2 Modding MCP is an MCP server published by elliotttate in the Gaming category: mCP server for Slay the Spire 2 modding — 153 tools for game data querying, mod code generation, building, and deployment. Conduid read 174 tools from its source: analyze_build_output, analyze_method_callers, bridge_act_and_wait, bridge_auto_proceed, bridge_autoslay_configure, bridge_autoslay_start and 168 more. No package is published for it, so it installs from a source checkout.

The repository has 28 stars and 15 forks, and its last commit was on 31 Mar 2026. The latest release is v3.7.0 (25 Mar 2026): Fixes a critical agent workflow issue where LLM agents would repeatedly run ILSpy decompilation instead of using the pre-built Roslyn index for code lookups, wasting sig… It follows v3.6.0 (24 Mar 2026), and the 5 most recent releases go back to v3.3.0 (22 Mar 2026). It passes 3 of the 5 static checks Conduid ran on the repository; it does not pass License declared and Dependencies pinned. Its topics include gaming.

Install

From source
git clone https://github.com/elliotttate/sts2-modding-mcp

Tools (174)

analyze_build_outputParse dotnet build stdout/stderr into structured compiler errors and warnings.
analyze_method_callersShow the call graph for a game method: who calls it, what it calls, and which classes override it. Essential for understanding patch side effects.
bridge_act_and_waitExecute any action, wait for the game to settle, then return the new full state. This is the RECOMMENDED way to interact with the game — it combines action + wait + state read in one call so you always know where you are after acting. Actions: play_card, end_turn, use_potion, discard_potion, event_option, reward_select, reward_proceed, card_select, card_skip, card_confirm, treasure_pick, treasure_proceed, shop_buy, shop_proceed, rest_option, rest_proceed, map_travel, proceed. Returns: action_result + full game state (screen, player, combat, available_actions).
bridge_auto_proceedAutomatically advance past non-combat screens (rewards, card selections, treasure, rest sites, shops, events, loading). Handles screen transitions and waits for stability. Stops and returns when it reaches a screen that needs a decision: combat (play cards), map (choose path), or optionally reward/card selection screens. Use this when you don't care about intermediate screens and just want to get to the next decision point.
bridge_autoslay_configureConfigure AutoSlay timeouts and behavior before starting runs. Settings persist until changed or the game restarts. Useful for adjusting for slow mods (increase timeouts) or speed testing (decrease).
bridge_autoslay_startStart the game's built-in AutoSlay automated runner. AutoSlay plays through entire runs automatically — handling combat, events, shops, rest sites, rewards, and map navigation with built-in AI. Use for: smoke testing mods across many runs, crash/stability testing, regression testing with specific seeds, performance profiling. Complements manual bridge testing: AutoSlay = fire-and-forget full runs, bridge actions = precise step-by-step control.
bridge_autoslay_statusGet the current AutoSlay status. Returns whether it's running, runs completed, current floor/act/room, elapsed time, recent log entries, and any errors. Use to monitor progress of automated runs.
bridge_autoslay_stopStop the currently running AutoSlay session. The current run will be cancelled and control returns to the main menu.
bridge_capture_screenshotCapture a screenshot of the game window. Saves as PNG. Useful for visual verification of UI mods, VFX, and custom scenes.
bridge_card_confirmConfirm the current card selection (after selecting cards with bridge_card_select).
bridge_card_selectSelect one or more cards on a card selection screen (card reward picks, upgrades at rest/events, card removal at shops/events, scry, etc.). Use card_index for a single card or card_indices for multiple. Set confirm=true to auto-confirm after selection.
bridge_card_skipSkip card selection (decline to pick a card reward, cancel selection, etc.).
bridge_clear_eventsClear the event ring buffer. Use before a test run to get a clean baseline, then check bridge_get_events afterwards to see only new events.
bridge_clear_exceptionsClear the exception ring buffer. Use before a test run to get a clean baseline, then check bridge_get_exceptions afterwards to see only new exceptions.
bridge_click_nodeClick a Godot UI node by its scene tree path. Works without window focus. Emits 'pressed' signal for buttons, or invokes click-like methods.
bridge_consoleExecute a dev console command in the running game. Examples: 'gold 999', 'godmode', 'relic add ANCHOR', 'card BASH', 'fight AXEBOTS_NORMAL', 'heal 999', 'win', 'kill', 'potion BLOCK_POTION', 'power STRENGTH_POWER 5 0', 'draw 3', 'unlock all', 'event ABYSSAL_BATHS'. Use get_console_commands for the full list.
bridge_debug_clear_breakpointsRemove all breakpoints and disable step mode.
bridge_debug_get_contextGet the current breakpoint/pause context. When paused, returns: why execution stopped, which breakpoint or step triggered it, the current action type, and a full game state snapshot (HP, block, energy, hand, powers, enemies, floor, act, room).
bridge_debug_list_breakpointsList all breakpoints with their IDs, types, targets, conditions, hit counts, and current pause/step state.
bridge_debug_pausePause the game's action processing. The game continues rendering but no more actions (card plays, damage, powers, etc.) execute until resumed. Use to inspect state mid-combat.
bridge_debug_remove_breakpointRemove a breakpoint by its ID.
bridge_debug_resumeResume from a breakpoint or pause. Continues normal game execution.
bridge_debug_set_breakpointSet a breakpoint that pauses execution when a condition is met. Action breakpoints pause when a specific action type executes (e.g., PlayCardAction, DamageAction). Hook breakpoints pause when a specific game hook fires (e.g., BeforeCardPlayed, BeforeDamageReceived). Optional conditions can further filter: 'hp<10', 'energy==0', 'round>=3'.
bridge_debug_stepStep: resume execution then pause again at the next opportunity. In 'action' mode, pauses after the next game action completes. In 'turn' mode, pauses at the start of the next player turn. After stepping, use bridge_debug_get_context to inspect the game state.
bridge_discard_potionDiscard a potion from the player's potion slots (e.g. to make room for a new one). Specify potion_index (0-based slot position).
bridge_end_turnEnd the current player turn in combat.
bridge_execute_actionUnified action dispatcher — execute any screen-appropriate action by name. Actions: travel/map_travel, event_option, event_proceed, reward_select, reward_proceed, reward_skip, shop_buy, shop_proceed, rest_option, rest_proceed, treasure_pick, treasure_proceed, card_select, card_confirm, card_skip, discard_potion, proceed. Pass action-specific params (choice_index, reward_index, card_index, etc.).
bridge_focus_gameBring the Slay the Spire 2 window to the foreground (Windows only). Call before bridge commands if scene transitions aren't executing — the game may not process transitions when its window is unfocused.
bridge_get_available_actionsGet all currently legal actions for the current screen. Returns a list of action objects with action name, indices, labels, and types. Use this to know EXACTLY what you can do right now. Each action maps to a bridge tool: - play_card → bridge_play_card(card_index, target_index) - end_turn → bridge_end_turn - travel → bridge_navigate_map(row, col) - event_option → bridge_make_event_choice(choice_index) - reward_select → bridge_reward_select(reward_index) - reward_proceed → bridge_reward_proceed - card_select → bridge_card_select(card_index) - card_skip → bridge_card_skip - card_confirm → bridge_card_confirm - treasure_pick → bridge_treasure_pick(treasure_index) - treasure_proceed → bridge_treasure_proceed - shop_buy → bridge_shop_buy(item_type, index) - shop_proceed → bridge_shop_proceed - rest_option → bridge_rest_site_choice(choice) - rest_proceed → bridge_rest_site_proceed Call this first when unsure what to do on the current screen.
bridge_get_card_pilesGet detailed contents of all card piles in combat: hand, draw pile, discard pile, and exhaust pile. Each card includes name, type, cost, upgraded status.
bridge_get_combat_stateGet live combat state with full intent decomposition: round, player turn status, enemies (HP/block/powers/intent with damage/hits/total_damage), player hand (each card's playability, energy cost, valid targets), energy, draw/discard/exhaust pile sizes, powers.
bridge_get_diagnosticsGet comprehensive diagnostics in a single call: current screen, run state (floor/act/room), combat state, active screen object shape, current event shape, and recent bridge log lines. Useful as a first step when investigating issues.
bridge_get_eventsGet game events since a given event ID. Events include card plays, turn ends, run starts, hot swaps, screenshots, and other tracked actions. Use since_id for cursor-based polling.
bridge_get_exceptionsGet recent unhandled exceptions captured by the bridge mod. Catches mod exceptions in real-time including type, message, stack trace, and source.
bridge_get_full_stateGet compact combined game state in ONE call: current screen, run info (act/floor/HP/gold/character), combat state (if in combat), and all available actions. This is the best starting point — call this to understand where the game is and what you can do. The available_actions list tells you exactly which bridge tools to call next.
bridge_get_game_logGet captured game log messages from the game's own logging system. Covers all game subsystems (Actions, Network, GameSync, VisualSync, Generic). Different from bridge_get_log which reads the bridge mod's log file. Supports filtering by log level and message content, and cursor-based polling via since_id.
bridge_get_log_levelsGet current log level settings for all categories, the global level, and the capture threshold. Also returns valid type and level names for reference.
bridge_get_map_stateGet full map graph: all nodes with row/col, type (Monster/Elite/Boss/Rest/Shop/Event/Treasure), visited status, available (can travel to) status, child connections.
bridge_get_player_stateGet detailed player state: full deck with card types/rarities/costs/upgrades, all relics with rarities, potion slots, gold, HP.
bridge_get_run_stateGet current run state: act, floor, ascension, seed, current room, players with HP/gold/deck size/relic count/max energy.
bridge_get_screenGet current game screen. Possible values: COMBAT_PLAYER_TURN — your turn, play cards or end turn COMBAT_ENEMY_TURN — wait for enemies to finish MAP — choose a path node to travel to EVENT — choose an event option REWARD — claim rewards (gold/card/relic/potion) then proceed CARD_SELECTION — pick/skip a card (reward, upgrade, remove) SHOP — buy items or leave REST_SITE — rest/smith/recall then proceed TREASURE — pick relic then proceed MAIN_MENU, CHARACTER_SELECT, GAME_OVER, LOADING, SETTINGS, TIMELINE Tip: Use bridge_get_full_state instead for screen + actions in one call.
bridge_get_state_diffGet changes in game state since the last call. First call captures a baseline. Subsequent calls return only fields that changed (HP, block, energy, hand, enemies, etc.). Useful for verifying the effect of actions without comparing full state dumps.
bridge_hot_reloadHot-reload a mod without restarting the game. Three tiers: tier 1 = Harmony patches only, tier 2 (default) = patches + entity models (cards/relics/powers/potions re-registered in ModelDb) + localization, tier 3 = tier 2 + PCK resource remount. Automatically detects AbstractModel subtypes from the new assembly and re-registers them in ModelDb. When pool_registrations are omitted, discovers [Pool(typeof(...))] attributes via reflection on the compiled assembly (100% accurate). Uses a separate Harmony instance so MCPTest's own patches are preserved, and cleans up stale patches from old assemblies. Pool refresh is scoped to the reloaded mod only — other mods' registrations are not affected. Live instances (NCard, NRelic, NPower, NPotion) are refreshed in the scene tree. For most use cases prefer hot_reload_project which auto-discovers DLL/PCK paths. See get_modding_guide topic 'hot_reload' for full protocol reference and non-MCP usage.
bridge_hot_reload_progressGet the current step of an in-progress hot reload. Returns the step name and whether a reload is currently in progress. Useful for monitoring long reloads.
bridge_hot_swap_patchesHot-swap Harmony patches from a new DLL without restarting the game. Unpatches all existing patches and re-applies from the specified assembly. Enables rapid iteration on patch-based mods.
bridge_make_event_choiceSelect a choice in the current event. Requires being on the EVENT screen. choice_index is 0-based. Use bridge_get_screen to verify you're in an event.
bridge_manipulate_stateApply state changes for testing. Set HP, gold, energy, draw cards, add relics/cards/powers, start fights, enable godmode. A test harness for rapid mod iteration.
bridge_navigate_mapTravel to a map node by row and column. Requires being on the MAP screen. Use bridge_get_map_state to see available nodes.
bridge_navigate_menuNavigate the main menu programmatically. Works even when the game window is not focused. Targets: 'continue' (resume saved run), 'compendium' (open compendium submenu), 'card_library' (open card library directly), 'settings' (open settings screen), 'profile' (open profile screen), 'timeline' (open timeline screen), 'multiplayer' (open multiplayer submenu), 'new_run' (open character select), 'abandon' (abandon current run), 'back' (pop current submenu / dismiss popup).
bridge_navigate_to_combatAutomatically navigate from any screen to the first combat encounter. Handles Neow events, card selections, reward screens, map navigation, and other intermediate screens. Focuses the game window first. Useful for quickly getting to combat for testing mods.
bridge_pingCheck if the game is running and the MCPTest bridge mod is loaded. Returns mod version, current screen, run/combat status. Bridge on TCP 21337.
bridge_play_cardPlay a card from the player's hand in combat. Specify card_index (0-based position in hand) and target_index (0-based enemy index, required for AnyEnemy cards like Strike). Use bridge_get_combat_state first to see hand contents and valid targets.
bridge_proceedGeneric proceed/advance — works on any screen. Attempts to click proceed, continue, leave, or done buttons on the current screen. Use this when you need to advance past a screen and no specific action tool applies.
bridge_refresh_live_instancesRefresh live card, relic, power, potion, and monster instances in the running game after hot reload. Walks the Godot scene tree and re-sets Model properties on NCard, NRelic, NPower, NPotion, and NCreature nodes to fresh instances from ModelDb. Makes changes visible immediately in the current combat without requiring a new encounter. Called automatically during tier 2+ hot_reload, but can be invoked standalone to force a visual refresh.
bridge_reload_historyGet the history of recent hot reloads with timestamps, entity counts, errors, and warnings. Useful for debugging reload failures across a session.
bridge_reload_localizationReload localization tables from disk without rebuilding. Picks up changed JSON localization files from mod PCK or override directories. Triggers UI text refresh via locale change notification.
bridge_rest_site_choiceMake a choice at a rest site. Options: 'rest' (heal), 'smith' (upgrade card), 'recall'.
bridge_rest_site_proceedLeave the rest site after performing an action (rest/smith/recall).
bridge_restart_runRestart a run using the same parameters as the last bridge_start_run call. Saves time by not re-specifying character, ascension, seed, fixtures, etc.
bridge_restore_snapshotRestore a previously saved state snapshot by name. Re-applies HP, gold, energy via console commands.
bridge_reward_proceedProceed from the reward screen after claiming desired rewards.
bridge_reward_selectClaim a reward from the reward screen. Specify the reward_index (0-based) from the available rewards shown by bridge_get_available_actions. Rewards include gold, cards, relics, and potions.
bridge_reward_skipSkip the current reward (e.g. skip card reward selection).
bridge_save_snapshotSave a named snapshot of the current game state. Can be restored later with bridge_restore_snapshot for A/B testing.
bridge_set_game_speedSet the game speed multiplier for faster testing. 1.0 = normal, 2.0 = double speed, 10.0 = 10x speed, 0.5 = half speed. Range: 0.1 to 20.0. Use high values to quickly test through combat sequences.
bridge_set_log_levelSet game logging verbosity. Can set per-category levels (e.g., Actions→Debug to see every game action), the global fallback, or the capture buffer threshold. Log levels from most to least verbose: VeryDebug, Load, Debug, Info, Warn, Error. Log types: Generic, Network, Actions, GameSync, VisualSync. Lowering levels to Debug or VeryDebug enables verbose output for that subsystem.
bridge_shop_actionPerform a shop action: buy a card, relic, or potion by index, or remove a card.
bridge_shop_buyBuy a specific item from the shop. Specify item_type (card/relic/potion/remove) and index (0-based position within that category).
bridge_shop_proceedLeave the shop and return to the map.
bridge_start_runStart a new singleplayer run. Characters: Ironclad, Silent, Regent, Necrobinder, Defect. Supports deterministic seeds, optional modifiers/act lists, and fixture commands for rapid test setup immediately after the run starts.
bridge_treasure_pickPick a treasure/relic from a treasure chest. Specify treasure_index (0-based) from the available items shown by bridge_get_available_actions.
bridge_treasure_proceedProceed from the treasure screen after picking (or skipping) treasure.
bridge_use_potionUse a potion from the player's potion slots. Specify potion_index (0-based) and target_index for targeted potions. Use bridge_get_player_state to see potions.
bridge_wait_for_screenWait until the game reaches a specific screen (case-insensitive substring match). Use after actions that trigger screen transitions (e.g. after navigate_map, wait for COMBAT). Tip: Use bridge_auto_proceed instead if you just want to get past intermediate screens.
browse_namespaceList all files in a specific namespace/directory of the game source. Source is already indexed — do NOT call decompile_game first. Use list_namespaces first to see available namespaces, then browse specific ones.
build_modBuild a mod project using project-aware defaults from its .csproj and manifest. Can optionally build the project's PCK artifact in the same call.
build_pckBuild a Godot .pck resource pack from a directory. Pure Python — no Godot install needed. Converts .png images to .ctex format with .import remaps. Packs .tscn scenes, .json, .tres files as-is. The PCK is required for mods that include visual assets (images, scenes, materials).
check_dependenciesCheck mod project dependencies from .csproj. Lists NuGet packages, DLL references, and validates they exist on disk.
check_mod_compatibilityCheck if a mod's code references any APIs that changed in the latest game version. Verifies Harmony patch targets, base classes, ModelDb references, and hook signatures.
convert_resourceConvert between binary and text Godot resource formats. Binary→text: .scn/.res → .tscn/.tres (readable, editable). Text→binary: .tscn/.tres → .scn/.res (for packing). Essential for understanding game scene node hierarchies and resource structures.
create_mod_projectCreate a complete mod project scaffold with proper directory structure, .csproj, ModEntry, mod_manifest.json, localization folders, and image directories. This is the first step in creating a new mod.
decompile_gameRe-decompile sts2.dll to refresh the game source after a game UPDATE. IMPORTANT: Do NOT call this for normal code lookups — use search_game_code, get_entity_source, or browse_namespace instead, which work from the pre-built index. Only call this if get_setup_status shows decompiled_exists=false, or after a game version update. Requires ilspycmd.
decompile_gdscriptDecompile GDScript bytecode (.gdc) files to readable source (.gd). Use after extracting .gdc files from the game PCK to understand game scripts.
diff_game_versionsCompare two decompiled source directories to find API changes after a game update. Shows added/removed files, changed hooks, changed public methods.
discover_mod_projectsDiscover all mod projects in a workspace directory. Finds directories with .csproj files and inspects their mod structure.
explorer_call_methodCall a method on a live Godot node by name. Requires GodotExplorer mod running in the game.
explorer_find_nodesFind nodes in the live scene tree by name pattern or type. Supports * wildcards (e.g. '*Card*', '*Button*'). Requires GodotExplorer mod running in the game.
explorer_get_game_infoGet game engine info: Godot version, FPS, window size, node count, process name. Requires GodotExplorer mod running in the game.
explorer_get_node_countGet total node count in the live Godot scene tree. Requires GodotExplorer mod running in the game.
explorer_get_propertyGet a specific property value from a live Godot node. Requires GodotExplorer mod running in the game.
explorer_get_scene_treeGet the live Godot scene tree hierarchy as JSON. Returns node names, types, paths, child counts, visibility, and size/position for Control nodes. Requires GodotExplorer mod running in the game.
explorer_inspect_nodeGet detailed info about a live Godot node: all properties (with values, types, categories), class name, children list. Use explorer_find_nodes or explorer_get_scene_tree first to find node paths. Requires GodotExplorer mod running in the game.
explorer_inspect_typeGet detailed info about a .NET type in the running game: methods, properties, base type, assembly. Use explorer_search_types first to find type names. Requires GodotExplorer mod running in the game.
explorer_list_assembliesList all loaded .NET assemblies in the running game with version and type counts. Useful for discovering what's loaded at runtime. Requires GodotExplorer mod running in the game.
explorer_list_groupsList all nodes in a specific Godot group, or list all group names if no group specified. Requires GodotExplorer mod running in the game.
explorer_search_typesSearch for .NET types across all loaded assemblies in the running game. Case-insensitive partial match. Returns up to 50 results with full names. Requires GodotExplorer mod running in the game.
explorer_set_propertySet a property value on a live Godot node. Value is auto-parsed to the correct type (bool/int/float/string). Requires GodotExplorer mod running in the game.
explorer_toggle_visibilityToggle visibility of a CanvasItem node (Control, Sprite2D, etc.) in the live scene. Requires GodotExplorer mod running in the game.
explorer_tween_propertyAnimate a Godot node property over time using a Tween. Supports looping and multiple transition types (linear, sine, quad, cubic, back, bounce, elastic). Requires GodotExplorer mod running in the game.
extract_game_assetsExtract files from the game PCK to a local directory for analysis. Can extract everything, filter by glob pattern, or extract only scripts. Useful for examining game scenes, understanding node hierarchies, or getting reference textures.
generate_act_encounter_patchGenerate a patch that injects a custom encounter into an act's encounter pool.
generate_ancientGenerate a BaseLib CustomAncientModel scaffold with option pools and localization.
generate_animated_barGenerate an animated progress bar with smooth tweens, color gradients (green→red), flash-on-damage, and optional low-value pulse effect. Use for HP trackers, XP bars, charge meters, or any numeric display. See get_modding_guide topic 'ui_elements' for patterns.
generate_artGenerate game art using Google Gemini Nano Banana 2 and process it into all required size variants for the given asset type. Produces ready-to-use PNG files in the mod project's image directories. Requires GOOGLE_API_KEY env var.
generate_cardGenerate a new card class with proper structure, dynamic vars, OnPlay logic, upgrade logic, and localization entries. Returns the source code and localization - does NOT write files automatically.
generate_characterGenerate a custom playable character class with card/relic/potion pools. REQUIRES BaseLib (Alchyr.Sts2.BaseLib). Generates CustomCharacterModel subclass with pool models, starter deck/relics, visual asset paths, energy counter, color theming, animation setup, and multiplayer hand gesture stubs. Use scaffold_character_assets to create the required Godot scene files.
generate_create_visuals_patchGenerate the CreateVisuals Harmony patch required for static-image custom enemies.
generate_custom_keywordGenerate a custom card keyword using BaseLib's [CustomEnum] attribute (requires BaseLib dependency). Creates a new CardKeyword enum value that can be added to cards via Keywords property and shown in tooltips. Use with generate_custom_tooltip to add a hover explanation. See get_modding_guide topic 'custom_keywords_and_piles'.
generate_custom_pileGenerate a custom card pile type using BaseLib's [CustomEnum] attribute (requires BaseLib dependency). Creates a new PileType enum value for routing cards to custom locations beyond the standard hand/draw/discard/exhaust piles. Use when your mechanic needs a separate card zone. See get_modding_guide topic 'custom_keywords_and_piles'.
generate_custom_tooltipGenerate a custom keyword tooltip that appears on hover in card/relic descriptions. Creates a Harmony patch that registers the keyword with HoverTipManager.
generate_dynamic_varGenerate a custom DynamicVar subclass for use in card/power/enchantment descriptions. DynamicVars are named numeric values referenced in localization strings as {var_name} that resolve at display time and update dynamically (e.g., scaling with Strength via ValueProp.Move). Use when built-in vars (MoveVar, BlockVar, MagicVar, UrMagicVar) aren't enough. See get_modding_guide topic 'dynamic_vars' for ValueProp options and upgrade integration.
generate_enchantmentGenerate a custom enchantment class. Enchantments are card-local modifications that attach to specific card instances and trigger via the same hook system as powers/relics. Use EnchantedCard property to reference the attached card. Unlike powers (player-wide) or upgrades (permanent), enchantments are instance-specific and can be added/removed. See get_modding_guide topic 'enchantments' for lifecycle and hook details.
generate_encounterGenerate a new encounter class that spawns specific monsters.
generate_eventGenerate a custom event class with a choice tree. Events are narrative encounters with player choices (accept/refuse/leave). Generates EventModel subclass with EventOption yields and choice handler methods.
generate_floating_panelGenerate a mouse-following info panel with BBCode rich text, fade animation, and hotkey toggle. Great for showing contextual info, card details, or debug data that follows the cursor. Uses RichTextLabel with BBCode for colors, bold, italics. See get_modding_guide topic 'ui_elements' for patterns.
generate_game_actionGenerate a custom GameAction class for queuing multi-step combat effects on the game's action queue. Use GameAction (instead of direct await) when you need effects to interleave with other queued actions, execute between turns, or sync over multiplayer. Enqueue via RunManager.Instance.ActionQueueSynchronizer.RequestEnqueue(). See get_modding_guide topic 'game_actions' for when to use vs. direct effects.
generate_godot_uiGenerate a custom Godot UI panel built programmatically in C#. Creates a styled panel with configurable controls (labels, buttons, sliders, checkboxes). Used by mods that need custom in-game interfaces without .tscn files.
generate_harmony_patchGenerate a Harmony patch class to hook into existing game methods. Harmony patches are the primary way to modify game behavior beyond the hook system.
generate_hover_tipGenerate a hover tooltip utility class for showing contextual information. Provides static methods to show/hide HoverTip at positions or attached to nodes.
generate_localizationGenerate localization JSON entries for a mod entity. Uses the game's localization format with SmartFormat support for dynamic variables: {Amount}, {Damage}, {Block}, etc. Rich text: [gold]keyword[/gold], [blue]{value}[/blue].
generate_mechanicGenerate a complete cross-cutting keyword mechanic spanning multiple entity types: a tracking PowerModel (holds stacks, implements the effect), a sample card that applies it, a sample relic that rewards/synergizes with it, and all localization entries. Use this for new mechanics like Poison, Mantra, or Vulnerable — concepts that need a power + cards + relics working together. For single entities, use the individual generators instead. See get_modding_guide topic 'mechanics' for design patterns (threshold, tick-down, modifier).
generate_mod_configGenerate a mod config class with auto-generated in-game settings UI. REQUIRES BaseLib. Supports bool toggles, double sliders with ranges, and enum dropdowns. Config is auto-persisted to JSON files.
generate_modifierGenerate a custom run modifier (Good or Bad) for the custom run screen. Includes ModifierModel subclass, registration Harmony patch (to add to ModelDb), and LocManager localization patch. Modifiers alter gameplay mechanics like rewards, card pools, relic acquisition, and run setup.
generate_monsterGenerate a new monster class with move state machine, scene file (.tscn), and localization. Provide a list of moves with their damage/block/type. Also generates the required CreateVisualsPatch if using static images.
generate_net_messageGenerate a multiplayer network message class implementing INetMessage and IPacketSerializable. Used for syncing mod state across players. Supports typed fields with auto-generated serialization. Common in multiplayer mods (chat, drawing sync, damage tracking).
generate_orbGenerate a custom orb class (Defect character mechanic). Orbs sit in slots and have two effects: Passive triggers automatically at end of each turn, Evoke triggers when pushed out by a new orb or manually evoked. Values scale with Focus via ModifyOrbValue(). See get_modding_guide topic 'orbs' for patterns and Focus interaction.
generate_overlayGenerate a Godot Control node overlay that auto-injects into a game scene via Harmony patch. The overlay updates each frame via _Process() and cleans up automatically when the scene changes. Injection targets: NCombatRoom (combat), NMapRoom (map), NShopRoom (shops), NRestSiteRoom, NEventRoom. Use for debug displays, stat trackers, custom HUD elements, or mod-specific UI. See get_modding_guide topic 'overlays' for positioning and game state access.
generate_potionGenerate a new potion class with proper structure and localization.
generate_powerGenerate a new power (buff/debuff) class with proper structure and hooks. Common trigger hooks: ModifyDamageAdditive, ModifyDamageMultiplicative, BeforeHandDraw, AfterTurnEnd, AfterCardPlayed.
generate_reflection_accessorGenerate a utility class with cached reflection accessors for private fields/properties. Uses Harmony's AccessTools for safe access. Essential for mods needing private game state.
generate_relicGenerate a new relic class with proper structure, hook methods, and localization. Common trigger hooks: BeforeCombatStart, AfterCardPlayed, AfterDamageReceived, AfterTurnEnd, AfterBlockGained, ModifyDamageAdditive.
generate_save_dataGenerate a save data class for persisting mod state across sessions. Data is stored as JSON at %APPDATA%/.sts2mods/{mod_id}/save_data.json.
generate_scrollable_listGenerate a toggleable scrollable list panel that slides in from the right edge. Supports color-coded item rows with optional count badges. Use for deck trackers, log viewers, inventory lists, or any dynamic list display. See get_modding_guide topic 'ui_elements' for patterns.
generate_settings_panelGenerate a mod settings class with optional ModConfig integration (via reflection, no hard dependency). Falls back to JSON file config if ModConfig isn't installed. Supports bool, int, float, and string settings with persistence.
generate_spire_fieldGenerate a SpireField for attaching custom data to game model instances. Like a dictionary keyed by instance — attach ints, bools, or objects to any CardModel, Creature, etc. without modifying the class. Requires BaseLib.
generate_test_scenarioGenerate a console command sequence for testing a specific game state. Outputs commands to add relics, cards, gold, powers, start fights, etc.
generate_transpiler_patchGenerate a Harmony IL Transpiler patch for modifying method bytecode. More powerful than prefix/postfix — can change specific IL instructions. Used for value modifications, conditional injection, and protocol changes.
generate_vfx_sceneGenerate a Godot .tscn scene file with GPUParticles2D for combat visual effects. Creates a particle system scene to pack into your mod's PCK and load at runtime via GD.Load<PackedScene>("res://YourMod/vfx/name.tscn"). Configure particle count, lifetime, one_shot (burst vs. loop), and explosiveness (spread vs. instant). See get_modding_guide topic 'vfx_scenes' for loading patterns and common VFX recipes.
get_baselib_referenceGet documentation for BaseLib (Alchyr.Sts2.BaseLib) - the community modding library. Topics: overview, custom_card, custom_relic, custom_power, custom_potion, custom_character, custom_ancient, config, card_variables, common_actions, spire_field, weighted_list, il_patching, mod_interop, utilities, fmod_audio.
get_character_asset_pathsGet ALL required asset file paths for a character, organized by category. Shows exact res:// paths for combat visuals, energy counter, character select, icons, animations, SFX events, Spine animation names, and localization keys. Essential reference when creating character assets.
get_console_commandsList all developer console commands available in-game for testing mods. Includes commands like 'card', 'relic', 'fight', 'gold', 'godmode', etc.
get_entity_relationshipsShow what other entities a game entity interacts with: powers it applies, cards it references, commands it uses, hooks it implements. Map the dependency graph for any card, relic, power, monster, etc.
get_entity_sourceGet the full C# source code for any game class — source is already indexed and ready. Works for cards, relics, potions, powers, monsters, encounters, events, base classes (CardModel, RelicModel, AbstractModel, etc.), hooks, modding API, combat system, commands, factories, and any other class in the game. Use this to understand how existing game content works before creating mods. Do NOT call decompile_game before using this.
get_game_infoGet overview of the game: version, file paths, entity counts, available namespaces, and the modding API surface. Good starting point for understanding the game.
get_hook_signatureReturn a hook's full signature plus a ready-to-paste override stub for generator workflows.
get_modding_guideGet contextual documentation for modding STS2. Covers 40+ topics including content creation (cards, relics, powers, potions, monsters, encounters, events, enchantments, orbs, modifiers, custom_characters), systems (hooks, pools, combat_deep_dive, dynamic_vars, game_actions, mechanics, vfx_scenes, overlays), infrastructure (harmony_patches, localization, building, project_structure, resource_loading, godot_ui_construction), BaseLib (custom_keywords_and_piles, mod_config_integration), audio (audio — FMOD custom sounds, replacements, banks), advanced (reflection_patterns, advanced_harmony, multiplayer_networking, rng_and_determinism, save_file_format, fastmp), and testing/debugging (debugging, testing, autoslay, console, bridge_setup, troubleshooting, workflows, game_log_parsing).
get_setup_statusCheck the server setup status: whether the game was found, .NET/ilspycmd are installed, source is decompiled, Roslyn index is built, GDRE tools are available. Use this to diagnose setup issues. If decompiled_exists and roslyn_index_exists are both true, all code lookup tools (search_game_code, get_entity_source, browse_namespace) are ready — do NOT call decompile_game.
hot_reload_projectBuild, deploy, and hot-reload a mod project in one step. Automatically finds the deployed DLL/PCK and, when pool_registrations are omitted, lets the C# bridge discover them via assembly reflection (100% accurate). Runs async so the MCP server stays responsive during build. Use this for manual iteration when you want a project-aware workflow instead of passing low-level paths. For continuous auto-reload on save, use watch_project instead. See get_modding_guide topic 'hot_reload' for tier details and limitations.
install_modInstall a built mod to the game's mods directory. Copies DLL, manifest, PCK, and images.
launch_gameLaunch Slay the Spire 2 with optional debug parameters. Can enable remote debugging (for Godot editor output) and other launch flags.
list_art_profilesList all supported asset types and their image variant specifications. Shows output sizes, file paths, background modes, and effects for each type.
list_entitiesList game entities (cards, relics, potions, powers, monsters, encounters, events, enchantments, characters, orbs, acts, etc.) with optional filters. Returns entity name, type, base class, and key properties. Entity types: card, relic, potion, power, monster, encounter, event, enchantment, affliction, character, orb, card_pool, relic_pool, potion_pool, act, modifier.
list_game_assetsList all files inside the game's Godot PCK archive (SlayTheSpire2.pck). Shows every res:// path the game uses — scenes, textures, scripts, resources, audio, etc. Use to discover asset paths for modding, find scene structures, or understand game layout. Requires gdre_tools binary (see GDRE_TOOLS_PATH env var).
list_game_audioSearch the game's FMOD audio events, buses, and banks. The game has 563 FMOD events across 12 banks. Use this to find event paths for specific sounds (e.g. 'merchant' to find merchant voice lines, 'attack' for attack sounds, 'act2' for act 2 music). Returns event paths, GUIDs, parameters, and bank info.
list_game_vfxList VFX-related classes, particle systems, and animation references in the game. Use to find existing VFX to reuse in your mod.
list_hooksList all game hooks available for modding. Hooks are the primary way mods interact with game events. Categories: before (pre-event), after (post-event), modify (change values), should (boolean gates), try (conditional actions). Subcategories: card, damage_block, power, turn, map, reward, potion, orb, combat, death, hand, special, rest_site, gold, relic, general.
list_installed_modsList all mods currently installed in the game's mods directory with their manifest data.
list_pckList the contents of a .pck file. Useful for debugging asset loading issues.
package_modPackage a built mod into a distributable zip archive. Includes DLL, manifest, PCK, and mod image.
process_artProcess an existing image file into game-ready variants for a given asset type. Handles background removal (for relics/powers), resizing, outline generation, and locked-state effects. Use this when you already have source art and just need the correctly-sized variants placed into the mod project.
recover_game_projectFull Godot project recovery from the game PCK — the asset-side equivalent of decompile_game. Extracts all assets, decompiles GDScript bytecode to readable .gd, and converts binary scenes/resources to text format (.tscn/.tres). Run once after game install or major update.
reverse_hook_lookupFind what hooks fire when an entity is used or triggered. Inverse of get_entity_relationships: shows hooks relevant to a card/relic/power/monster, which hooks the entity overrides, and which hooks accept its base class as a parameter.
run_test_scenarioRun an automated test scenario against the live game (requires bridge mod running). Structure: {setup: {run params}, steps: [{action, assertions}], verify: {final checks}}. Step actions: play_card, end_turn, console, manipulate_state, navigate_map, use_potion, make_event_choice, wait_for_screen, wait_idle. Assertions check game state: hp, gold, energy, block, hand_size, enemy_N_hp, has_power_X, power_X (with operators: eq, gt, lt, gte, lte). See get_modding_guide topic 'testing' for full assertion syntax and example scenarios.
scaffold_character_assetsGenerate the complete directory structure and placeholder scenes for a new playable character. Creates 8+ .tscn scene files (combat visuals, energy counter, char select, rest site, merchant, etc.), localization entries, and a checklist of required image assets. Use with generate_character (for C# code) and build_pck (for packaging).
search_game_assetsSearch game asset paths by substring. Fast in-memory search across all files in the game PCK. Use to find specific assets by name — e.g. search 'Bash' to find all assets related to the Bash card, or 'character_select' to find character selection scenes.
search_game_codeFull-text regex search through all indexed game source code (~23MB, 1300+ files). The source index is pre-built and ready — do NOT call decompile_game before using this. Use to find how specific APIs are used, locate method calls, find patterns, etc.
search_hooks_by_signatureSearch game hooks by parameter type. Answer questions like 'What hooks give me access to CombatState?' or 'Which hooks receive a CardModel?'
stop_watchingStop a file watcher for auto-rebuild. If project_dir is omitted, stops all active watchers.
suggest_hooksGiven a modding intent in natural language (e.g. 'make potions heal more', 'add extra card draw', 'prevent death'), recommend which game hooks to override. Returns hook names, signatures, ready-to-paste override stubs, and example classes. This is the recommended starting point for any mod that interacts with game events.
suggest_patchesGiven a desired behavior change in natural language (e.g. 'make all attacks cost 1 less energy', 'double poison damage', 'add a card to the reward screen'), analyze decompiled game source and suggest which methods to Harmony patch. Returns target class, method name, patch type (Prefix/Postfix/Transpiler), rationale, and a code sketch. Works best for specific, concrete behavior changes. For broad changes, break them into specific sub-behaviors first.
uninstall_modRemove a mod from the game's mods directory.
validate_modValidate a mod project for common issues before building. Checks performed: (1) mod_manifest.json exists and is valid JSON, (2) .csproj has correct target framework and references, (3) at least one class has [ModInitializer] attribute, (4) localization files exist for all generated entities, (5) Harmony patches target valid methods with correct signatures, (6) async methods properly await and don't fire-and-forget. Returns a list of warnings and errors with file paths and line numbers.
watch_projectStart watching a mod project for file changes and auto-rebuild+deploy on save. Monitors code plus common asset/resource file types via single tree walk. Debounces 1.5s. When auto_reload is enabled (default), automatically hot-reloads the mod in-game after each successful build — patches, entity models, localization, and PCK assets are all updated without restarting. Tier is auto-detected from changed file types (PCK is only rebuilt when resource files actually change, not for CS-only edits). Pool registrations are auto-discovered via assembly reflection when not provided explicitly. Non-resource JSON (mod_manifest.json, mod_config.json) is ignored. See get_modding_guide topic 'hot_reload' for tier details and limitations.
watcher_statusGet the status of file watcher(s). If project_dir is omitted, returns status of all active watchers.

Security checks

Static checks derived from the repository a month ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 845 words.
  • !License declaredNo license file. Legally you have no right to use it in a product.
  • ✓Tests presentA test suite exists in the repository.
  • !Dependencies pinnedNo lockfile. Installs can pull different code over time.
  • ✓No dynamic code executionScanned 51 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

Releases

v3.7.0v3.7.0: Prevent redundant decompilation by agents · 25 Mar 2026What's New Fixes a critical agent workflow issue where LLM agents would repeatedly run ILSpy decompilation instead of using the pre-built Roslyn index for code lookups, wasting significant time on each query. Problem Agents were calling…
v3.6.0v3.6.0: Bridge navigation hardening · 24 Mar 2026What's New Major hardening of the bridge mod's ability to navigate all game screens programmatically — no mouse simulation, all interactions use code-based `ForceClick()` signals. Includes patterns ported from STS2MCP. Overlay-First Screen…
v3.5.0v3.5.0: Cross-platform support for macOS and Linux · 23 Mar 2026What's New Full cross-platform support for macOS and Linux installations. Setup now auto-detects the game, downloads the correct GDRE Tools binary, and resolves all paths on all three platforms. macOS Game discovery: Traverses the `.app`…
v3.4.0v3.4.0 — Cross-Platform Support, Config File, Cleaner Codebase · 23 Mar 2026What's New Cross-Platform Game Detection The server now auto-detects Slay the Spire 2 on Windows, Linux, and macOS: Windows — Registry, Steam `libraryfolders.vdf`, common library paths across drives C–J Linux — `~/.steam/steam`,…
v3.3.0v3.3.0 — Automated Setup, 151 Tools, Claude Desktop Support · 22 Mar 2026What's New Automated Setup Wizard Run `python -m sts2mcp.setup` after install and everything configures itself: Auto-finds your game by parsing Steam's `libraryfolders.vdf` and Windows registry — no manual path configuration needed…

README

The repository's README runs to about 845 words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Sts2 Modding MCP

How do I install Sts2 Modding MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Sts2 Modding MCP safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 3 of the 5 static checks Conduid ran on the repository; it does not pass License declared and Dependencies pinned. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Sts2 Modding MCP still maintained?

The last commit was 8 months ago and 1 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Sts2 Modding MCP provide?

Conduid read 174 tools from the source: analyze_build_output, analyze_method_callers, bridge_act_and_wait, bridge_auto_proceed, bridge_autoslay_configure, bridge_autoslay_start, bridge_autoslay_status, bridge_autoslay_stop and 166 more.