No description
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| docs | ||
| examples | ||
| spirecomm | ||
| tests | ||
| .gitignore | ||
| .mcp.json | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| LICENSE | ||
| main.py | ||
| mcp_server.py | ||
| out.mp4 | ||
| pyproject.toml | ||
| README.md | ||
| setup.py | ||
| test_mcp.py | ||
| uv.lock | ||
| WORKING_COORDINATOR.py | ||
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 stategame://character- Character informationgame://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 handuse_potion- Use a potionend_turn- End the current turnproceed- Proceed to next screencancel- Cancel current actionchoose- Make a choicestart_game- Start a new game
Installing spirecomm:
Run python setup.py install from the distribution root directory
Testing Seed
YF62XIUSE56D