/ ディレクトリ / プレイグラウンド / STS2MCP
● コミュニティ Gennadiyev ⚡ 即起動

STS2MCP

作者 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.

なぜ使うのか

主な機能

ライブデモ

実際の動作

sts2mcp-2.replay ▶ 準備完了
0/0

インストール

クライアントを選択

~/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"
      ]
    }
  }
}

Claude Desktop → Settings → Developer → Edit Config を開く。保存後、アプリを再起動。

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

Cursor は Claude Desktop と同じ mcpServers スキーマを使用。プロジェクト設定はグローバルより優先。

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

Cline サイドバーの MCP Servers アイコンをクリックし、"Edit Configuration" を選択。

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

Claude Desktop と同じ形式。Windsurf を再起動して反映。

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

Continue はマップではなくサーバーオブジェクトの配列を使用。

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

context_servers に追加。保存時に Zed がホットリロード。

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

ワンライナー。claude mcp list で確認、claude mcp remove で削除。

ユースケース

実用的な使い方: STS2MCP

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

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

使うタイミング: You want to see how an AI approaches deck building and combat decisions.

前提条件
  • 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
フロー
  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?✓ コピーしました
    → 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.✓ コピーしました
    → 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?✓ コピーしました
    → Combat analysis with recommended card play sequence

結果: A complete STS2 run with AI making strategic decisions.

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

組み合わせ

他のMCPと組み合わせて10倍の力を

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.✓ コピーしました

ツール

このMCPが提供する機能

ツール入力呼び出すタイミングコスト
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

コストと制限

運用コスト

APIクォータ
N/A — fully local
呼び出しあたりのトークン
200–1000 tokens per game state query
金額
Free mod — requires Slay the Spire 2 ($24.99)
ヒント
Query game state only at decision points, not every frame.

セキュリティ

権限、シークレット、影響範囲

認証情報の保管: N/A
データ送信先: Local only — REST API on localhost:15526

トラブルシューティング

よくあるエラーと対処法

Mod not loading

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

確認: 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.

確認: 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.

確認: Try again after the map or combat screen is visible

代替案

STS2MCP 他との比較

代替案代わりに使う場面トレードオフ
Minecraft MCP ServerYou want AI-controlled gameplay in Minecraft rather than a card gameDifferent genre — open world building vs strategic card game

その他

リソース

📖 GitHub の公式 README を読む

🐙 オープンな issue を見る

🔍 400以上のMCPサーバーとSkillsを見る