Declarative.Avalonia.AgentTools
12.0.5
See the version list below for details.
dotnet add package Declarative.Avalonia.AgentTools --version 12.0.5
NuGet\Install-Package Declarative.Avalonia.AgentTools -Version 12.0.5
<PackageReference Include="Declarative.Avalonia.AgentTools" Version="12.0.5" />
<PackageVersion Include="Declarative.Avalonia.AgentTools" Version="12.0.5" />
<PackageReference Include="Declarative.Avalonia.AgentTools" />
paket add Declarative.Avalonia.AgentTools --version 12.0.5
#r "nuget: Declarative.Avalonia.AgentTools, 12.0.5"
#:package Declarative.Avalonia.AgentTools@12.0.5
#addin nuget:?package=Declarative.Avalonia.AgentTools&version=12.0.5
#tool nuget:?package=Declarative.Avalonia.AgentTools&version=12.0.5
Declarative.Avalonia.AgentTools
In-process MCP (Model Context Protocol) inspector for AI agents that build UI with
Avalonia.Markup.Declarative.
In a debug build it exposes the running app to an agent over loopback so the agent can close the feedback loop while iterating on a view:
get_visual_tree— text visual tree with names and layout boundslist_components— active declarative viewsscreenshot_window/screenshot_control— PNG screenshots (image content blocks)get_errors— recent build / binding / converter errorsinvoke— (optional, off by default) remote control via UI Automation: invoke / select / toggle / set / expand / collapse / focus / scroll / context_menu / key / type
Usage
var appBuilder = AppBuilder.Configure<App>()
.UsePlatformDetect()
#if DEBUG
.UseAgentInspector() // loopback MCP server on 127.0.0.1:5599
#endif
.SetupWithLifetime(lifetime);
Point your agent's MCP client at the streamable-HTTP endpoint http://127.0.0.1:5599.
Dev only. Keep the call under
#if DEBUG. This package pulls in the ASP.NET Core web stack and a remote-control surface; it must not ship in Release. The server binds to loopback only, andinvokestays disabled unless you setEnableInteraction = true.
See the repository's docs/agent-tools.md for the full guide.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Avalonia.Markup.Declarative (>= 12.0.5)
- ModelContextProtocol.AspNetCore (>= 1.4.0)
-
net8.0
- Avalonia.Markup.Declarative (>= 12.0.5)
- ModelContextProtocol.AspNetCore (>= 1.4.0)
-
net9.0
- Avalonia.Markup.Declarative (>= 12.0.5)
- ModelContextProtocol.AspNetCore (>= 1.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 12.1.2-fix-agent.1 | 79 | 8/3/2026 |
| 12.1.1 | 489 | 8/2/2026 |
| 12.1.0 | 121 | 7/18/2026 |
| 12.0.6-preview2 | 115 | 7/8/2026 |
| 12.0.6-preview1 | 103 | 7/7/2026 |
| 12.0.5 | 130 | 7/3/2026 |
| 12.0.5-preview1 | 112 | 6/20/2026 |