@@ -33,7 +33,7 @@ The SDK consists of several importable packages:
33
33
their own transports.
34
34
- The
35
35
[ ` github.com/modelcontextprotocol/go-sdk/auth ` ] ( https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/auth )
36
- package provides some primitives for supporting oauth .
36
+ package provides some primitives for supporting OAuth .
37
37
- The
38
38
[ ` github.com/modelcontextprotocol/go-sdk/oauthex ` ] ( https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/oauthex )
39
39
package provides extensions to the OAuth protocol, such as ProtectedResourceMetadata.
@@ -78,7 +78,7 @@ func main() {
78
78
// Create a server with a single tool.
79
79
server := mcp.NewServer (&mcp.Implementation {Name: " greeter" , Version: " v1.0.0" }, nil )
80
80
mcp.AddTool (server, &mcp.Tool {Name: " greet" , Description: " say hi" }, SayHi)
81
- // Run the server over stdin/stdout, until the client disconnects
81
+ // Run the server over stdin/stdout, until the client disconnects.
82
82
if err := server.Run (context.Background (), &mcp.StdioTransport {}); err != nil {
83
83
log.Fatal (err)
84
84
}
@@ -106,7 +106,7 @@ func main() {
106
106
// Create a new client, with no features.
107
107
client := mcp.NewClient (&mcp.Implementation {Name: " mcp-client" , Version: " v1.0.0" }, nil )
108
108
109
- // Connect to a server over stdin/stdout
109
+ // Connect to a server over stdin/stdout.
110
110
transport := &mcp.CommandTransport {Command: exec.Command (" myserver" )}
111
111
session , err := client.Connect (ctx, transport, nil )
112
112
if err != nil {
0 commit comments