Title: Re-vendor 2026-07-28 schema at spec ead35b59 (SubscriptionsListenResult) by maxisbey · Pull Request #3006 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Re-vendor 2026-07-28 schema at spec ead35b59 (SubscriptionsListenResult) by maxisbey · Pull Request #3006 · modelcontextprotocol/python-sdk
X Title: Re-vendor 2026-07-28 schema at spec ead35b59 (SubscriptionsListenResult) by maxisbey · Pull Request #3006 · modelcontextprotocol/python-sdk
Description: Re-vendors schema/draft/schema.json at spec commit ead35b59 to pick up modelcontextprotocol/modelcontextprotocol#2953, the only schema/draft/ change since the previous vendor pin (2852f30e, set by #2912). Spec main is 20 commits past 2ffc3fa2 (#2953's merge) with no further schema/draft/ changes, so this brings the vendored schema fully up to date. The schema diff is purely additive: SubscriptionsListenResult and SubscriptionsListenResultMeta are added to $defs, and SubscriptionsListenResult joins the ServerResult union. Motivation and Context Part of #2901. The subscriptions/listen runtime work needs the result type to exist before it can land; today the lowlevel on_subscriptions_listen slot is typed to return EmptyResult, which is no longer the spec-correct shape post-#2953. How Has This Been Tested? gen_surface_types.py --check, pyright, ruff, and ./scripts/test (full suite, 100% coverage, strict-no-cover clean). Breaking Changes None for users — SubscriptionsListenResult is a new type and nothing previously consumed subscriptions/listen results. The lowlevel on_subscriptions_listen callback's return type changes from EmptyResult to SubscriptionsListenResult, but per the design that handler is registered by the entry-side router rather than user code, and there is no runtime caller yet. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context SubscriptionsListenResultMeta is added to OPEN_CLASSES so the generated wire model preserves arbitrary _meta keys, matching NotificationMetaObject (both are MetaObject extensions; neither carries additionalProperties in the upstream JSON Schema, so the codegen default would have closed them). In the monolith the new result follows the existing pattern: _meta stays the lenient dict[str, Any] inherited from Result (so SubscriptionsListenResultMeta is SKIP-listed in tests/types/test_parity.py alongside the other *MetaObject types), and the class sits in the ServerResult union immediately before InputRequiredResult, which must remain last. Conformance gap: the conformance suite at b18aa918 (this repo's pin and conformance main HEAD) is itself pinned to spec f817239f — pre-#2953 — and has no scenario asserting the subscriptions/listen result body. Its existing subscriptions/listen checks in server/stateless.ts only inspect notification frames on the stream. I'll raise a conformance issue to bump the spec-types pin and add a result-shape check; this PR does not change conformance behaviour either way (the new type is not yet emitted by any runtime path).
Open Graph Description: Re-vendors schema/draft/schema.json at spec commit ead35b59 to pick up modelcontextprotocol/modelcontextprotocol#2953, the only schema/draft/ change since the previous vendor pin (2852f30e, set by ...
X Description: Re-vendors schema/draft/schema.json at spec commit ead35b59 to pick up modelcontextprotocol/modelcontextprotocol#2953, the only schema/draft/ change since the previous vendor pin (2852f30e, set by ...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/3006
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7810ce56-f400-d9b4-bcba-c9c1bf64e8e5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 93B8:19AF76:282B22:34231A:6A5AB82D |
| html-safe-nonce | fcd9d260c34a931a572eaf9da52351df777eb6a4c372ae06f8a1665517e165ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0I4OjE5QUY3NjoyODJCMjI6MzQyMzFBOjZBNUFCODJEIiwidmlzaXRvcl9pZCI6IjMyMzAxNTQ1NjA0Njg4NTg5MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | df86e42a74bbd36ade9fb516ef7b9b241ea3709cae36f6499b05ffd9a2ab0942 |
| hovercard-subject-tag | pull_request:3945036288 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/3006/files |
| twitter:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| og:image:alt | Re-vendors schema/draft/schema.json at spec commit ead35b59 to pick up modelcontextprotocol/modelcontextprotocol#2953, the only schema/draft/ change since the previous vendor pin (2852f30e, set by ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2702febe50e53f9152dda552dc2049a5eb182778b2655abd5b8619e82e899b4a |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c0211a077f9b056c5e115f996d9049616d85c3b5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width