You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 94e8fef
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/client.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -247,6 +247,9 @@ var capabilities = ClientCapabilities.builder()
247
247
248
248
### Roots Support
249
249
250
+
!!! warning "Deprecated"
251
+
Roots are deprecated as of MCP protocol version 2026-07-28 ([SEP-2577](https://modelcontextprotocol.io/seps/2577-deprecate-roots-sampling-and-logging)) and may be removed from a protocol revision released on or after 2027-07-28. They still work unchanged in this SDK, and the methods that initiate them are marked `@Deprecated`. Pass directories or files to servers via tool parameters, resource URIs, or server configuration instead. See the [deprecated features registry](https://modelcontextprotocol.io/specification/2026-07-28/deprecated).
252
+
250
253
Roots define the boundaries of where servers can operate within the filesystem:
251
254
252
255
```java
@@ -268,6 +271,9 @@ The roots capability allows servers to:
268
271
269
272
### Sampling Support
270
273
274
+
!!! warning "Deprecated"
275
+
Sampling is deprecated as of MCP protocol version 2026-07-28 ([SEP-2577](https://modelcontextprotocol.io/seps/2577-deprecate-roots-sampling-and-logging)) and may be removed from a protocol revision released on or after 2027-07-28. It still works unchanged in this SDK, and the methods that initiate it are marked `@Deprecated`. Servers should integrate directly with LLM provider APIs instead. See the [deprecated features registry](https://modelcontextprotocol.io/specification/2026-07-28/deprecated).
276
+
271
277
Sampling enables servers to request LLM interactions ("completions" or "generations") through the client:
MCP logging is deprecated as of MCP protocol version 2026-07-28 ([SEP-2577](https://modelcontextprotocol.io/seps/2577-deprecate-roots-sampling-and-logging)) and may be removed from a protocol revision released on or after 2027-07-28. It still works unchanged in this SDK, and the methods that initiate it are marked `@Deprecated`. Servers should log to stderr (stdio transport) or use [OpenTelemetry](https://opentelemetry.io/) instead. See the [deprecated features registry](https://modelcontextprotocol.io/specification/2026-07-28/deprecated).
398
+
390
399
The client can register a logging consumer to receive log messages from the server and set the minimum logging level to filter messages:
Copy file name to clipboardExpand all lines: docs/server.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -846,6 +846,9 @@ Completions can be registered for both `PromptReference` and `ResourceReference`
846
846
847
847
### UsingSampling from a Server
848
848
849
+
!!! warning "Deprecated"
850
+
Sampling is deprecated as of MCP protocol version 2026-07-28 ([SEP-2577](https://modelcontextprotocol.io/seps/2577-deprecate-roots-sampling-and-logging)) and may be removed from a protocol revision released on or after 2027-07-28. It still works unchanged in this SDK, and the methods that initiate it are marked `@Deprecated`. Servers should integrate directly with LLM provider APIs instead. See the [deprecated features registry](https://modelcontextprotocol.io/specification/2026-07-28/deprecated).
851
+
849
852
To use [Sampling capabilities](https://modelcontextprotocol.io/specification/2025-11-25/client/sampling), connect to a client that supports sampling.
850
853
No special server configuration is needed, but verify client sampling support before making requests.
851
854
Learn about [client sampling support](client.md#sampling-support).
@@ -1097,6 +1100,9 @@ The async equivalent, `McpAsyncServerExchange.ping()`, returns a `Mono<Object>`
1097
1100
1098
1101
### LoggingSupport
1099
1102
1103
+
!!! warning "Deprecated"
1104
+
MCP logging is deprecated as of MCP protocol version 2026-07-28 ([SEP-2577](https://modelcontextprotocol.io/seps/2577-deprecate-roots-sampling-and-logging)) and may be removed from a protocol revision released on or after 2027-07-28. It still works unchanged in this SDK, and the methods that initiate it are marked `@Deprecated`. Servers should log to stderr (stdio transport) or use [OpenTelemetry](https://opentelemetry.io/) instead. See the [deprecated features registry](https://modelcontextprotocol.io/specification/2026-07-28/deprecated).
1105
+
1100
1106
The server provides structured logging capabilities that allow sending log messages to clients with different severity levels.
1101
1107
Log notifications can only be sent from within an existing client session, such as tools, resources, and prompts calls.
0 commit comments