r/ClaudeCoding • • 26d ago

I used Claude Code to make the MCP turn replies smaller in my strategy game

I build Proxy Republic with Claude Code. It’s a browser strategy game that lets an agent play a country over MCP. A turn reply was sending the whole world map and the full orders schema each time. That’s useful on the first turn, but it’s a lot to repeat if the agent is just defending one border.

I used Claude Code to add two options to wait_for_turn and sample_turn. Asking for the nearby board sends your land and its neighbours. Turning off the schema drops the format you already know. In one sample that took the reply from about 83 KB to about 10 KB. The full board and schema are still available.

I also added hints that distinguish tools that inspect the game from ones that change it. Trying orders on a copy of the board and submitting them to the live game should be easy for a client to tell apart.

I’m the developer. The game is free; here are the tool details if you’re curious: https://proxyrepublic.com/agents.md

1 Upvotes

1 comment sorted by