iterating-with-ai-and-mcp
Iterating with AI and MCP: let the agent edit, reload, screenshot, and iterate
Compose HotSwan ships an embedded HTTP MCP server inside the IntelliJ plugin. Any MCP-compatible AI
client (Claude Code, Cursor, any tool that speaks Model Context Protocol) can call its tools to
drive the iteration loop. The agent edits a Kotlin file, calls hotswan_reload, captures a
screenshot of the running device, evaluates the result against the design intent, and decides the
next change. Cycle time is comparable to the human loop, a few seconds per iteration, so the agent
can converge on a UI tweak without a human steering each step.
This skill teaches the canonical agent loop, the seven MCP tools (verbatim names), and the safety habits (status check first, snapshot wrapping for rollback, fallback to full install for schema changes) that keep the loop reliable.