remote-mcp-kernel 0.1.0-alpha.4

A microkernel-based MCP (Model Context Protocol) server with OAuth authentication and multiple transport protocols
Documentation
//! HTTP handlers for MCP OAuth server
//!
//! This module contains various HTTP handlers that provide different
//! endpoints for the MCP OAuth server. Each handler follows microkernel
//! design principles with clear separation of concerns.

pub mod mcp_server;
pub mod sse_handler;
pub mod streamable_http;

pub use mcp_server::McpServer;
pub use sse_handler::{SseHandler, SseHandlerConfig};
pub use streamable_http::StreamableHttpHandler;

/// Trait for MCP server implementations that can be used with the microkernel
///
/// This trait provides the abstraction needed to support arbitrary MCP server
/// implementations while leveraging the rmcp framework's capabilities.
///
/// Any type that implements rmcp::ServerHandler can be used as an MCP server
/// in the microkernel architecture.
pub trait McpServerHandler: rmcp::ServerHandler + Clone + Send + Sync + 'static {}

/// Blanket implementation for any type that implements the required traits
impl<T> McpServerHandler for T where T: rmcp::ServerHandler + Clone + Send + Sync + 'static {}