Skip to content

Commit a52fe65

Browse files
committed
Update test function signature
1 parent a258635 commit a52fe65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/streamable_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestStreamableTransports(t *testing.T) {
4040
// 1. Create a server with a simple "greet" tool.
4141
server := NewServer(testImpl, nil)
4242
AddTool(server, &Tool{Name: "greet", Description: "say hi"}, sayHi)
43-
AddTool(server, &Tool{Name: "sample"}, func(ctx context.Context, req *ServerRequest[*CallToolParamsFor[any]]) (*CallToolResultFor[any], error) {
43+
AddTool(server, &Tool{Name: "sample"}, func(ctx context.Context, req *ServerRequest[*CallToolParams]) (*CallToolResult, error) {
4444
// Test that we can make sampling requests during tool handling.
4545
//
4646
// Try this on both the request context and a background context, so

0 commit comments

Comments
 (0)