11<!-- Autogenerated by weave; DO NOT EDIT -->
2- # MCP Go SDK v0.5 .0
2+ # MCP Go SDK v0.6 .0
33
44[ ![ Open in GitHub Codespaces] ( https://github.com/codespaces/badge.svg )] ( https://codespaces.new/modelcontextprotocol/go-sdk )
55
66*** BREAKING CHANGES***
77
8- This version contains breaking changes.
8+ This version contains minor breaking changes.
99See the [ release notes] (
10- https://github.com/modelcontextprotocol/go-sdk/releases/tag/v0.5 .0 ) for details.
10+ https://github.com/modelcontextprotocol/go-sdk/releases/tag/v0.6 .0 ) for details.
1111
1212[ ![ PkgGoDev] ( https://pkg.go.dev/badge/github.com/modelcontextprotocol/go-sdk )] ( https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk )
1313
14- This repository contains an unreleased implementation of the official Go
15- software development kit (SDK) for the Model Context Protocol (MCP).
14+ This repository contains an implementation of the official Go software
15+ development kit (SDK) for the Model Context Protocol (MCP).
1616
17- > [ !WARNING]
18- > The SDK is not yet at v1.0.0 and may still be subject to incompatible API
19- > changes. We aim to tag v1.0.0 in September, 2025. See
20- > https://github.com/modelcontextprotocol/go-sdk/issues/328 for details.
17+ > [ !IMPORTANT]
18+ > The SDK is in release-candidate state, and is going to be tagged v1.0.0
19+ > soon (see https://github.com/modelcontextprotocol/go-sdk/issues/328 ).
20+ > We do not anticipate significant API changes or instability. Please use it
21+ > and [ file issues] ( https://github.com/modelcontextprotocol/go-sdk/issues/new/choose ) .
2122
22- ## Package documentation
23+ ## Package / Feature documentation
2324
2425The SDK consists of several importable packages:
2526
@@ -33,11 +34,13 @@ The SDK consists of several importable packages:
3334- The
3435 [ ` github.com/modelcontextprotocol/go-sdk/auth ` ] ( https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/auth )
3536 package provides some primitives for supporting oauth.
36-
3737- The
3838 [ ` github.com/modelcontextprotocol/go-sdk/oauthex ` ] ( https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/oauthex )
3939 package provides extensions to the OAuth protocol, such as ProtectedResourceMetadata.
4040
41+ The SDK endeavors to implement the full MCP spec. The [ ` docs/ ` ] ( /docs/ ) directory
42+ contains feature documentation, mapping the MCP spec to the packages above.
43+
4144## Getting started
4245
4346To get started creating an MCP server, create an ` mcp.Server ` instance, add
@@ -63,7 +66,11 @@ type Output struct {
6366 Greeting string ` json:"greeting" jsonschema:"the greeting to tell to the user"`
6467}
6568
66- func SayHi (ctx context .Context , req *mcp .CallToolRequest , input Input ) (*mcp .CallToolResult , Output , error ) {
69+ func SayHi (ctx context .Context , req *mcp .CallToolRequest , input Input ) (
70+ *mcp.CallToolResult,
71+ Output,
72+ error,
73+ ) {
6774 return nil , Output{Greeting: " Hi " + input.Name }, nil
6875}
6976
@@ -78,9 +85,9 @@ func main() {
7885}
7986```
8087
81- To communicate with that server, we can similarly create an ` mcp.Client ` and
82- connect it to the corresponding server, by running the server command and
83- communicating over its stdin/stdout:
88+ To communicate with that server, create an ` mcp.Client ` and connect it to the
89+ corresponding server, by running the server command and communicating over its
90+ stdin/stdout:
8491
8592``` go
8693package main
@@ -128,24 +135,18 @@ func main() {
128135The [ ` examples/ ` ] ( /examples/ ) directory contains more example clients and
129136servers.
130137
131- ## Design
132-
133- The design doc for this SDK is at [ design.md] ( ./design/design.md ) , which was
134- initially reviewed at
135- [ modelcontextprotocol/discussions/364] ( https://github.com/orgs/modelcontextprotocol/discussions/364 ) .
138+ ## Contributing
136139
137- Further design discussion should occur in
138- [ issues] ( https://github.com/modelcontextprotocol/go-sdk/issues ) (for concrete
139- proposals) or
140- [ discussions] ( https://github.com/modelcontextprotocol/go-sdk/discussions ) for
141- open-ended discussion. See [ CONTRIBUTING.md] ( /CONTRIBUTING.md ) for details.
140+ We welcome contributions to the SDK! Please see See
141+ [ CONTRIBUTING.md] ( /CONTRIBUTING.md ) for details of how to contribute.
142142
143- ## Acknowledgements
143+ ## Acknowledgements / Alternatives
144144
145- Several existing Go MCP SDKs inspired the development and design of this
146- official SDK, notably [ mcp-go] ( https://github.com/mark3labs/mcp-go ) , authored
147- by Ed Zynda. We are grateful to Ed as well as the other contributors to mcp-go,
148- and to authors and contributors of other SDKs such as
145+ Several third party Go MCP SDKs inspired the development and design of this
146+ official SDK, and continue to be viable alternatives, notably
147+ [ mcp-go] ( https://github.com/mark3labs/mcp-go ) , originally authored by Ed Zynda.
148+ We are grateful to Ed as well as the other contributors to mcp-go, and to
149+ authors and contributors of other SDKs such as
149150[ mcp-golang] ( https://github.com/metoro-io/mcp-golang ) and
150151[ go-mcp] ( https://github.com/ThinkInAIXYZ/go-mcp ) . Thanks to their work, there
151152is a thriving ecosystem of Go MCP clients and servers.
0 commit comments