/ Verzeichnis / Playground / STS2MCP
● Community Gennadiyev ⚡ Sofort

STS2MCP

von Gennadiyev · Gennadiyev/STS2MCP

Let AI play Slay the Spire 2 — a mod and MCP server exposing real-time game state for autonomous and co-op agentic runs.

STS2MCP is a C# mod for Slay the Spire 2 that exposes game state via a REST API (localhost:15526) and an optional MCP server for AI agent integration. It enables Claude and other AI assistants to read game state, make decisions, and execute actions for autonomous or co-op gameplay. Supports Windows, Linux, and macOS.

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

sts2mcp-2.replay ▶ bereit
0/0

Installieren

Wählen Sie Ihren Client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "sts2mcp-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/Gennadiyev/STS2MCP"
      ]
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "sts2mcp-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/Gennadiyev/STS2MCP"
      ]
    }
  }
}

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "sts2mcp-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/Gennadiyev/STS2MCP"
      ]
    }
  }
}

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "sts2mcp-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/Gennadiyev/STS2MCP"
      ]
    }
  }
}

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "sts2mcp-2",
      "command": "TODO",
      "args": [
        "See README: https://github.com/Gennadiyev/STS2MCP"
      ]
    }
  ]
}

Continue nutzt ein Array von Serverobjekten statt einer Map.

~/.config/zed/settings.json
{
  "context_servers": {
    "sts2mcp-2": {
      "command": {
        "path": "TODO",
        "args": [
          "See README: https://github.com/Gennadiyev/STS2MCP"
        ]
      }
    }
  }
}

In context_servers hinzufügen. Zed lädt beim Speichern neu.

claude mcp add sts2mcp-2 -- TODO 'See README: https://github.com/Gennadiyev/STS2MCP'

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: STS2MCP

How to have Claude play a run of Slay the Spire 2

👤 STS2 players curious about AI strategy ⏱ ~60 min beginner

Wann einsetzen: You want to see how an AI approaches deck building and combat decisions.

Voraussetzungen
  • STS2 with the mod installed — Download STS2_MCP.dll and .json to <game>/mods/, enable mods in settings
  • MCP server running — Server auto-starts on localhost:15526 when mod loads
Ablauf
  1. Start a run
    Start a new Slay the Spire 2 run. Check the game state — what character are we playing and what's our starting deck?✓ Kopiert
    → Character info, starting deck, and current map
  2. Make strategic decisions
    We're at a card reward screen. Analyze the options based on our current deck and suggest the best pick.✓ Kopiert
    → Analysis of each option with recommendation
  3. Handle combat
    We're in combat. Show me our hand, the enemies, and their intents. What's the optimal play order?✓ Kopiert
    → Combat analysis with recommended card play sequence

Ergebnis: A complete STS2 run with AI making strategic decisions.

Fallstricke
  • AI makes suboptimal decisions without full game knowledge — Provide context about game mechanics and synergies the AI may not know

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

sts2mcp-2 + filesystem

Log game states and decisions for analysis and strategy improvement

Log every decision point and our choice to ~/sts2/run-log.json for later analysis.✓ Kopiert

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
get_game_state none Get the current game state (map, deck, health, combat, etc.) 0
execute_action action: str, params?: obj Execute a game action (play card, end turn, make a choice) 0

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
N/A — fully local
Tokens pro Aufruf
200–1000 tokens per game state query
Kosten in €
Free mod — requires Slay the Spire 2 ($24.99)
Tipp
Query game state only at decision points, not every frame.

Sicherheit

Rechte, Secrets, Reichweite

Credential-Speicherung: N/A
Datenabfluss: Local only — REST API on localhost:15526

Fehlerbehebung

Häufige Fehler und Lösungen

Mod not loading

Ensure STS2_MCP.dll and .json are in the <game>/mods/ directory and mods are enabled in game settings.

Prüfen: Check the game's mod manager for STS2MCP
Can't connect to API

The server starts on localhost:15526 when the mod loads. Ensure the game is running with the mod enabled.

Prüfen: curl http://localhost:15526/state
Game state returns empty during loading screens

Wait until the game finishes loading. State is only available during active gameplay.

Prüfen: Try again after the map or combat screen is visible

Alternativen

STS2MCP vs. andere

AlternativeWann stattdessenKompromiss
Minecraft MCP ServerYou want AI-controlled gameplay in Minecraft rather than a card gameDifferent genre — open world building vs strategic card game

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen