Module handlers

Module handlers 

Source
Expand description

Handler traits and implementations for MCP operations

This module contains the decomposed handler system with focused modules:

  • traits: All handler trait definitions
  • composite: Composite handler pattern for multi-type handlers
  • wrapper: Handler wrapper infrastructure with metadata
  • implementations: Concrete handler implementations
  • utils: Utility functions for creating handlers from closures

Re-exports§

pub use composite::CompositeHandler;
pub use implementations::FunctionToolHandler;
pub use utils::FunctionPromptHandler;
pub use utils::FunctionResourceHandler;
pub use wrapper::HandlerMetadata;
pub use wrapper::HandlerWrapper;
pub use traits::*;

Modules§

composite
Composite handler pattern for handling multiple types of requests
implementations
Concrete handler implementations
traits
Handler traits for MCP operations
utils
Utility functions for creating handlers from closures
wrapper
Handler wrapper infrastructure for metadata and additional functionality

Type Aliases§

ExistenceCheckFn
Type alias for existence check functions to reduce complexity