magicciv/tooling
Natalie 6310433cc5 fix(@projects/@magic-civilization): 🐛 render MCP client — connect-first + longer boot grace (p2-86)
The first in-session magic_civ_screenshot timed out: windowed Godot spawned by
the MCP (a throttled background GUI process under Claude Code) inits far slower
than a terminal launch, exceeding the 45s connect timeout — though the driver
DID bind the port (verified 8787 open). Fixes:

- connect-first: if a rendered driver is already listening (e.g. a foreground
  `MC_MCP_RENDER=1 ./run play`), connect to it directly and skip the slow,
  throttled background spawn entirely.
- start timeout 45s -> 150s for the spawn fallback.
- a failed start now clears its cached promise + reaps the child so the next
  tool call respawns instead of replaying the rejection until an MCP restart.

Re-verified end-to-end through the built RenderClient (spawn path): ping {ok},
screenshot -> a real 3420x1923 PNG of the live world map.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 09:11:20 -05:00
..
claude feat(@projects/@magic-civilization): mark sprite pipeline as complete 2026-06-10 04:09:08 -07:00
claude-player-mcp fix(@projects/@magic-civilization): 🐛 render MCP client — connect-first + longer boot grace (p2-86) 2026-06-19 09:11:20 -05:00
rl_self_play feat(@projects/@magic-civilization): add terraforming cascade design and fauna updates 2026-06-09 19:51:48 -07:00