Skip to content

Commit ab09251

Browse files
authored
mcp: fix inaccurate package doc (#534)
1 parent 1489ba7 commit ab09251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mcp/mcp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@
8080
// validated. As a special case, if the output type is 'any', no output schema
8181
// is generated.
8282
//
83-
// func double(_ context.Context, _ *mcp.CallToolRequest, in In) (*mcp.CallToolResponse, Out, error) {
83+
// func double(_ context.Context, _ *mcp.CallToolRequest, in In) (*mcp.CallToolResult, Out, error) {
8484
// return nil, Out{Answer: 2*in.Number}, nil
8585
// }
8686
// ...
87-
// mcp.AddTool(&mcp.Tool{Name: "double", Description: "double a number"}, double)
87+
// mcp.AddTool(server, &mcp.Tool{Name: "double"}, double)
8888
package mcp

0 commit comments

Comments
 (0)