Skip to content

Commit 795e2dd

Browse files
committed
gen readme
1 parent 6556ce5 commit 795e2dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func main() {
7272
ctx := context.Background()
7373

7474
// Create a new client, with no features.
75-
client := mcp.NewClient("mcp-client", "v1.0.0", nil)
75+
client := mcp.NewClient(nil, nil)
7676

7777
// Connect to a server over stdin/stdout
7878
transport := mcp.NewCommandTransport(exec.Command("myserver"))
@@ -125,7 +125,7 @@ func SayHi(ctx context.Context, cc *mcp.ServerSession, params *mcp.CallToolParam
125125

126126
func main() {
127127
// Create a server with a single tool.
128-
server := mcp.NewServer("greeter", "v1.0.0", nil)
128+
server := mcp.NewServer(&mcp.Implementation{Name: "greeter", Version: "v1.0.0"}, nil)
129129

130130
mcp.AddTool(server, &mcp.Tool{Name: "greet", Description: "say hi"}, SayHi)
131131
// Run the server over stdin/stdout, until the client disconnects

0 commit comments

Comments
 (0)