AvaloniaUI.MCP
MCP server for AvaloniaUI
Documentation
AvaloniaUI.MCP
Professional Model Context Protocol Server for AvaloniaUI Development
A comprehensive MCP server providing enterprise-grade tools, resources, and guidance for building cross-platform AvaloniaUI applications.
๐ Features
๐ ๏ธ 15+ Development Tools
- Project Generation - MVVM, basic, and cross-platform templates
- XAML Validation - Syntax checking and best practices enforcement
- Security Patterns - Secure authentication and data protection
- Performance Analysis - Optimization guidance and monitoring
- Migration Support - Complete WPF to AvaloniaUI conversion assistance
๐ Extensive Knowledge Base
- 500+ Controls - Complete AvaloniaUI controls reference
- Design Patterns - MVVM, reactive programming, and architectural guidance
- Best Practices - Industry-standard development practices
- Code Examples - Real-world implementation examples
๐ Enterprise Features
- Telemetry & Monitoring - Real-time performance metrics and health checks
- Caching System - Intelligent resource caching for 80%+ hit rates
- Input Validation - Comprehensive parameter validation and sanitization
- Error Handling - Graceful error management with helpful diagnostics
- Audit Logging - Complete operation tracking and compliance support
โก High Performance
- < 100ms Response Times - Optimized for production workloads
- Async Operations - Non-blocking file and network operations
- Memory Efficient - Minimal footprint with intelligent resource management
- Concurrent Support - Handle multiple requests simultaneously
๐ Quick Start
Prerequisites
- .NET 9.0 SDK or later
- MCP-compatible client (Claude Desktop, VS Code with MCP extension)
Installation
# Clone the repository
git clone https://github.com/decriptor/AvaloniaUI.MCP.git
cd AvaloniaUI.MCP
# Build the project
dotnet build
# Run tests (optional)
dotnet test
# Start the server
dotnet run --project src/AvaloniaUI.MCP/AvaloniaUI.MCP.csprojConfiguration
Add to your MCP client configuration:
{
"mcpServers": {
"avalonia": {
"command": "dotnet",
"args": [
"run",
"--project",
"/path/to/AvaloniaUI.MCP/src/AvaloniaUI.MCP/AvaloniaUI.MCP.csproj"
],
"cwd": "/path/to/AvaloniaUI.MCP"
}
}
}First Commands
Try these commands with your MCP client:
"Create a new AvaloniaUI MVVM project called MyApp"
"Validate this XAML code for best practices"
"Generate JWT authentication pattern with high security"
"Show me how to migrate this WPF control to AvaloniaUI"
"Perform a health check on the server"๐ ๏ธ Tools Overview
| Category | Tools | Description |
|---|---|---|
| Project Generation | ProjectGeneratorTool, ArchitectureTemplateTool | Create complete projects with best practices |
| Validation & Quality | XamlValidationTool, SecurityPatternTool, AccessibilityTool | Ensure code quality and security |
| UI Development | ThemingTool, CustomControlGenerator, AnimationTool | Build beautiful, interactive interfaces |
| Migration & Integration | APIIntegrationTool, LocalizationTool, DataAccessPatternTool | Integrate with external systems |
| Development & Debugging | DiagnosticTool, TestingIntegrationTool, PerformanceAnalysisTool | Monitor and optimize applications |
๐ **Complete Tools Documentation** โ
๐ Performance Metrics
| Metric | Value | Description |
|---|---|---|
| Response Time | < 100ms | Average tool execution time |
| Test Coverage | 90%+ | Comprehensive test suite |
| Cache Hit Rate | 80%+ | Resource caching efficiency |
| Memory Usage | < 200MB | Typical memory footprint |
| Concurrent Users | 50+ | Supported simultaneous connections |
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ MCP Client โ โ AvaloniaUI.MCP โ โ Knowledge Base โ
โ (Claude, VSC) โโโโโบโ Server โโโโโบโ (JSON Files) โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโ
โ Tool Ecosystem โ
โ โข Project Gen โ
โ โข Validation โ
โ โข Security โ
โ โข Diagnostics โ
โโโโโโโโโโโโโโโโโโโโBuilt with:
- .NET 9.0 - Latest runtime with performance optimizations
- MCP Protocol - Official Microsoft Model Context Protocol SDK
- OpenTelemetry - Enterprise observability and monitoring
- Reactive Extensions - Async/reactive programming patterns
๐ Documentation
| Resource | Description |
|---|---|
| **๐ Documentation Site** | Complete documentation with examples |
| **๐ Quick Start Guide** | Get running in 5 minutes |
| **๐ ๏ธ Tools Reference** | Detailed tool documentation |
| **๐ก Examples & Tutorials** | Real-world usage examples |
| **๐ Troubleshooting** | Common issues and solutions |
๐งช Testing
Comprehensive test suite with 150+ tests:
# Run all tests
dotnet test
# Run with coverage
dotnet test --collect:"XPlat Code Coverage"
# Run specific categories
dotnet test --filter Category=Unit
dotnet test --filter Category=IntegrationTest categories:
- Unit Tests - Individual component testing
- Integration Tests - Tool interaction testing
- Performance Tests - Load and response time testing
- Security Tests - Input validation and security pattern testing
๐ Security
Enterprise-grade security features:
- Input Validation - All parameters validated against strict schemas
- Secure Patterns - Defensive security pattern generation
- Audit Logging - Complete operation tracking
- Error Handling - No sensitive information exposure
- Resource Limits - Protection against resource exhaustion
๐ Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
1. Fork and clone the repository
2. Install dependencies: `dotnet restore`
3. Run tests: `dotnet test`
4. Create feature branch: `git checkout -b feature/amazing-feature`
5. Make changes with tests
6. Submit pull request
Areas for Contribution
- ๐ ๏ธ New tools and features
- ๐ Documentation improvements
- ๐ Bug fixes and optimizations
- ๐งช Additional test coverage
- ๐ Internationalization support
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- AvaloniaUI Team - For the excellent cross-platform UI framework
- Microsoft - For the Model Context Protocol specification
- Contributors - Everyone who helps improve this project
- Community - For feedback, bug reports, and feature requests
๐ Support
- ๐ Documentation: GitHub Pages
- ๐ Bug Reports: GitHub Issues
- ๐ฌ Discussions: GitHub Discussions
- ๐ง Email: sshaw@decriptor.com
Frequently asked questions
What is AvaloniaUI.MCP?
AvaloniaUI.MCP is MCP server for AvaloniaUI
How do I install AvaloniaUI.MCP?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is AvaloniaUI.MCP open source?
Yes โ it is hosted on GitHub at https://github.com/decriptor/AvaloniaUI.MCP and has 38 stars.
Related MCP tools
Unity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
AI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for free.
Catalog of official Microsoft MCP (Model Context Protocol) server implementations for AI-powered data access and tool integration
An MCP server that allows MCP clients like Claude Desktop or Cursor to perform actions in the Unity Editor C#-based implementation.
The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft. Trusted by 3500+ developers.
Model Context Protocol (MCP) plugin to connect with Unity Editor โ designed for OpenAI, Gemini, Claude, Deepseek and Grok interoperability
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP