Documentation
¶
Overview ¶
Package tool provides tool handling functionality for the MCP server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler manages tool execution and authentication.
func (*Handler) CreateHandler ¶
func (h *Handler) CreateHandler(tool *mcp.Tool, executor requester.RouteExecutor) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error)
CreateHandler creates a handler function for a specific tool. It handles authentication validation and request execution.
Click to show internal directories.
Click to hide internal directories.