Title: New Client (all-versions, low-level + high-level) · Issue #2894 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: New Client (all-versions, low-level + high-level) · Issue #2894 · modelcontextprotocol/python-sdk
X Title: New Client (all-versions, low-level + high-level) · Issue #2894 · modelcontextprotocol/python-sdk
Description: The reworked Client that speaks every version: a connect sequence that probes server/discover and falls back to initialize, stamps the _meta envelope on modern requests, and exposes both a low-level interface (raw requests, handle MRTR y...
Open Graph Description: The reworked Client that speaks every version: a connect sequence that probes server/discover and falls back to initialize, stamps the _meta envelope on modern requests, and exposes both a low-leve...
X Description: The reworked Client that speaks every version: a connect sequence that probes server/discover and falls back to initialize, stamps the _meta envelope on modern requests, and exposes both a low-leve...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/2894
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New Client (all-versions, low-level + high-level)","articleBody":"The reworked Client that speaks every version: a connect sequence that probes `server/discover` and falls back to `initialize`, stamps the `_meta` envelope on modern requests, and exposes both a low-level interface (raw requests, handle MRTR yourself) and a high-level one (negotiation/MRTR/etc. handled). Relationship to `ClientSession` is part of this design.\n\n## What's in it\n\n- Low-level + high-level interface; relationship to `ClientSession` (replaces? wraps? grows 2026 under the hood?).\n- Connect sequence: probe `server/discover` → fall back to legacy `initialize`; cache era per origin.\n- Stamp the `_meta` envelope on every modern request.\n- Emit `Mcp-Method` / `Mcp-Name` / `Mcp-Param-*` on modern HTTP (consumes the helpers from #2900).\n- Own the client-side wiring of the MRTR loop (_MRTR (multi-round-trip requests)_), listen stream (_subscriptions/listen_), and caching parse (_Caching hints (ttlMs / cacheScope)_) — those issues supply the helpers.\n- Never send session-id / open GET / DELETE against modern servers.\n\n## Conformance\n\n- `request-metadata`\n- `http-standard-headers` (runs and passes, not skips)\n- `http-custom-headers`, `http-invalid-tool-headers` (with #2900)\n- `sep-2322-client-request-state` (with #2898)\n\n## Dependencies\n\n- Depends on: #2892\n\n## References\n\n- [Versioning](https://modelcontextprotocol.io/specification/draft/basic/versioning)\n- [server/discover](https://modelcontextprotocol.io/specification/draft/server/discover)\n- [SEP-2575](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2575)\n- [client/request-metadata.ts](https://github.com/modelcontextprotocol/conformance/blob/main/src/scenarios/client/request-metadata.ts)\n","author":{"url":"https://github.com/maxisbey","@type":"Person","name":"maxisbey"},"datePublished":"2026-06-17T11:11:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2894/python-sdk/issues/2894"}
| 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:dd4bc3f5-ad6c-28e8-78c0-cd9dd2e59941 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B65E:1580BD:1CAA548:28DB0D0:6A58E6BD |
| html-safe-nonce | d8a2aa219c6e477aa8767255c378240f8f1bc0bf556a55e0ebbf5dd8b8ed1c94 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjVFOjE1ODBCRDoxQ0FBNTQ4OjI4REIwRDA6NkE1OEU2QkQiLCJ2aXNpdG9yX2lkIjoiODg4ODYwODk0MzY2ODYwMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3857547dee9887be1279ce6433a29593c47997efbaf6c10af85c22182f552d20 |
| hovercard-subject-tag | issue:4682673407 |
| 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/2894/issue_layout |
| twitter:image | https://opengraph.githubassets.com/42d2e9b692f1abf33388387af75175f25f50142c24787adcc4108b9d608d2cae/modelcontextprotocol/python-sdk/issues/2894 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/42d2e9b692f1abf33388387af75175f25f50142c24787adcc4108b9d608d2cae/modelcontextprotocol/python-sdk/issues/2894 |
| og:image:alt | The reworked Client that speaks every version: a connect sequence that probes server/discover and falls back to initialize, stamps the _meta envelope on modern requests, and exposes both a low-leve... |
| 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