[Schema][Client][Server] Deprecate Roots, Sampling and Logging (SEP-2577) - #427
Merged
chr-hertel merged 2 commits intoAug 17, 2026
Conversation
chr-hertel
requested review from
CodeWithKyrian,
Nyholm and
soyuka
as code owners
August 17, 2026 23:11
chr-hertel
force-pushed
the
deprecate-roots-sampling-logging
branch
from
August 17, 2026 23:19
2394348 to
a1d01d6
Compare
chr-hertel
force-pushed
the
deprecate-roots-sampling-logging
branch
from
August 17, 2026 23:20
a1d01d6 to
71da843
Compare
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.
Implements SEP-2577 (deprecating Roots, Sampling and Logging as of protocol revision
2026-07-28, earliest removal2027-07-28) following the Tier 1 SDK obligations in SEP-2596:@deprecatedtags on the schema, client and server surface of the three features, each referencing the SEP, the earliest removal date and the suggested migration.ClientGateway::log()/sample()/listRoots(), or registering a client-sideSamplingRequestHandler,ListRootsRequestHandlerorLoggingNotificationHandler— viatrigger_deprecation()(symfony/deprecation-contracts, silencedE_USER_DEPRECATED), so it surfaces in phpunit-bridge / debug tooling without noise in production. Deliberately not on capability advertisement:loggingis always advertised, and a server should not warn because the client declaredroots/sampling.server-client-communication.md,mcp-elements.mdandclient.md.Not included: the
disableDeprecatedFeatures()opt-out floated in #365 — nothing in the spec asks for it and it is an independent feature if anyone needs it.Everything remains fully functional until removal.
Closes #365