# My AI Coding Agent Can Now See Inside Running Apps

Compose Hot Reload's MCP server gives AI agents real-time visual access to application interfaces.

- **Source:** [ProAndroidDev - Medium](https://brifing.si/source/d9553fa9-7b72-4b9b-bc73-c6bf9a40dd5f)
- **Published:** 2026-08-30
- **Topic:** [Software & Engineering](https://brifing.si/c/engineering)
- **Original article:** <https://proandroiddev.com/i-gave-my-ai-agent-eyes-inside-a-real-compose-app-e7d4546417f8?source=rss----c72404660798---4>
- **On Brifing:** https://brifing.si/s/55949273-cf90-4dde-b264-47a5882f9488

## AI Agents Gain Visual Capabilities

The new MCP server in Compose Hot Reload enables AI coding agents to see application interfaces in real time. Traditional methods required developers to run the code and report back any issues. With this system, agents can directly access running applications and identify problems themselves, eliminating the need for manual feedback loops in UI debugging processes.

## How the MCP Server Works

The Model Context Protocol (MCP) server provides direct access to Compose applications for AI agents. It offers 16 different tool calls including take_screenshot, get_semantic_tree, and click functionality. These tools allow agents to analyze visual states, interact with UI elements, and input text. The status and get_ui_error tools provide direct connection status and error reporting, removing guesswork from the debugging process.

## Implementation Challenges

Three significant hurdles emerged during MCP integration. First, projects required Kotlin 2.2.0 upgrades. Second, developers needed to use the specific 'hotRunDesktop' task instead of standard 'run'. Third, some versions faced kotlin-logging stdout issues that could corrupt JSON channels. However, Compose Hot Reload 1.2.0 has resolved these logging problems by directing output to stderr instead.

## Revolutionizing Debug Workflows

The new system allows AI agents to identify issues without developer input. In a demo scenario, an agent used testTags to locate UI components and get_semantic_tree to verify dimensions. When it detected an empty list container, the agent autonomously entered text and clicked buttons to resolve the issue. This represents a paradigm shift from description-based to visual debugging.

## Real-time Interaction Benefits

Traditional methods required screenshot sharing and textual descriptions between agents and developers. The new system enables direct visual access to running applications and immediate intervention. Particularly for UI errors, agents can now see runtime exceptions directly rather than interpreting blank windows, saving significant debugging time and reducing frustration.

## Simplified Integration Process

Compose Hot Reload has been bundled by default since Compose Multiplatform 1.10.0. Integration simply requires adding an mcp.json file to the project root, which defines how to launch the MCP server. Once configured, any MCP-aware AI agent can automatically establish a connection, making the setup process remarkably straightforward for developers.

## Successful Demo Implementation

In a test scenario, an agent successfully resolved an undefined bug autonomously. It first identified UI elements using get_semantic_tree, then used type_text and click tools to add items to a task list. By checking container dimensions, it verified items displayed correctly. This entire process occurred without developer intervention, showcasing the system's potential.

## Industry Impact Potential

This technology could revolutionize mobile and desktop app development workflows. Early estimates suggest it could reduce UI debugging time by up to 60%. For large-scale projects, especially cross-platform development teams, this represents significant efficiency gains. While still experimental, the technology shows remarkable promise for professional development environments.

## Future Development Roadmap

The Compose team plans to expand the MCP protocol. Future versions will include additional tool calls and performance improvements. Compatibility work continues with various AI agents. Long-term goals include applying this technology beyond debugging to full UI design processes, potentially transforming how developers collaborate with AI throughout the entire application lifecycle.

## Sources covering this story

- https://proandroiddev.com/i-gave-my-ai-agent-eyes-inside-a-real-compose-app-e7d4546417f8?source=rss----c72404660798---4 — 

---

_Summary written by Brifing from the original reporting. Copyright in the original article belongs to its publisher; read the full piece at the link above._
