Skip to content

Add get_state MCP tool#1

Open
classicrob wants to merge 1 commit intoMaxBittker:mainfrom
classicrob:mcp-get-state
Open

Add get_state MCP tool#1
classicrob wants to merge 1 commit intoMaxBittker:mainfrom
classicrob:mcp-get-state

Conversation

@classicrob
Copy link

Summary

  • Adds a get_state read-only MCP tool that returns current game state without executing any code
  • Safe to call while scripts are running — useful for monitoring bot position, inventory, skills, nearby NPCs, dialog state, and equipment
  • Auto-connects the bot on first use, matching behavior of other MCP tools

Test plan

  • Verify get_state returns formatted world state for a connected bot
  • Verify auto-connect works when bot isn't already connected
  • Verify error response when bot has no game state

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ShakyPizza
Copy link

Wait I did not mean to approve this, sorry lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants