Skip to content

Commit 26835b1

Browse files
committed
docs: fix README example
1 parent c47dbcd commit 26835b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ type HiParams struct {
104104

105105
func SayHi(ctx context.Context, cc *mcp.ServerSession, params *mcp.CallToolParamsFor[HiParams]) (*mcp.CallToolResultFor[any], error) {
106106
return &mcp.CallToolResultFor[any]{
107-
Content: []mcp.Content{&mcp.TextContent{Text: "Hi " + params.Name}},
107+
Content: []mcp.Content{&mcp.TextContent{Text: "Hi " + params.Arguments.Name}},
108108
}, nil
109109
}
110110

0 commit comments

Comments
 (0)