Deprecate roots, sampling, and logging APIs#1053
Open
arnabnandy7 wants to merge 1 commit into
Open
Conversation
Mark roots, sampling, and logging schema elements, client/server configuration APIs, and related runtime methods as deprecated for the 2026-07-28 MCP specification update. Keep behavior unchanged while surfacing standard Java deprecation warnings to downstream consumers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deprecate Roots, Sampling, and Logging APIs for SEP-2577.
Motivation and Context
Roots, Sampling, and Logging are deprecated in the 2026-07-28 MCP specification release. This change marks the corresponding Java SDK schema types, constants, client APIs, server APIs, and feature configuration surfaces as deprecated while keeping behavior unchanged.
How Has This Been Tested?
mvn clean installwas run with JDK 21 and Docker/Testcontainers enabled.:mcp-testafter an initial fork interruption.BUILD SUCCESS;mcp-testcompleted with 933 tests run, 0 failures, 0 errors, 0 skipped.Breaking Changes
None. This is a non-breaking deprecation-only change. Existing APIs remain functional but now emit Java deprecation warnings.
Types of changes
Checklist
Additional context
This change uses standard Java deprecation with
@Deprecatedand Javadoc@deprecatedtags. No runtime behavior was removed or altered.Resolves #1012