diff --git a/mcp/mcp.go b/mcp/mcp.go index 88321a1e..56e950b8 100644 --- a/mcp/mcp.go +++ b/mcp/mcp.go @@ -80,9 +80,9 @@ // validated. As a special case, if the output type is 'any', no output schema // is generated. // -// func double(_ context.Context, _ *mcp.CallToolRequest, in In) (*mcp.CallToolResponse, Out, error) { +// func double(_ context.Context, _ *mcp.CallToolRequest, in In) (*mcp.CallToolResult, Out, error) { // return nil, Out{Answer: 2*in.Number}, nil // } // ... -// mcp.AddTool(&mcp.Tool{Name: "double", Description: "double a number"}, double) +// mcp.AddTool(server, &mcp.Tool{Name: "double"}, double) package mcp