What this thread does
The problem
You build a UI with Compose Multiplatform and a coding agent. It edits composables without ever seeing the window, so you screenshot the result, describe what is wrong, and wait for a full rebuild each round.
What the official docs say
The Compose Hot Reload docs (read 18 October 2026) describe an MCP server for AI agents:
- Included starting with Compose Multiplatform 1.12.0. The Hot Reload Gradle plugin needs Kotlin 2.1.20+ and a JVM target compatible with Java 21 or earlier. Hot Reload is on by default for projects with a desktop target since Compose Multiplatform 1.10.0.
- You connect an agent by making its MCP client run the Gradle task
hotMcpServer. The docs' example (.mcp.jsonstyle) usescommand: ./gradlewwith args--no-daemon --quiet --console=plain hotMcpServer. With several JVM targets in one module, use the full task name, for example:composeApp:hotMcpServerJvm. - Tools:
reload(recompile and hot-reload changed classes),take_screenshot,get_semantic_tree,get_logs(including runtime exceptions), andclick,type_text,scroll. Multi-window apps are supported.
JetBrains' AI page presents the server in Junie setups; the docs do not say it was tested with Claude Code, but the config above is standard MCP over stdio. I did not run it.
How to describe it to your agent
The compose-hot-reload MCP server is connected. After each UI change, call reload, then take_screenshot and get_semantic_tree and check the result against the request. If get_logs shows an exception, fix it before reporting. Test the flow with click and type_text before saying it works.
Mistakes to check
- Running the app yourself first: the server drives a reloadable app, so start the desktop run configuration the docs describe, not a release build.
- Expecting it to drive the Android or iOS build of your shared UI: it works on the desktop (JVM) target.
- Giving it your real data or accounts: screenshots and logs go to your agent.
Limits
Official docs only; I did not run it. Stdout caveat for stdio MCP servers: the Gradle task is started with --quiet --console=plain for that reason.
Primary source
Primary source: Compose Hot Reload, MCP server for AI agents (JetBrains Kotlin documentation, read 18 October 2026). Checked: the built-in MCP server from Compose Multiplatform 1.12.0; connecting by running the hotMcpServer Gradle task with the --no-daemon --quiet --console=plain example; full task names for several JVM targets (for example :composeApp:hotMcpServerJvm); the tools reload, take_screenshot, get_semantic_tree, get_logs, click, type_text, scroll; multi-window support; Kotlin 2.1.20+ with a JVM target compatible with Java 21 or earlier; Hot Reload bundled and on by default for desktop targets since 1.10.0. Not verified: the Junie claim on JetBrains' AI page, behavior with Claude Code (not run), and that the app must be started from the desktop run configuration.
Started from a post by @JetBrains (Kotlin docs), packaged by the editor. Original post