API Reference¶
The complete API reference for AIRS MCP is available on docs.rs.
Rust API Documentation¶
Once published to crates.io, the full API documentation will be available at:
https://docs.rs/airsprotocols-mcp
Building Documentation Locally¶
You can also build and view the API documentation locally using cargo:
# Build and open the API documentation
cargo doc --package airsprotocols-mcp --open
# Build documentation with all features
cargo doc --package airsprotocols-mcp --all-features --open
Key Modules¶
Integration Layer¶
integration::client- High-level MCP client implementationintegration::server- MCP server frameworkintegration::builder- Builder patterns for client and server configuration
Protocol Layer¶
protocol::types- MCP message types and protocol definitionsprotocol::jsonrpc- JSON-RPC 2.0 implementationprotocol::messages- Request and response message types
Transport Layer¶
transport- Transport abstraction and implementationstransport::adapters::stdio- STDIO transport for local communicationtransport::adapters::http- HTTP transport for network communication
Provider System¶
providers::tool- Tool provider trait and implementationsproviders::resource- Resource provider trait and implementationsproviders::prompt- Prompt provider trait and implementations
Authentication & Authorization¶
authentication- Authentication strategies and middlewareauthorization- Authorization policies and access control
Examples¶
The examples directory contains complete working examples demonstrating various use cases:
- stdio-server-integration - Local server with STDIO transport
- http-oauth2-server-integration - HTTP server with OAuth2 authentication
- basic-client - Simple MCP client example
- advanced-patterns - Complex usage patterns and integrations
Related Documentation¶
- Quick Start Guide - Get started quickly
- Usage Examples - Common usage patterns
- Architecture Guide - Internal design details