Skip to content

Commit 28ead14

Browse files
committed
update readme
1 parent 6d1ff20 commit 28ead14

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
<!-- Autogenerated by weave; DO NOT EDIT -->
22
# MCP Go SDK
33

4+
***BREAKING CHANGES***
5+
6+
The latest version contains breaking changes:
7+
8+
- Server.AddTools is replaced by Server.AddTool.
9+
10+
- NewServerTool is replaced by AddTool. AddTool takes a Tool rather than a name and description, so you can
11+
set any field on the Tool that you want before associating it with a handler.
12+
13+
- ToolOptions are gone. If you don't want AddTool to infer a JSON Schema for you, you can construct one
14+
as a struct literal.
15+
16+
- AddPrompts, AddResources and AddResourceTemplates are similarly replaced by singular methods which pair the
17+
feature with a handler. The ServerXXX types have been removed.
18+
419
[![PkgGoDev](https://pkg.go.dev/badge/github.com/modelcontextprotocol/go-sdk)](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk)
520

621
This repository contains an unreleased implementation of the official Go

internal/readme/README.src.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# MCP Go SDK
22

3+
***BREAKING CHANGES***
4+
5+
The latest version contains breaking changes:
6+
7+
- Server.AddTools is replaced by Server.AddTool.
8+
9+
- NewServerTool is replaced by AddTool. AddTool takes a Tool rather than a name and description, so you can
10+
set any field on the Tool that you want before associating it with a handler.
11+
12+
- ToolOptions are gone. If you don't want AddTool to infer a JSON Schema for you, you can construct one
13+
as a struct literal.
14+
15+
- AddPrompts, AddResources and AddResourceTemplates are similarly replaced by singular methods which pair the
16+
feature with a handler. The ServerXXX types have been removed.
17+
318
[![PkgGoDev](https://pkg.go.dev/badge/github.com/modelcontextprotocol/go-sdk)](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk)
419

520
This repository contains an unreleased implementation of the official Go

0 commit comments

Comments
 (0)