AvaloniaUI
Tools, resources, and guidance for building cross-platform applications with AvaloniaUI.
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.csproj
Configuration
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=Integration
Test 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
- Fork and clone the repository
- Install dependencies:
dotnet restore - Run tests:
dotnet test - Create feature branch:
git checkout -b feature/amazing-feature - Make changes with tests
- 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: [email protected]
🌟 Star us on GitHub • 🐛 Report issues • 🤝 Contribute • 📖 Read the docs
相關伺服器
Scout Monitoring MCP
贊助Put performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
贊助Access financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
RunwayML + Luma AI
Interact with the RunwayML and Luma AI APIs for video and image generation tasks.
MCP Server Template
A starter template for building a Model Context Protocol (MCP) server using TypeScript and Node.js.
Agent Evals by Galileo
Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server
context-mem
Context optimization for AI coding assistants — 99% token savings via 14 content-aware summarizers, 3-layer search, and progressive disclosure. No LLM dependency.
Rakit UI AI
An intelligent tool for AI assistants to present multiple UI component designs for user selection.
Kaggle MCP
Get access to Kaggle's datasets, models, competitions, notebook and benchmarks.
PyPI MCP Server
Search and access Python package metadata, version history, and download statistics from the PyPI repository.
REPL MCP Server
A universal REPL session manager supporting Python, Node.js, Ruby, and more, with session management and LLM-assisted recovery.
BlenderMCP
Connects Blender to AI models via MCP for prompt-assisted 3D modeling, scene creation, and manipulation.
Debugger MCP Server
A development tool for real-time debugging, code quality monitoring, and AI insights for React/Next.js applications.