Skip to content

handler

Core MCP protocol handling logic

MCP Protocol Handler - Integrates with protocol_transport_core

Methods

fn new() -> Self

Create new MCP protocol handler

fn with_capabilities(self, capabilities: ServerCapabilities) -> Self

Configure server capabilities

fn with_auth_handler<H>(self, handler: H) -> Self

Configure authentication handler

fn with_tool_provider<P>(self, provider: P) -> Self

Configure tool provider

fn with_query_mode(self, query_mode: QueryMode) -> Self

Configure query mode