| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Adds @deprecated JSDoc annotations to the runtime public API surface for roots, sampling, and logging, deprecated as of protocol version 2026-07-28 per SEP-2577. Reference spec types were already annotated in #2252; this covers the Server/Client/McpServer methods, ServerContext helpers, runtime capability schema fields, and the server/client guides. No behavior changes.
🦋 Changeset detectedLatest commit: e56b27c The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Sorry, something went wrong.
|
@modelcontextprotocol/client
npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/client@2268
npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/codemod@2268
npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/server@2268
npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/server-legacy@2268
npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/express@2268
npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/fastify@2268
npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/hono@2268
npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/node@2268 commit: e56b27c |
Sorry, something went wrong.
typedoc treats the resolved-but-undocumented {@linkcode *CapabilitiesSchema}
links as warnings, failing docs:check in CI.
There was a problem hiding this comment.
lgtm, thanks!
Sorry, something went wrong.
… stacks (SEP-2596 Tier-1) Finishes the runtime-surface @deprecated sweep started by #2268, mirroring the markers already present on the per-revision reference types (spec.types.2026-07-28.ts). JSDoc only — no wire/behavior change; everything remains fully functional during the deprecation window. - Logging type stack: LoggingLevel, SetLevelRequest(+Params), LoggingMessageNotification(+Params) — schemas + type aliases - Sampling type stack: ModelHint, ModelPreferences, ToolChoice, ToolUseContent, ToolResultContent, SamplingContent, SamplingMessage(+ContentBlock), CreateMessageRequest(+Params/+Result/ +ResultWithTools/+ParamsBase/+ParamsWithTools) — schemas + type aliases - includeContext: mark thisServer/allServers values @deprecated (SEP-2596) - Roots type stack: Root, ListRootsRequest/Result, RootsListChangedNotification — schemas + type aliases - registerClient: DCR @deprecated in favor of Client ID Metadata Documents (SEP-991); marker only, mechanics unchanged Push-style server-to-client request APIs (Server.ping/createMessage/ elicitInput/listRoots, ServerContext.mcpReq.elicitInput/requestSampling) intentionally untouched — handled separately on impl/deprecated-push-apis.
… stacks (SEP-2596 Tier-1) Finishes the runtime-surface @deprecated sweep started by #2268, mirroring the markers already present on the per-revision reference types (spec.types.2026-07-28.ts). JSDoc only — no wire/behavior change; everything remains fully functional during the deprecation window. - Logging type stack: LoggingLevel, SetLevelRequest(+Params), LoggingMessageNotification(+Params) — schemas + type aliases - Sampling type stack: ModelHint, ModelPreferences, ToolChoice, ToolUseContent, ToolResultContent, SamplingContent, SamplingMessage(+ContentBlock), CreateMessageRequest(+Params/+Result/ +ResultWithTools/+ParamsBase/+ParamsWithTools) — schemas + type aliases - includeContext: mark thisServer/allServers values @deprecated (SEP-2596) - Roots type stack: Root, ListRootsRequest/Result, RootsListChangedNotification — schemas + type aliases - registerClient: DCR @deprecated in favor of Client ID Metadata Documents (SEP-991); marker only, mechanics unchanged Push-style server-to-client request APIs (Server.ping/createMessage/ elicitInput/listRoots, ServerContext.mcpReq.elicitInput/requestSampling) intentionally untouched — handled separately on impl/deprecated-push-apis.
… stacks (SEP-2596 Tier-1) Finishes the runtime-surface @deprecated sweep started by #2268, mirroring the markers already present on the per-revision reference types (spec.types.2026-07-28.ts). JSDoc only — no wire/behavior change; everything remains fully functional during the deprecation window. - Logging type stack: LoggingLevel, SetLevelRequest(+Params), LoggingMessageNotification(+Params) — schemas + type aliases - Sampling type stack: ModelHint, ModelPreferences, ToolChoice, ToolUseContent, ToolResultContent, SamplingContent, SamplingMessage(+ContentBlock), CreateMessageRequest(+Params/+Result/ +ResultWithTools/+ParamsBase/+ParamsWithTools) — schemas + type aliases - includeContext: mark thisServer/allServers values @deprecated (SEP-2596) - Roots type stack: Root, ListRootsRequest/Result, RootsListChangedNotification — schemas + type aliases - registerClient: DCR @deprecated in favor of Client ID Metadata Documents (SEP-991); marker only, mechanics unchanged Push-style server-to-client request APIs (Server.ping/createMessage/ elicitInput/listRoots, ServerContext.mcpReq.elicitInput/requestSampling) intentionally untouched — handled separately on impl/deprecated-push-apis.
| Back | FazBrowse Home | New Git URL |
Summary
Implements the runtime-API portion of SEP-2577 (Deprecate Roots, Sampling, and Logging). Per the draft spec (docs/specification/draft/deprecated.mdx registry, plus the banners on client/roots.mdx, client/sampling.mdx, and server/utilities/logging.mdx), roots, sampling, and logging are deprecated as of protocol revision 2026-07-28, remain fully functional for at least twelve months, and are eligible for removal no earlier than the first revision on/after 2027-07-28.
The reference spec types in spec.types.2026-07-28.ts (plus LOG_LEVEL_META_KEY and the _meta log-level schema annotation) were already annotated in #2252. This PR completes the picture by annotating the runtime public API with matching @deprecated JSDoc, and adding deprecation callouts to the guides.
What's annotated
@modelcontextprotocol/server
@modelcontextprotocol/client
@modelcontextprotocol/core
Docs: deprecation callouts on the Logging, Sampling, and Roots sections of docs/server.md and docs/client.md, each with the spec's migration guidance (roots → tool parameters / resource URIs / configuration; sampling → direct LLM provider APIs; logging → stderr / OpenTelemetry).
Wording matches the #2252 annotations (Deprecated as of protocol version 2026-07-28 (SEP-2577), twelve-month window, deprecated features registry).
No behavior change
JSDoc and docs only. No removals, no runtime changes — all three features keep working exactly as before for the full deprecation window.
Validation
Downstream impact
Closes #2195