PS

plop44/snoopwpfmcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

11 stars 3 forks 质量 49 趋势 18NOASSERTION

A Model Context Protocol (MCP) infrastructure for WPF applications using snoopwpf injection techniques. Allows code injection into running WPF processes and communication via Named Pipes.

概览

This MCP server gives AI agents the ability to understand and control any running WPF application - . For example, you can turn any AI agent into a with this simple prompt: "Can you use snoop-wpf-inspector to interact with my app? You are QA trying to find some bugs, you should interact with all controls across all tabs and give me a summary of what worked and what did not." The AI agent can: - any WPF app's complete UI structure - - click buttons, enter text, select items - of application windows - by examining data bindings and element properties 1. AI agent calls MCP tools via HTTP/JSON-RPC 2. MCP server discovers and injects into target WPF processes 3. Injected WpfInspector provides UI inspection via Named Pipes 4. Real-time interaction: inspect → act → verify → repeat Add this configuration to your MCP client's mcp.

README

以下为原文 README 节选,完整内容请查看原文。

SnoopWpfMcp - AI agent driven WPF inspector

What Can You Do?

This MCP server gives AI agents the ability to understand and control any running WPF application - the AI can do anything you can do with your mouse and keyboard, just by giving it the right prompt.

For example, you can turn any AI agent into a QA tester with this simple prompt:

“Can you use snoop-wpf-inspector to interact with my app? You are QA trying to find some bugs, you should interact with all controls across all tabs and give me a summary of what worked and what did not.”

The AI agent can:

  • Discover and inspect any WPF app’s complete UI structure
  • Interact with UI elements - click buttons, enter text, select items
  • Take screenshots of application windows
  • Debug UI issues by examining data bindings and element properties

Best results achieved with Claude Sonnet 4.

Architecture

┌─────────────────┐        ┌──────────────────┐        ┌──────────────────┐
│   AI Agent      │  HTTP  │   SnoopWpfMcp    │Process │     WPF App 1    │
│ (GitHub Copilot,│◄──────►│   MCP Server     │Inject  │                  │
│  Cursor, etc.)  │JSON-RPC│                  │   +    │ ┌──────────────┐ │
│                 │        │ Tools:           │Named   │ │WpfInspector  │ │
│                 │        │ • get_processes  │Pipes   │ │  (injected)  │ │
│                 │        │ • ping           │◄──────►│ │• UI Tree     │ │
│                 │        │ • get_visual_tree│        │ │• Automation  │ │
│                 │        │ • invoke_automation       │ │• Screenshots │ │
│                 │        │ • screenshot     │        │ └──────────────┘ │
└─────────────────┘        └──────────────────┘        └──────────────────┘
                                      │                           
                                      │Process                    
                                      │Inject                     
                                      │   +                       
                                      │Named                      
                                      │Pipes                      
                                      ▼                           
                           ┌──────────────────┐                  
                           │     WPF App 2    │                  
                           │                  │                  
                           │ ┌──────────────┐ │                  
                           │ │WpfInspector  │ │                  
                           │ │  (injected)  │ │                  
                           │ │• UI Tree     │ │                  
                           │ │• Automation  │ │                  
                           │ │• Screenshots │ │                  
                           │ └──────────────┘ │
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →