AvaloniaSpy.Previewer
1.8.2
dotnet tool install --global AvaloniaSpy.Previewer --version 1.8.2
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local AvaloniaSpy.Previewer --version 1.8.2
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=AvaloniaSpy.Previewer&version=1.8.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package AvaloniaSpy.Previewer --version 1.8.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AvaloniaSpy
<div align="right"> 简体中文 · English
</div>
Avalonia 应用诊断库。通过 TCP 提供视觉树、属性、布局和截图诊断能力,可通过 MCP 协议被 AI 调用。
A diagnostics library for Avalonia applications. Exposes the visual tree, properties, layout, and screenshots via TCP, and can be invoked by AI assistants through the MCP protocol.
简体中文
快速开始
dotnet add package AvaloniaSpy
在 App.axaml.cs 中启用诊断:
using AvaloniaSpy;
public override void OnFrameworkInitializationCompleted()
{
#if DEBUG
this.EnableAvaloniaSpy();
#endif
base.OnFrameworkInitializationCompleted();
}
安装 MCP 工具:
dotnet tool install --global AvaloniaSpy.DevTools.MCP
完整文档请参考 GitHub 仓库。
包说明
| 包 | 说明 |
|---|---|
AvaloniaSpy |
嵌入目标应用的诊断库,启动 TCP 诊断服务器 |
AvaloniaSpy.DevTools.MCP |
.NET 全局工具,桥接 AI 助手与目标应用 |
AvaloniaSpy.Previewer |
.NET 全局工具,独立 headless Avalonia 进程预览 .axaml 文件 |
许可证
Apache-2.0
English
Quick Start
dotnet add package AvaloniaSpy
Enable diagnostics in App.axaml.cs:
using AvaloniaSpy;
public override void OnFrameworkInitializationCompleted()
{
#if DEBUG
this.EnableAvaloniaSpy();
#endif
base.OnFrameworkInitializationCompleted();
}
Install the MCP tool:
dotnet tool install --global AvaloniaSpy.DevTools.MCP
See the GitHub repo for full documentation.
Packages
| Package | Description |
|---|---|
AvaloniaSpy |
Library — embed in your app to start the TCP diagnostic server |
AvaloniaSpy.DevTools.MCP |
.NET global tool — bridges AI assistants to your app via MCP |
AvaloniaSpy.Previewer |
.NET global tool — headless Avalonia process for previewing .axaml files |
License
Apache-2.0
| 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.