Title: MCPServer as a thin composition of the 2026 helpers · Issue #2897 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: MCPServer as a thin composition of the 2026 helpers · Issue #2897 · modelcontextprotocol/python-sdk
X Title: MCPServer as a thin composition of the 2026 helpers · Issue #2897 · modelcontextprotocol/python-sdk
Description: MCPServer composes the public helpers from the feature issues (MRTR, caching hints, HTTP headers, subscriptions/listen — and the existing schema-inference / registry helpers) into the high-level decorator API — thin, not a monolith with ...
Open Graph Description: MCPServer composes the public helpers from the feature issues (MRTR, caching hints, HTTP headers, subscriptions/listen — and the existing schema-inference / registry helpers) into the high-level de...
X Description: MCPServer composes the public helpers from the feature issues (MRTR, caching hints, HTTP headers, subscriptions/listen — and the existing schema-inference / registry helpers) into the high-level de...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/2897
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MCPServer as a thin composition of the 2026 helpers","articleBody":"`MCPServer` composes the public helpers from the feature issues (MRTR, caching hints, HTTP headers, subscriptions/listen — and the existing schema-inference / registry helpers) into the high-level decorator API — thin, not a monolith with private machinery. Someone using lowlevel `Server` should be able to reach for the same building blocks.\n\n## What's in it\n\n- Compose the public helpers: tool/resource/prompt registries, schema inference, cache hints, `x-mcp-header` annotations, MRTR signaling, listen publishing — exposed via `@server.tool()` / `@resource()` / `@prompt()` kwargs and ctx verbs.\n- **Design needed:** how `MCPServer` presents MRTR and `subscriptions/listen` given the stateless/distributed nature of 2026 — there's no per-connection state to lean on and servers may be horizontally scaled (e.g. where does `requestState` live between rounds; how do listen publishers reach a stream that might be on another instance).\n- Keep `MCPServer` itself thin: anything it does should be a public helper a lowlevel-`Server` user could call directly.\n\n## Conformance\n\n- (SDK API surface — proven via in-repo / interaction tests)\n\n## Dependencies\n\n- Depends on: #2895\n- Depends on: #2898\n- Depends on: #2899\n- Depends on: #2900\n- Depends on: #2901\n\n## References\n\n- [python-sdk MCPServer](https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/server/mcpserver/server.py)\n","author":{"url":"https://github.com/maxisbey","@type":"Person","name":"maxisbey"},"datePublished":"2026-06-17T11:12:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2897/python-sdk/issues/2897"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:627fa5b5-d09c-5d3c-51e6-37ea3cf80d31 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90EE:3F1BD1:1DAA2D1:2AA5068:6A58D398 |
| html-safe-nonce | 834d9b6eaf8b6a0746ab8fe2e7802f36adc91c7f4b97ef52fe972012ea21956c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEVFOjNGMUJEMToxREFBMkQxOjJBQTUwNjg6NkE1OEQzOTgiLCJ2aXNpdG9yX2lkIjoiNzA3OTUzNjg3NTE2MjYyMDgyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 844395e7ce5f85d95bbb63b5e215182af5ecc05e6808329864604bde1911ad47 |
| hovercard-subject-tag | issue:4682674575 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/modelcontextprotocol/python-sdk/2897/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dd36c4450048d5a25617df93499c3ab8a5e5a34a383ff6e3939f6d00a41d6265/modelcontextprotocol/python-sdk/issues/2897 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dd36c4450048d5a25617df93499c3ab8a5e5a34a383ff6e3939f6d00a41d6265/modelcontextprotocol/python-sdk/issues/2897 |
| og:image:alt | MCPServer composes the public helpers from the feature issues (MRTR, caching hints, HTTP headers, subscriptions/listen — and the existing schema-inference / registry helpers) into the high-level de... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxisbey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width