Versions in this module Expand all Collapse all v2 v2.1.0 Apr 29, 2026 v2.0.0 Apr 29, 2026 Changes in this version + var ErrInvalidArguments = errors.New("invalid arguments") + type ExecutableTool interface + Execute func(ctx context.Context, rawArgs json.RawMessage) (any, error) + func NewToolWithDefinition[In any, Out any](def *sdkmcp.Tool, handler ToolHandler[In, Out]) ExecutableTool + func NewTool[In any, Out any](name, description string, handler ToolHandler[In, Out]) ExecutableTool + type ExecuteFunc func(ctx context.Context, rawArgs json.RawMessage) (any, error) + type ToolHandler func(ctx context.Context, in In) (Out, error) + type ToolMiddleware func(ctx context.Context, rawArgs json.RawMessage, next ExecuteFunc) (any, error) + type WrappedTool struct + func Wrap(inner ExecutableTool, middleware ToolMiddleware) *WrappedTool + func (w *WrappedTool) Definition() *sdkmcp.Tool + func (w *WrappedTool) Execute(ctx context.Context, rawArgs json.RawMessage) (any, error) + func (w *WrappedTool) Wrap(middleware ToolMiddleware) *WrappedTool Other modules containing this package github.com/v8tix/mcp-toolkit