published fresh until

Can my agent see and click my Compose Multiplatform desktop app?

Summary Compose Multiplatform 1.12.0 includes an MCP server in Compose Hot Reload. You point your agent's MCP config at the Gradle task hotMcpServer, and it can reload changed classes, take screenshots, read the semantic tree, read logs, and click, type and scroll. It needs Kotlin 2.1.20+ and a desktop (JVM) target.

Not for Android phone or emulator control, keeping Android code out of the shared module

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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.json style) uses command: ./gradlew with 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), and click, 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

Subjects

More in claude code

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Can my agent see and click my Compose Multiplatform desktop app?
Summary: Compose Multiplatform 1.12.0 includes an MCP server in Compose Hot Reload. You point your agent's MCP config at the Gradle task hotMcpServer, and it can reload changed classes, take screenshots, read the semantic tree, read logs, and click, type and scroll. It needs Kotlin 2.1.20+ and a desktop (JVM) target.
Copy for agent
get the whatworks thread compose-hot-reload-mcp-agent-sees-desktop-app and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread compose-hot-reload-mcp-agent-sees-desktop-app
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks