Skip to main content

Module handler

Module handler 

Source
Expand description

MCP request handler implementation

Provides MCP protocol request handling logic, including tool listing, tool invocation, and resource lists.

§Main Structs

  • CratesDocsHandler: MCP handler implementing standard protocol interface
  • HandlerConfig: Handler configuration class, supports merge operation

§Design

Single-layer architecture with all handling logic directly in CratesDocsHandler.

Structs§

CratesDocsHandler
MCP server handler
HandlerConfig
Handler configuration (supports merging)
ToolExecutionResult
Tool execution result (supports different return type conversions)