airs-mcp
Production-ready Model Context Protocol (MCP) implementation for Rust
🎯 Production Status
✅ Complete MCP Implementation
✅ Full Claude Desktop Integration Verified
✅ 100% Schema Compliance (MCP 2024-11-05)
✅ Enterprise-Grade Architecture & Testing
Overview
airs-mcp is a production-ready, enterprise-grade Rust implementation of the Model Context Protocol (MCP). Successfully integrated with Claude Desktop, it provides all three MCP capability types through a sophisticated, type-safe API.
🚀 Real-World Integration Success
This library powers a fully functional MCP server that integrates seamlessly with Claude Desktop:
- ✅ Tools: Mathematical operations, greeting functions - real-time execution confirmed
- ✅ Resources: File system access, configuration reading - attachment interface integration
- ✅ Prompts: Code review templates, concept explanations - prompt template system integration
🏗️ Enterprise Architecture
Built with production-grade patterns and comprehensive safety measures:
// High-level MCP Server API
let server = new
.server_info
.with_resource_provider
.with_tool_provider
.with_prompt_provider
.build
.await?;
🔬 Technical Excellence
- 🎯 234+ Tests Passing: Comprehensive unit, integration, and doc test coverage
- 🛡️ Zero Warnings: Strict clippy compliance with enterprise code quality standards
- ⚡ High Performance: Concurrent processing with advanced buffer management and zero-copy optimizations
- 🏛️ Clean Architecture: Layered design with proper separation of concerns and async-first patterns
- 📋 Schema Compliance: 100% MCP 2024-11-05 specification compliance verified with official tools
Core Features
🔌 Complete MCP Protocol Support
Three-Tier MCP Capability Implementation:
// 1. TOOLS - Execute functions and operations
async
// 2. RESOURCES - Provide data and content
async
// 3. PROMPTS - Offer template-based interactions
async
🚀 Production-Ready Transport Layer
High-Performance STDIO Transport:
// Zero-copy message processing with advanced buffering
let transport = builder
.with_buffer_size // Optimized for JSON-RPC payload sizes
.with_batch_processing // Concurrent message handling
.with_connection_pooling // Efficient resource management
.build
.await?;
🧠 Enterprise Message Correlation
Advanced Request-Response Management:
// Sophisticated correlation with timeout handling and cleanup
let correlator = builder
.with_timeout
.with_cleanup_interval
.with_concurrent_capacity
.build;
// Automatic correlation for complex conversation flows
let response = correlator.correlate_request.await?;
🔒 Type-Safe Error Handling
Structured Error Management:
Usage
This crate is part of the AIRS workspace. See the main project README for build instructions.
License
Licensed under MIT OR Apache-2.0, same as the parent AIRS project.