Slay the Spire 2 Agent

v1.0.0Coding Agentsstable

杀戮尖塔2的MOD,将杀戮尖塔2的游戏状态与操作暴露为本地 HTTP API 包装成 MCP Server,供支持 MCP 的AI客户端直接调用

agentgamemcpmodslay-the-spire
Share:
240
Stars
0
Downloads
0
Weekly
0/5

What is Slay the Spire 2 Agent?

Slay the Spire 2 Agent is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 杀戮尖塔2的mod,将杀戮尖塔2的游戏状态与操作暴露为本地 http api 包装成 mcp server,供支持 mcp 的ai客户端直接调用

杀戮尖塔2的MOD,将杀戮尖塔2的游戏状态与操作暴露为本地 HTTP API 包装成 MCP Server,供支持 MCP 的AI客户端直接调用

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • 杀戮尖塔2的MOD,将杀戮尖塔2的游戏状态与操作暴露为本地 HTTP API 包装成 MCP Server,供支持 MC

Use Cases

Play Slay the Spire 2 with AI agent control.
CharTyr

Maintainer

LicenseNOASSERTION
Languagec#
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx sts2-agent

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Slay the Spire 2 Agent

The Slay the Spire 2 Agent MCP server is a game mod that exposes the full state and actions of Slay the Spire 2 as a local HTTP API, then wraps that API as an MCP server so AI clients can observe and control the game directly. It supports reading live game state, listing legal actions, executing combat decisions, navigating the map, managing rewards and shops, and serving game metadata for cards, relics, monsters, and potions. AI researchers and hobbyists use it to build and test game-playing agents against a modern roguelike without manual instrumentation.

Prerequisites

  • Slay the Spire 2 installed via Steam (Windows, macOS, or Linux)
  • Python 3.11+ and the uv package manager installed
  • The three mod files: STS2AIAgent.dll, STS2AIAgent.pck, and mod_id.json from the GitHub releases page
  • An MCP-compatible client such as Claude Desktop or Claude Code
1

Download the mod files

Go to the GitHub releases page at github.com/CharTyr/STS2-Agent/releases and download STS2AIAgent.dll, STS2AIAgent.pck, and mod_id.json.

2

Install the mod into the game directory

Copy the three downloaded files into the mods/ subdirectory of your Slay the Spire 2 installation. The default Steam path on Windows is shown below.

C:\Program Files (x86)\Steam\steamapps\common\Slay the Spire 2\mods\
3

Install Python dependencies with uv

Clone the repository and use uv to install the Python MCP server dependencies.

git clone https://github.com/CharTyr/STS2-Agent
cd STS2-Agent
uv sync
4

Launch Slay the Spire 2 with the mod enabled

Start the game through Steam and enable the STS2AIAgent mod from the mod selection screen. Once in-game, the mod starts a local HTTP API at http://127.0.0.1:8080. Verify it is running.

curl http://127.0.0.1:8080/health
5

Start the MCP server

Run the stdio-mode startup script. On Windows use the PowerShell script; on macOS/Linux use the shell script.

# macOS/Linux
./scripts/start-mcp-stdio.sh

# Windows (PowerShell)
powershell -ExecutionPolicy Bypass -File .\scripts\start-mcp-stdio.ps1
6

Add the server to your MCP client config

Configure your MCP client to launch the stdio server. Point the command at the startup script for your platform.

Slay the Spire 2 Agent Examples

Client configuration

Claude Desktop config to connect to the STS2 Agent MCP server in stdio mode on macOS/Linux. Adjust the path to match your clone location.

{
  "mcpServers": {
    "sts2-agent": {
      "command": "bash",
      "args": ["/path/to/STS2-Agent/scripts/start-mcp-stdio.sh"]
    }
  }
}

Prompts to try

Prompts to use with the STS2 Agent once the game is running and the MCP server is connected.

- "Read the current game state and tell me what cards are in my hand."
- "List all legal actions I can take in this combat."
- "Play the Strike card targeting the first enemy."
- "What relics do I currently have and what do they do?"
- "Navigate the map and choose the path with the most Elite fights."
- "Resolve the current reward screen by picking the best card for my deck."

Troubleshooting Slay the Spire 2 Agent

curl http://127.0.0.1:8080/health returns connection refused

The game must be running with the mod enabled for the HTTP API to be active. Launch Slay the Spire 2 via Steam, confirm the STS2AIAgent mod is enabled in the mod list, and navigate into a run before checking the health endpoint.

uv sync fails or uv is not found

Install uv with: 'curl -LsSf https://astral.sh/uv/install.sh | sh' on macOS/Linux, or follow instructions at docs.astral.sh/uv. Then re-run 'uv sync' in the cloned repository directory.

The MCP server connects but actions return errors about invalid game state

The server can only execute actions valid for the current game phase. Ensure you are in an active run and in the correct phase (combat, map, reward, etc.) for the action you are attempting. Use the list-legal-actions tool first to confirm available moves.

Frequently Asked Questions about Slay the Spire 2 Agent

What is Slay the Spire 2 Agent?

Slay the Spire 2 Agent is a Model Context Protocol (MCP) server that 杀戮尖塔2的mod,将杀戮尖塔2的游戏状态与操作暴露为本地 http api 包装成 mcp server,供支持 mcp 的ai客户端直接调用 It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Slay the Spire 2 Agent?

Follow the installation instructions on the Slay the Spire 2 Agent GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Slay the Spire 2 Agent?

Slay the Spire 2 Agent works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Slay the Spire 2 Agent free to use?

Yes, Slay the Spire 2 Agent is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "sts2-agent": { "command": "npx", "args": ["-y", "sts2-agent"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Slay the Spire 2 Agent?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides