Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Tools Reference

AvaloniaUI.MCP provides a comprehensive set of tools for AvaloniaUI development. Each tool is designed to assist with specific aspects of application development, from project creation to performance optimization.

📋 Tool Categories

🚀 Project Generation

✅ Validation & Quality

🎨 UI Development

🔄 Migration & Integration

🛠️ Development & Debugging

🏗️ Architecture & Patterns

🎯 Quick Reference

Tool Purpose Key Features
ProjectGeneratorTool Create projects MVVM, Basic, Cross-platform templates
XamlValidationTool Validate XAML Syntax checking, best practices
SecurityPatternTool Security guidance Secure patterns, vulnerability prevention
ThemingTool Theme creation Material, Fluent, custom themes
DiagnosticTool Monitoring Health checks, performance metrics

🔧 Usage Patterns

Basic Tool Invocation

All tools follow the MCP protocol and can be invoked through your MCP client:

"Create a new MVVM project called MyApp with desktop and mobile support"

Advanced Configuration

Many tools support detailed configuration:

"Generate a security authentication pattern with JWT, encryption enabled, and high security level"

Chaining Operations

Tools can be used together for complete workflows:

  1. Generate project structure
  2. Validate XAML components
  3. Apply security patterns
  4. Add theming support
  5. Optimize performance

📊 Tool Metrics

Each tool execution is automatically tracked with telemetry:

  • Execution time
  • Success/failure rates
  • Error patterns
  • Usage statistics

Access metrics using the DiagnosticTool.

🛡️ Security & Validation

All tools include:

  • Input validation - Comprehensive parameter checking
  • Error handling - Graceful failure with helpful messages
  • Security patterns - Defensive coding practices
  • Audit logging - Complete operation tracking

🎓 Examples

For detailed examples of each tool, see:

🔍 Tool Discovery

Use your MCP client to discover available tools:

"What tools are available for AvaloniaUI development?"

Or get help with specific functionality:

"How do I validate XAML code?"
"Show me security patterns for authentication"
"Help me create a custom control"

📈 Performance

Tool performance characteristics:

  • Average execution time: < 100ms
  • Cache hit rate: > 80%
  • Concurrent requests: Supported
  • Memory efficiency: Optimized for low footprint

🐛 Troubleshooting

Common issues and solutions:

  • Check the troubleshooting guide
  • Use the DiagnosticTool for health checks
  • Review logs for detailed error information
  • Consult tool-specific documentation