Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Inspect and drive Avalonia, WPF, WinUI, and .NET MAUI apps through MCP.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"xamlmcp": {
"command": "dnx",
"args": [
"XamlMcp.Server",
"--yes"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add xamlmcp -- dnx XamlMcp.Server --yesวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"xamlmcp": {
"command": "dnx",
"args": [
"XamlMcp.Server",
"--yes"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"xamlmcp": {
"type": "stdio",
"command": "dnx",
"args": [
"XamlMcp.Server",
"--yes"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub trrahul ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.0.0-preview.2) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี .NET ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Rystic
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Start, seed, clock, inspect and diff Rystic API simulators from your agent.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
XamlMcp is an open-source XAML MCP server and AI inspection toolkit for Avalonia, WPF, WinUI 3, and .NET MAUI. It lets Claude Code, Codex, GitHub Copilot, and other MCP clients inspect and drive a running application: walk the visual or logical tree, read and write properties, inspect styles and resources, capture screenshots, send input, invoke commands and automation patterns, and observe changes over an authenticated local transport.
See the XamlMcp installation and configuration guide for a focused setup path across supported frameworks and AI clients.
The current release is 1.0.0-preview.3. It supports Avalonia, modern .NET WPF, self-contained unpackaged WinUI 3, and .NET MAUI on Windows and Android. Protocol version 2 is stable. Native MAUI nodes, iOS, and Mac Catalyst are unsupported.
See the changelog for user-facing release history and the framework feature and tool matrix for per-tool support and capability limits. The preview release guide explains the package roles, installation options, and verification commands.
| Package | What it is |
|---|---|
XamlMcp.Avalonia | In-process agent for Avalonia apps (net8.0, Avalonia 11.3.18+ and 12.x) |
XamlMcp.Wpf | In-process agent for modern .NET WPF apps (net8.0-windows) |
XamlMcp.WinUI | In-process agent for unpackaged WinUI 3 apps (Windows App SDK 2.3.1) |
XamlMcp.Maui | Logical agent for .NET MAUI 10.0.80 (net10.0, Windows, and Android API 24+; screenshots require API 26+) |
XamlMcp.Windows.Input | Shared guarded Win32 raw-input core used by Windows framework agents |
XamlMcp.Agent.Hosting | Framework-neutral desktop discovery, authentication, and named-pipe host |
XamlMcp.Protocol | Shared JSON-RPC contract — DTOs and framing; no UI-framework dependency |
XamlMcp.Server | Stdio MCP server: a dotnet tool named xamlmcp that connects AI clients to running agents |
Prerequisite: the app you inspect can target .NET 8 or later, but the xamlmcp tool (and building this repo or the sample from source) needs the .NET 10 SDK/runtime.
Add the agent package for your UI framework:
dotnet add package XamlMcp.Avalonia --version 1.0.0-preview.3
dotnet add package XamlMcp.Wpf --version 1.0.0-preview.3 dotnet add package XamlMcp.WinUI --version 1.0.0-preview.3 dotnet add package XamlMcp.Maui --version 1.0.0-preview.3
The agent's floor is Avalonia 11.3.18. If your project pins older references (the current avalonia.app template pins 11.3.0) restore fails with a NU1605 package-downgrade error — bump your Avalonia.* package references to at least 11.3.18.
Install the MCP server tool:
dotnet tool install --global XamlMcp.Server --version 1.0.0-preview.3
You can also run the server without a global installation:
dnx XamlMcp.Server@1.0.0-preview.3
Two entry points provide explicit diagnostic opt-in. Nothing listens unless you enable the agent per build (option B) or per launch (option A):
using XamlMcp.Avalonia;
// Option A - fluent, in BuildAvaloniaApp. Compiled in, but INERT unless the // XAML_MCP=1 environment variable is set when the app launches. public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure () .UsePlatformDetect() .AttachXamlMcp();
// Option B - on the Application instance (e.g. in OnFrameworkInitializationCompleted). // Marked [Conditional("DEBUG")]: the CALL SITE disappears from YOUR Release builds. public override void OnFrameworkInitializationCompleted() { this.AttachXamlMcp(); base.OnFrameworkInitializationCompleted(); }
Why two shapes? [Conditional] requires a void method, so the fluent AppBuilder overload can't use it and gates on the environment variable instead. And why not a plain #if DEBUG inside the package? That would gate on how *this package* was compiled at pack time and could never see *your* app's configuration at all. Both overloads instead gate on your build configuration or your launch environment.
Know the difference: option B's call is gone from your Release binaries; option A's code ships in Release but stays inert unless XAML_MCP=1 is present at launch — anyone who controls the launch environment can enable it. If you need hard exclusion with the fluent shape, wrap the .AttachXamlMcp() line in your own #if DEBUG.
Call the extension on the WPF Application in OnStartup:
using System.Windows;
using XamlMcp.Wpf;
public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { this.AttachXamlMcp(); base.OnStartup(e); } }
The WPF method is [Conditional("DEBUG")], so the call site disappears from the consuming app's Release build. There is no environment-enabled WPF overload. The agent uses the Application.Dispatcher that performs attachment. Windows and controls owned by secondary WPF UI threads are excluded.
Attach on the WinUI UI thread, explicitly register each Window, and keep the calls inside the application's diagnostic build gate:
using Microsoft.UI.Xaml;
using XamlMcp.WinUI;
public partial class App : Application { private WinUiXamlMcpSession? _xamlMcp; private IDisposable? _windowRegistration;
protected override void OnLaunched(LaunchActivatedEventArgs args) { var window = new MainWindow(); #if DEBUG var session = WinUiXamlMcp.Attach(); _xamlMcp = session; _windowRegistration = session.RegisterWindow(window); window.Closed += async (_, _) => { _windowRegistration?.Dispose(); await session.DisposeAsync(); }; #endif window.Activate(); } }
Attach() is not conditionally compiled: the caller owns the #if DEBUG or equivalent diagnostic gate. One session supports one DispatcherQueue and explicitly registered windows on that queue. The supported floor is Windows App SDK 2.3.1, target framework net8.0-windows10.0.19041.0, Windows 10 1809 (10.0.17763.0), and win-x64.
WinUI support is unpackaged. Use WindowsPackageType=None, WindowsAppSDKSelfContained=true, and publish to a fresh directory:
dotnet publish MyWinUiApp.csproj -c Release -r win-x64 --self-contained true -o artifacts/winui
The publish output must retain the generated .xbf and .pri resources. MSIX/package identity, certificates, Store distribution, XAML Islands, and multiple UI threads are unsupported.
Call UseXamlMcp() while building the MAUI app, inside the application's diagnostic build gate:
using XamlMcp.Maui;
public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder() .UseMauiApp ();
#if DEBUG builder.UseXamlMcp(); #endif
return builder.Build(); }
The same package and UseXamlMcp() call work in unpackaged Windows applications and debuggable Android applications on MAUI 10.0.80. The package does not inspect the consumer's configuration, so the caller must own the #if DEBUG or equivalent diagnostic gate. Android projects must set SupportedOSPlatformVersion to 24.0 or later. Screenshots require API 26 or later.
On Windows, the agent writes a discovery file under %LOCALAPPDATA%/XamlMcp/instances/ (override the directory with XAML_MCP_DIR) and serves JSON-RPC 2.0 on a current-user named pipe. On Android, it listens only on device loopback and stores a per-launch descriptor in app-private storage. The server reads that descriptor through debuggable run-as access and creates an owned adb forward only while connecting. Both transports require the per-launch token before any inspection call.
To discover an Android app, pass its application ID to the MCP server. Select a device explicitly when more than one authorized device is online:
claude mcp add xamlmcp -- xamlmcp --android-package dev.example.app --android-device emulator-5554
The Windows build prerequisites are the .NET 10 SDK and MAUI Windows workload. Android also requires the .NET Android workload and Android SDK platform tools (adb). iOS and Mac Catalyst are unsupported.
XamlMcp is a local stdio MCP server. Claude Code or Codex starts it when the client session needs it; you do not run a persistent server process.
This repository includes portable project configuration for both clients:
.mcp.json configures Claude Code..codex/config.toml configures Codex in a trusted checkout.Both configurations run the pinned preview directly from NuGet with dnx, so they require the .NET 10 SDK but no global tool installation. After cloning the repository, open a new client session and verify the registration:
claude mcp get xamlmcp
codex mcp get xamlmcp
To register the pinned preview for your user account or from another project, run:
claude mcp add --scope user xamlmcp -- dnx XamlMcp.Server@1.0.0-preview.3
codex mcp add xamlmcp -- dnx XamlMcp.Server@1.0.0-preview.3
Alternatively, install the tool globally and register its xamlmcp command:
dotnet tool install --global XamlMcp.Server --version 1.0.0-preview.3
claude mcp add --scope user xamlmcp -- xamlmcp codex mcp add xamlmcp -- xamlmcp
If a client already has a server named xamlmcp, remove or update that entry before adding the new one. Use claude mcp remove xamlmcp --scope or codex mcp remove xamlmcp as appropriate.
Launch an instrumented application next. Set XAML_MCP=1 when using Avalonia's fluent attachment form. Then ask the client to call `list-apps` → `attach(instanceId)` → any tool below. Integer PID attach remains a Windows desktop compatibility path.
| Tool | Purpose |
|---|---|
list-apps | Running instrumented apps (opaque instance id, platform, and sanitized metadata; desktop entries also include pid) |
attach | Connect to one app; reports its per-tool capability flags |
detach | Release the current app connection and its transport resources |
tree | Visual/logical tree snapshot; the source of node ids |
search | Find nodes by automation id / type / name / style class / pseudo-class / text |
ancestors | Ancestor chain of a node |
props | Properties with value, source/priority, automation patterns, command slots |
set-prop | Write a property, or clear a local value (unset) |
styles | Applied style selectors and setters (capability-gated) |
bindings | Active bindings, source/path/status/errors, DataContext origin, and template identity |
failures | Bounded binding/dispatcher failure evidence after an optional action correlation cursor |
resources | Resolved resources visible at a node or app scope |
pseudo-class | Toggle :pointerover, :pressed, … |
screenshot | PNG of a window or node, with an optional same-capture node map — returned as a real MCP image |
wait-for | Bounded polling for existence, visibility, enabled/focused state, or a property predicate |
hit-test | Deepest-first visual stack at logical coordinates, with node references and scaling |
input | Synthesized clicks, keys, text, wheel |
action | Automation patterns (invoke/toggle/select/…) and bound ICommands |
assets | Enumerate opaque framework asset identifiers (avares://, WPF pack, xamlmcp-asset:///, or maui-asset:///) |
open-asset | Read an asset (images as images, text as text) |
dialog-wait | Driver, opt-in: wait for a native dialog (file picker, message box) the app opened |
| dialog-act | Driver, opt-in: act on it — set-file-name, `accep
ตัดมาแค่ช่วงต้น อ่านต่อใน repo