Skip to content

docs: annotate Roots, Sampling, and Logging as deprecated per SEP-2577#429

Merged
koic merged 1 commit into
modelcontextprotocol:mainfrom
atesgoral:issue-390-deprecation-annotations
Jun 27, 2026
Merged

docs: annotate Roots, Sampling, and Logging as deprecated per SEP-2577#429
koic merged 1 commit into
modelcontextprotocol:mainfrom
atesgoral:issue-390-deprecation-annotations

Conversation

@atesgoral

Copy link
Copy Markdown
Contributor

TL;DR

Add advisory YARD @deprecated annotations for the Roots, Sampling, and Logging APIs deprecated by SEP-2577, without the protocol-version-gated runtime behavior change.

Context

SEP-2577 deprecates Roots, Sampling, and Logging in the 2026-07-28 protocol version. This PR splits the advisory annotations out of #406 per @koic's feedback, so the documentation can land now while the behavioral switch waits until the 2026-07-28 release is closer.

Refs #390

Changes

  • Add YARD @deprecated notes to the server, server-context, and server-session APIs for roots (roots_list_changed_handler, list_roots), sampling (create_sampling_message), and logging (notify_log_message).
  • Update the changelog.

Deliberately not included (deferred to a follow-up once 2026-07-28 is closer to release):

  • Adding 2026-07-28 to SUPPORTED_STABLE_PROTOCOL_VERSIONS.
  • The protocol-version-gated Kernel.warn runtime warnings and the ProtocolDeprecations helper.

Testing

Docs-only change (YARD comments + changelog). No behavior change; relies on CI for lint/test validation.

Split the advisory YARD @deprecated annotations out of modelcontextprotocol#406 so the
documentation can land ahead of the 2026-07-28 protocol release.

Per maintainer feedback, this drops the protocol-version-gated runtime
Kernel.warn behavior and the new 2026-07-28 supported protocol version,
leaving only the @deprecated notes for the Roots, Sampling, and Logging
APIs deprecated by SEP-2577.

Refs modelcontextprotocol#390

Co-authored-by: 🦞 Qlaw <noreply@qlaw.quick.shopify.io>
@koic koic merged commit 5518e8d into modelcontextprotocol:main Jun 27, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants