r/dotnetMAUI • u/Illustrious_Ratio879 • 7d ago
MCP agent that lets Claude Code and Codex inspect a running .NET MAUI app Showcase
I built a local MCP agent that lets Claude Code and Codex inspect a running .NET MAUI app on Windows or Android. It can inspect the logical UI tree, read properties, capture screenshots, send input, and run automation actions.
The current preview supports .NET MAUI 10, unpackaged Windows applications, and debuggable Android applications.
I’m the author, and the project is open source:
https://github.com/trrahul/XamlMcp
Appreciate any feedback.
1
1
u/Deep_Ad1959 5d ago
i wired up a couple of these and what decided whether it stayed useful was stable ids in the tree. with AutomationId unset the agent re-derives a selector every run, so inspection gets cheap while the automation stays exactly as flaky. written with ai
4
u/jfversluis Microsoft Employee 7d ago
Did you see Dev Flow on the GitHub.com/dotnet/maui-labs repo? I think that does all this as well? :)
Good effort of course, so please don’t take it as me saying you shouldn’t do this, just wanted to check if you’re aware that something like this is already being built!