Expand description
MCP request handler implementation
Provides MCP protocol request handling logic, including tool listing, tool invocation, and resource lists.
§Main Structs
HandlerCore: Shared core handling logic (internal use)CratesDocsHandler: Standard MCP handlerCratesDocsHandlerCore: Core handler (provides more fine-grained control)
§Design Pattern
Uses composition pattern to eliminate code duplication:
HandlerCoreencapsulates all shared handling logicCratesDocsHandlerandCratesDocsHandlerCoredelegate toHandlerCore- Supports config merging and optional metrics integration
Structs§
- Crates
Docs Handler - MCP server handler
- Crates
Docs Handler Core - Core handler implementation (provides more control)
- Handler
Config - Handler configuration (supports merging)
- Handler
Core - Shared core handling logic
- Tool
Execution Result - Tool execution result (supports different return type conversions)