playsts2

playsts2 is a command for Claude Code from Gennadiyev/STS2MCP. It costs 0 tokens per session (381 once invoked), scanned A, original, MIT.

A command for playing Slay the Spire 2, a deck-building strategy game, through connected game tools. It reads the game state and chooses actions during the run.

In plain words
What is it for?
Evaluating routes, sequencing cards, choosing rewards and event options, managing potions and health, and pursuing a winning game run.
Why use it?
It provides a structured decision process for maps, card fights, events, rewards, shops, and rest sites instead of relying on ad-hoc play.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/gennadiyev/sts2mcp/playsts2
Clone the repo
git clone --depth 1 https://github.com/Gennadiyev/STS2MCP

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for playsts2

README.md
[![agentmods](https://agentmods.dev/badge/commands/gennadiyev/sts2mcp/playsts2.svg)](https://agentmods.dev/commands/gennadiyev/sts2mcp/playsts2)
Your own site
<a href="https://agentmods.dev/commands/gennadiyev/sts2mcp/playsts2"><img src="https://agentmods.dev/badge/commands/gennadiyev/sts2mcp/playsts2.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 381 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00381
Opus 5 $0.00000 $0.00191
Sonnet 5 $0.00000 $0.00076
Haiku 4.5 $0.00000 $0.00038

Measured 6d ago against content hash 0c8494fc3f1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

playsts2 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/playsts2.md · 25 lines

What it actually says

Play Slay the Spire 2 using the MCP tools (mcp__sts2__*). Your goal is to play as well as possible and win the run.

Setup

  1. Read AGENTS.md for general strategy and MCP calling tips.
  2. Read GUIDE.md for hero-specific strategies. If the current hero isn't covered, adapt and add notes after boss fights.
  3. Call get_game_state(format="markdown") to see the current state and begin playing.

Gameplay Loop

  • Map: Evaluate paths. Prefer elites when healthy, rest sites before bosses.
  • Combat: Read intents. Sequence cards optimally (setup → skills → attacks). Play from right-to-left indices when possible to avoid index shift bugs.
  • Events: Evaluate options based on current HP, gold, and deck needs.
  • Rewards: Skip cards that don't synergize. Claim gold and relics. Potions if slots open.
  • Rest Sites: Heal if below 80% HP before boss. Otherwise upgrade or train (Girya).
  • Shop: Buy if 100+ gold and something useful is available.

Important Rules

  • Always re-check get_game_state after playing cards — indices shift.
  • Use format: "json" in combat for precise data, format: "markdown" for overview screens.
  • Use potions BEFORE playing cards when they grant buffs (e.g. Flex Potion).
  • Focus fire on bosses — minions flee when the leader dies.

Learning & Updating

  • After each boss is defeated, review what worked and what didn't. Update GUIDE.md with new insights — hero-specific tips, boss strategies, card evaluations, or sequencing discoveries.
  • If playing a hero not yet in GUIDE.md, create a new section for them.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 25 lines · 0 tokens per session scan A 0c8494fc3f1d

Subscribe to this mod's changes

playsts2 is a command published in the GitHub repository Gennadiyev/STS2MCP (482 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 381 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.