mcp: Deprecate roots, sampling and logging (SEP-2577) (#1017)
Fixes #1013
This commit is contained in:
parent
cd7d80c591
commit
b6649db4f9
3 changed files with 320 additions and 25 deletions
|
|
@ -4,6 +4,13 @@
|
|||
|
||||
## Roots
|
||||
|
||||
> **Note:** The roots feature is deprecated as of protocol version 2026-07-28
|
||||
> ([SEP-2577](https://modelcontextprotocol.io/seps/2577-deprecate-roots-sampling-and-logging)).
|
||||
> It remains fully functional during the deprecation window (at least twelve
|
||||
> months). The SDK continues to support roots for compatibility. New code
|
||||
> should pass paths via tool parameters, resource URIs, or configuration
|
||||
> instead.
|
||||
|
||||
MCP allows clients to specify a set of filesystem
|
||||
["roots"](https://modelcontextprotocol.io/specification/2025-06-18/client/roots).
|
||||
The SDK supports this as follows:
|
||||
|
|
@ -26,6 +33,13 @@ method. To receive notifications about root changes, set
|
|||
|
||||
## Sampling
|
||||
|
||||
> **Note:** The sampling feature is deprecated as of protocol version
|
||||
> 2026-07-28
|
||||
> ([SEP-2577](https://modelcontextprotocol.io/seps/2577-deprecate-roots-sampling-and-logging)).
|
||||
> It remains fully functional during the deprecation window (at least twelve
|
||||
> months). The SDK continues to support sampling for compatibility. Servers
|
||||
> that need LLM completions should call LLM provider APIs directly.
|
||||
|
||||
[Sampling](https://modelcontextprotocol.io/specification/2025-06-18/client/sampling)
|
||||
is a way for servers to leverage the client's AI capabilities. It is
|
||||
implemented in the SDK as follows:
|
||||
|
|
|
|||
|
|
@ -236,6 +236,13 @@ requests.
|
|||
|
||||
### Logging
|
||||
|
||||
> **Note:** The logging feature is deprecated as of protocol version
|
||||
> 2026-07-28
|
||||
> ([SEP-2577](https://modelcontextprotocol.io/seps/2577-deprecate-roots-sampling-and-logging)).
|
||||
> It remains fully functional during the deprecation window (at least twelve
|
||||
> months). The SDK continues to support logging for compatibility. Servers
|
||||
> should migrate to stderr logging (for STDIO transports) or OpenTelemetry.
|
||||
|
||||
MCP servers can send logging messages to MCP clients.
|
||||
(This form of logging is distinct from server-side logging, where the
|
||||
server produces logs that remain server-side, for use by server maintainers.)
|
||||
|
|
|
|||
|
|
@ -43,6 +43,13 @@ The following table shows which versions of the Go SDK support which versions of
|
|||
|
||||
\*\* Partial support for 2025-11-25 (client side OAuth and Sampling with tools not available).
|
||||
|
||||
The roots, sampling, and logging features are deprecated as of protocol version
|
||||
2026-07-28 by
|
||||
[SEP-2577](https://modelcontextprotocol.io/seps/2577-deprecate-roots-sampling-and-logging).
|
||||
The SDK continues to support them for compatibility during the deprecation
|
||||
window (at least twelve months). See the individual feature documentation for
|
||||
migration guidance.
|
||||
|
||||
New releases of the SDK target only supported versions of Go. See
|
||||
https://go.dev/doc/devel/release#policy for more information.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue