Agent♥︎Age
Catalog

XamlMcp

Official

by trrahul · C#

Inspect and drive Avalonia, WPF, WinUI, and .NET MAUI apps through MCP.

XamlMcp (io.github.trrahul/xamlmcp) — Model Context Protocol Server

XamlMcp is an open-source XAML MCP server and AI inspection toolkit. It enables MCP clients to inspect and drive running apps built with Avalonia, WPF, WinUI 3, and .NET MAUI over an authenticated local transport, using tool interactions to examine UI structure and state.

🛠️ Key Features

  • Inspect and drive running applications
  • Walk visual or logical trees
  • Read and write properties
  • Inspect styles and resources
  • Capture screenshots
  • Send input
  • Invoke commands and automation patterns
  • Observe changes via authenticated local transport

🚀 Use Cases

  • AI clients (e.g., Claude Code, Codex, GitHub Copilot) inspecting UI at runtime
  • Automated inspection and modification of UI properties, styles, and resources
  • Capturing screenshots and monitoring changes during app interaction

⚡ Developer Benefits

  • Works with multiple XAML frameworks: Avalonia, WPF, WinUI 3, .NET MAUI
  • Supports visual/logical tree traversal and property/resource inspection
  • Enables command automation and change observation over local transport

⚠️ Limitations

  • Source material specifies use over an authenticated local transport only; no other transport modes are described.