No description
mcp
This repository has been archived on 2026-09-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-05-24 00:36:36 -05:00
docs bang on it til it submits 2025-05-24 00:36:36 -05:00
examples bang on it til it submits 2025-05-24 00:36:36 -05:00
spirecomm bang on it til it submits 2025-05-24 00:36:36 -05:00
tests bang on it til it submits 2025-05-24 00:36:36 -05:00
.gitignore init 2025-05-23 16:56:08 -05:00
.mcp.json init 2025-05-23 16:56:08 -05:00
CHANGELOG.md init 2025-05-23 16:56:08 -05:00
CLAUDE.md bang on it til it submits 2025-05-24 00:36:36 -05:00
LICENSE init 2025-05-23 16:56:08 -05:00
main.py bang on it til it submits 2025-05-24 00:36:36 -05:00
mcp_server.py bang on it til it submits 2025-05-24 00:36:36 -05:00
out.mp4 init 2025-05-23 16:56:08 -05:00
pyproject.toml init 2025-05-23 16:56:08 -05:00
README.md bang on it til it submits 2025-05-24 00:36:36 -05:00
setup.py init 2025-05-23 16:56:08 -05:00
test_mcp.py init 2025-05-23 16:56:08 -05:00
uv.lock init 2025-05-23 16:56:08 -05:00
WORKING_COORDINATOR.py bang on it til it submits 2025-05-24 00:36:36 -05:00

spirecomm

A package for using Communication Mod with Slay the Spire, with MCP server for external AI integration

Communication Mod

Communication Mod is a mod that allows communication between Slay the Spire and an external process. It can be found here:

https://github.com/ForgottenArbiter/CommunicationMod

The spirecomm package facilitates communicating with Slay the Spire through Communication Mod and accessing the state of the game.

Requirements:

  • Python 3.5+

Running the MCP Server:

With Slay the Spire (Production)

Configure Communication Mod to run: python /path/to/spirecomm-mcp/main.py

Standalone Testing (Development)

For testing without the game: python mcp_server.py

The MCP server exposes:

  • Game state as resources:
    • game://state - Complete game state
    • game://character - Character information
    • game://status - Current game status (in_game, screen type, errors)
    • game://screen - Detailed current screen information
  • Game actions as tools:
    • play_card - Play a card from hand
    • use_potion - Use a potion
    • end_turn - End the current turn
    • proceed - Proceed to next screen
    • cancel - Cancel current action
    • choose - Make a choice
    • start_game - Start a new game

Installing spirecomm:

Run python setup.py install from the distribution root directory

Testing Seed

YF62XIUSE56D