README for v0.2.0 (#118)

Preliminary readme for v0.2.0.

We will make a GH "release" with the release notes.
This commit is contained in:
Jonathan Amsterdam 2025-07-11 08:08:14 -04:00 • committed by GitHub
commit 78a66a438a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,20 +1,11 @@
<!-- Autogenerated by weave; DO NOT EDIT -->
# MCP Go SDK
# MCP Go SDK v0.2.0
***BREAKING CHANGES***
The latest version contains breaking changes:
- Server.AddTools is replaced by Server.AddTool.
- NewServerTool is replaced by AddTool. AddTool takes a Tool rather than a name and description, so you can
set any field on the Tool that you want before associating it with a handler.
- Tool options have been removed. If you don't want AddTool to infer a JSON Schema for you, you can construct one
as a struct literal, or using any other code that suits you.
- AddPrompts, AddResources and AddResourceTemplates are similarly replaced by singular methods which pair the
feature with a handler. The ServerXXX types have been removed.
This version contains breaking changes.
See the [release notes](
https://github.com/modelcontextprotocol/go-sdk/releases/tag/v0.2.0) for details.
[![PkgGoDev](https://pkg.go.dev/badge/github.com/modelcontextprotocol/go-sdk)](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk)
@ -41,7 +32,7 @@ open-ended discussion. See CONTRIBUTING.md for details.
## Package documentation
The SDK consists of two importable packages:
The SDK consists of three importable packages:
- The
[`github.com/modelcontextprotocol/go-sdk/mcp`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp)
@ -51,6 +42,10 @@ The SDK consists of two importable packages:
[`github.com/modelcontextprotocol/go-sdk/jsonschema`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/jsonschema)
package provides an implementation of [JSON
Schema](https://json-schema.org/), used for MCP tool input and output schema.
- The
[`github.com/modelcontextprotocol/jsonrpc`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/jsonschema) package is for users implementing
their own transports.
## Example