Avalonia DevTools 2.2.0-beta2 introduces an MCP (Model Context Protocol) server that lets AI agents directly inspect and manipulate running Avalonia applications. The server exposes tools for traversing visual/logical element trees, reading and setting properties at runtime, inspecting styles, managing resources, capturing screenshots, and performing UI interactions. The intended workflow has an AI agent take a design mockup or screenshot, generate XAML, connect to the live app via MCP, inspect the rendered result, and iteratively adjust until pixel-perfect. A real-world demo with Devolutions showed a 5,000-view Remote Desktop Manager port being accelerated significantly, with Claude recreating a view in minutes instead of 30-60 minutes of manual tweaking.
Table of contents
The ProblemThe Solution: Programmatic DevToolsThe WorkflowHere's a typical workflow:Real-World ExampleAvailable TodaySort: