1. Conduid
  2. Gaming
  3. STS2 Agent
MCP server · Gaming

STS2 Agent

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

66Good

Scored 1 hours ago · breakdown

About STS2 Agent

STS2 Agent is an MCP server published by CharTyr in the Gaming category: 杀戮尖塔2的MOD,让AI直接操作游戏游玩。将杀戮尖塔2的游戏状态与操作暴露为本地 HTTP API 包装成 MCP Server,供支持 MCP 的AI客户端直接调用。提供游戏内mod自身的UI. Conduid read 27 tools from its source: act, append_combat_knowledge, append_event_knowledge, complete_combat_handoff, complete_event_handoff, create_combat_handoff and 21 more. No package is published for it, so it installs from a source checkout.

The repository has 372 stars and 58 forks, and its last commit was on 26 Nov 2026. The latest release is v0.20.0 (26 Nov 2026): Steam 正式版 v0.111.1 与 public beta v0.114.0 都可以使用本版。 新增与优化 战斗数学与选路升级:CombatMathPolicy 新增星能(摄政王)、箭矢(愚者)与超额能耗转星能的资源约束,并将冰霜充能球回合末被动格挡计入 combat.threat(新增 end_of_turn_orb_block… It follows v0.19.6 (26 Nov 2026), and the 5 most recent releases go back to v0.19.3 (19 Nov 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include game, mod, slay-the-spire and slay-the-spire-2.

Install

From source
git clone https://github.com/CharTyr/STS2-Agent

Tools (27)

act
ParameterTypeDescription
action *stringAction name from the latest state's available_actions; never guessed from the screen name.
card_cidintegerStable combat.hand[].cid; wins over card_index.
card_indexintegerHand card index for play_card.
modestringopen_character_select run mode: standard|blitz|dread|custom.
option_indexintegerOption index for map, reward, shop, event, rest, selection, and multiplayer-lobby actions. `rest.options` carry `requires_target` / `target_index_space` / `valid_target_indices` themselves.
raw_statebooleanReturn the full raw /state payload instead of the compact agent_view. Default false; thousands of tokens, so only for a field the compact view lacks.
reasonstringOne-sentence rationale; recorded in the decision log and shown to the player as this decision's reason.
target_indexintegerTarget index into the card/potion's `targets` list when `target` is non-null. `enemy` = `combat.enemies[]`, `player` = the local player; full state spells it `target_index_space` / `valid_target_indices`.
thenarrayRemaining combat steps (at most 9); play_card uses card_cid. Stops on changes or non-completed results; never retries.
toolanyCrystal Sphere tool. Pass with x/y on crystal_clear_cell to select and clear atomically, or alone on crystal_set_tool.
xintegerCrystal Sphere grid x-coordinate for crystal_clear_cell.
yintegerCrystal Sphere grid y-coordinate for crystal_clear_cell.
append_combat_knowledgeAppend a note to the active combat knowledge file.
ParameterTypeDescription
note *string
sectionstring
append_event_knowledgeAppend a note to the active event knowledge file.
ParameterTypeDescription
note *string
option_indexinteger
sectionstring
complete_combat_handoffPersist a combat-agent summary and optional enemy-pattern notes, then return a planner-facing brief.
ParameterTypeDescription
combat_key *string
pattern_notestring
planner_messagestring
summary *string
tactical_notestring
trait_notestring
complete_event_handoffPersist an event outcome summary and optional event notes, then return a planner-facing brief.
ParameterTypeDescription
event_id *string
option_indexinteger
outcome_notestring
planning_notestring
summary *string
create_combat_handoffBuild a clean combat-agent packet with linked combat knowledge and planner guidance.
ParameterTypeDescription
combat_objectivestring
planner_messagestring
create_planner_handoffBuild a clean planner-agent packet for route, reward, event, and shop decisions.
ParameterTypeDescription
planning_focusstring
previous_combat_summarystring
decideRead everything one decision needs in a single call.
diff_stateReport the paths that differ between two `/state` payloads.
ParameterTypeDescription
after *object
before *object
limitinteger
get_available_actionsList currently executable actions with `requires_index` and `requires_target` hints.
get_combat_contextBuild a combat-focused snapshot and link it to the canonical combat knowledge entry.
ParameterTypeDescription
include_knowledgeboolean
planner_notestring
get_decision_logRead recent accepted decisions with the rationale each one carried, oldest first.
ParameterTypeDescription
limitinteger
get_game_data_itemLook up one entity by id when a decision-critical mechanic is missing from known facts.
ParameterTypeDescription
collection *stringcards, relics, monsters, potions, events, powers, or characters.
item_id *stringEntity id, for example ABRASIVE.
get_game_data_itemsLook up several entities by id when missing mechanics need comparison.
ParameterTypeDescription
collection *stringcards, relics, monsters, potions, events, powers, or characters.
item_ids *stringComma-separated entity ids.
get_game_stateRead compact game state (`compact_agent_view` false on raw fallback; `get_raw_game_state` reads raw `/state`).
ParameterTypeDescription
full_statebooleanRe-send unchanged deck/relic/ascension/glossary/note blocks.
get_planner_briefingForward /strategy: live strategy, current run and same-run Jev trend.
get_planner_contextBuild a planner-focused snapshot with route branches and linked event knowledge.
ParameterTypeDescription
planner_notestring
get_raw_game_stateRead the full raw `/state` snapshot for debugging or schema inspection.
get_relevant_game_dataLook up missing decision-critical metadata for the current screen.
ParameterTypeDescription
collection *stringcards, relics, monsters, potions, events, powers, or characters.
item_idsstringComma-separated ids. Omit to use the ids the current screen is about: the hand in a fight, the shop stock, the cards a reward or selection screen offers, the relics a chest offers.
get_run_summarySummarise the current run in one call: character, floor, act, boss, HP, gold, and the
get_scene_guidanceReturn the strategy and the playbook for the screen the game is on right now.
health_checkCheck whether the STS2 AI Agent Mod is loaded and reachable.
inject_event_churnPublish synthetic /events/stream events to exercise the slow-subscriber contract.
ParameterTypeDescription
option_indexinteger
run_console_commandRun a game dev-console command for local validation or debugging.
ParameterTypeDescription
command *string
update_play_strategyUpdate the dual-layer strategy; omitted fields keep. option_hints: by action kind, no index.
ParameterTypeDescription
goalstring
instructionsstring
option_hintsobject
posturestring
wait_for_eventWait for one matching game event from `/events/stream`; `matched=false` on timeout.
ParameterTypeDescription
event_namesstringComma-separated event names; empty accepts any event.
timeout_secondsnumberMaximum wait in seconds.
wait_until_actionableWait for a new actionable phase, then return the fresh compact state.
ParameterTypeDescription
raw_statebooleanRaw /state payload instead of the compact agent_view.
timeout_secondsnumber

Security checks

Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 3.6K words.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json and mcp_server/uv.lock.
  • ✓No dynamic code executionScanned 455 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

What the source scan found

Transport
stdiomcp_server/src/sts2_mcp/server.py:689
Starts other programs
8 calls.codex/hooks/session-start.py:185, .codex/hooks/session-start.py:302, .cursor/hooks/session-start.py:192
Outbound network calls
35 callsmcp_server/src/sts2_mcp/client.py:219, mcp_server/src/sts2_mcp/client.py:452, mcp_server/src/sts2_mcp/client.py:557
Writes or deletes files
134 calls.cursor/hooks/inject-shell-session-context.py:197, .cursor/hooks/inject-shell-session-context.py:246, .cursor/hooks/session-start.py:303
Lockfile
package-lock.json and mcp_server/uv.lock

Pattern matches on the source text of 455 files: places to read, not proof of what the code does at run time.

Releases

v0.20.0v0.20.0 · 26 Nov 2026Steam 正式版 v0.111.1 与 public beta v0.114.0 都可以使用本版。 新增与优化 战斗数学与选路升级:`CombatMathPolicy` 新增星能(摄政王)、箭矢(愚者)与超额能耗转星能的资源约束,并将冰霜充能球回合末被动格挡计入 `combat.threat`(新增 `end_of_turn_orb_block` / `end_of_turn_orb_damage`);适配 `v0.114.0`…
v0.19.6v0.19.6 · 26 Nov 2026Steam 正式版 v0.111.1 与 public beta v0.114.0 都可以使用本版。 修复 修复游戏更新后 HTTP 和 MCP 读取主菜单及战斗状态失败的问题(#257)。 恢复卡牌升级预览,并保留公测版愚者的箭矢和旋律出牌计数。 验证 使用同一份发布 DLL 在两个版本的隔离实例中验证主菜单、战斗状态、原生 MCP、升级预览和实际出牌。公测版额外核对了愚者的三标签牌只计一次旋律出牌。
v0.19.5v0.19.5 · 21 Nov 2026游戏需为 v0.113.0 或以上。Steam v0.111.1 主分支的玩家可切换到 public-beta。 Fixed 愚者射出最后一支箭后,原始和紧凑手牌快照会立即把剩余射击牌标为不可用。显式出牌仍可按游戏原生规则空射。 修复射击牌重放在只剩一支箭时高估伤害的问题。多支箭的重放省略无法确定的总伤。 单人标准局中,确认单颗闪电球能在厄运前击杀唯一敌人时,状态会撤掉这条厄运致死提示。 Dread 轮换选角成功后会确认动作完成,状态同时报告已选轮换选项和它实际选到的角色。…
v0.19.4v0.19.4 · 20 Nov 2026v0.19.4 修复 Windows 拒绝 HTTP.sys 请求队列(错误 6「句柄无效」)时,整个 Mod 不加载的问题。 Fixed 遇到错误 6 时,同一端口的 REST、原生 MCP 与 SSE 改由回环 socket 传输提供;路由、Host/Origin 校验、队友令牌与端口策略仍是同一份实现。 两种传输都起不来时,主窗口保留悬浮窗与单人功能;MCP、复制地址、邀请与继续联机存档给出原因,不显示假地址、不启动子进程。 实机验收(游戏…
v0.19.3v0.19.3 · 19 Nov 2026v0.19.3 修复 v0.113.1 上的本地双开建房,并让「外部 Agent」队友真正可以交给 DSH 等外部 MCP 客户端驱动。 Fixed 游戏 v0.113.1 把 FastHost(GameMode) 改成 FastHost(GameMode, bool isCustom),旧代码对多参数签名传空参数,导致每次本机双开都死在 Parameter count mismatch,队友还没来得及进房。现在按完整参数类型精确选签名:(GameMode, bool) 传…

README

The repository's README runs to about 3.6K words, fetched 2 days ago. The original in the repository is authoritative.

Read full README
Questions

About STS2 Agent

How do I install STS2 Agent?

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

Is STS2 Agent safe to use with an AI agent?

Its trust score is 66 out of 100 (good). It passes all 5 static checks Conduid ran on the repository. Conduid's scan of 455 source files found that it serves MCP over stdio, starts other programs (8 calls), makes outbound network calls (35 calls) and writes or deletes files (134 calls). Its dependencies are pinned by package-lock.json and mcp_server/uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is STS2 Agent still maintained?

Yes — the latest release is v0.20.0 (26 Nov 2026), and the last commit was 5 days ago. The repository has 372 stars.

What tools does STS2 Agent provide?

Conduid read 27 tools from the source: act, append_combat_knowledge, append_event_knowledge, complete_combat_handoff, complete_event_handoff, create_combat_handoff, create_planner_handoff, decide and 19 more. 20 of them publish their parameters, listed under Tools above.