René's URL Explorer Experiment


Title: Implement SEP-2567: Sessionless MCP via Explicit State Handles · Issue #870 · modelcontextprotocol/rust-sdk · GitHub

Open Graph Title: Implement SEP-2567: Sessionless MCP via Explicit State Handles · Issue #870 · modelcontextprotocol/rust-sdk

X Title: Implement SEP-2567: Sessionless MCP via Explicit State Handles · Issue #870 · modelcontextprotocol/rust-sdk

Description: SEP-2567: Sessionless MCP via Explicit State Handles — rust-sdk implementation Spec PR: modelcontextprotocol/modelcontextprotocol#2567 Track: Specification · Stage: final · Priority: P0 · Theme: Transport Evolution and Scalability Needs ...

Open Graph Description: SEP-2567: Sessionless MCP via Explicit State Handles — rust-sdk implementation Spec PR: modelcontextprotocol/modelcontextprotocol#2567 Track: Specification · Stage: final · Priority: P0 · Theme: Tr...

X Description: SEP-2567: Sessionless MCP via Explicit State Handles — rust-sdk implementation Spec PR: modelcontextprotocol/modelcontextprotocol#2567 Track: Specification · Stage: final · Priority: P0 · Theme: Tr...

Opengraph URL: https://github.com/modelcontextprotocol/rust-sdk/issues/870

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement SEP-2567: Sessionless MCP via Explicit State Handles","articleBody":"# SEP-2567: Sessionless MCP via Explicit State Handles — rust-sdk implementation\n\n**Spec PR:** https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2567\n**Track:** Specification · **Stage:** final · **Priority:** P0 · **Theme:** Transport Evolution and Scalability\n**Needs code changes:** Yes (Large)\n\n## Summary\nRemoves protocol-level sessions, replacing implicit session-scoped state with explicit,\nserver-minted **state handles**. Builds on SEP-1442 (stateless-by-default) but argues the opt-in\nstateful path should not exist at all.\n\nWhat changes:\n- No `session/create`, `session/destroy`, or `Mcp-Session-Id` header.\n- `tools/list` / `resources/list` / `prompts/list` **MUST NOT** depend on per-connection or prior-tool-call state (so list endpoints become cacheable at `(deployment, auth)` granularity).\n- Stateful workflows use `create_*() -\u003e handle` + threaded parameters (guidance, not a protocol construct).\n\n## Why this needs code changes in rust-sdk\nThe streamable HTTP transport mints and threads a session id today, but a disable path already\nexists:\n- Server: `StreamableHttpServerConfig.stateful_mode` (default `true`); when `false` the server \"disables sessions entirely (stateless mode)\" per the doc comment, backed by the `SessionManager`/`SessionStore` trait (`session.rs`, with `Local…`/`Never…` stores and `RestoreOutcome`/`SessionRestoreMarker`). The session id rides on `HEADER_SESSION_ID`.\n- Client: `streamable_http_client.rs` carries `session_id: Arc\u003cstr\u003e` through requests and SSE reconnects.\n- List handlers live behind `service/server.rs` + `handler/server/router.rs`.\n\nSo \"no sessions\" is partly reachable via `stateful_mode = false`. The remaining work is: making that\npath the default/clean one for `V_2026_07_28`, ensuring list endpoints are state-independent, and\nremoving the client's hard dependency on a session id.\n\n## Proposed work\n- [ ] Ensure the `stateful_mode = false` server path neither requires nor emits `HEADER_SESSION_ID`, and verify the `Never…`-store path is the one selected.\n- [ ] Audit `tools/list` / `resources/list` / `prompts/list` handlers (`handler/server/router.rs`) so results don't depend on per-connection or prior-call state in the sessionless path (precondition for the SEP-2549 caching story).\n- [ ] Make the client's `session_id` optional (`Option\u003cArc\u003cstr\u003e\u003e`) so it can operate without one when the negotiated version is `V_2026_07_28`; keep sending it for older negotiated versions.\n- [ ] Keep `HEADER_SESSION_ID` handling for back-compat behind older protocol versions.\n- [ ] Add an example demonstrating the `create_*() -\u003e handle` pattern (state handles are app-level, not a protocol construct).\n\n## Affected areas\n`transport/streamable_http_server/session.rs`, `transport/streamable_http_server/tower.rs`,\n`transport/streamable_http_client.rs`, `service/server.rs`, `handler/server/router.rs`.\n\n## Notes / risks\n- Overlaps heavily with SEP-2575. Treat as one transport-statelessness workstream; this SEP is the application-state half, 2575 is the handshake half.\n- Making client `session_id` optional touches several `Arc\u003cstr\u003e` call sites in `streamable_http_client.rs` (reconnect/get-stream paths) — mechanical but broad.\n\n---\n## Related existing issues\n- #863 — Expose negotiated `Mcp-Session-Id` (sessionless work changes how session identity is surfaced)\n- #526 — SEP-1442 Make MCP Stateless (same transport-statelessness workstream)\n","author":{"url":"https://github.com/alexhancock","@type":"Person","name":"alexhancock"},"datePublished":"2026-06-02T16:01:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/870/rust-sdk/issues/870"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:294935bb-1728-9881-c10c-ac9616d47a3c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9B48:2437B8:18D898E:21D5033:6A652B0F
html-safe-nonced90687f323012264f4504050f8326e37041455bb1768f55d75af39633f012081
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjQ4OjI0MzdCODoxOEQ4OThFOjIxRDUwMzM6NkE2NTJCMEYiLCJ2aXNpdG9yX2lkIjoiODY1OTM2Mjg4NjE1Mzc0MzExOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacaacab3fdca0935cdd93ecc55882f3f170471af021cb84f84785d4635d94cab2b
hovercard-subject-tagissue:4573024198
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/rust-sdk/870/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b56e1b2ffdc17550dc5630c12335cd53793aa2a1a6c7b76cb5c3e4e9be1cb2f7/modelcontextprotocol/rust-sdk/issues/870
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b56e1b2ffdc17550dc5630c12335cd53793aa2a1a6c7b76cb5c3e4e9be1cb2f7/modelcontextprotocol/rust-sdk/issues/870
og:image:altSEP-2567: Sessionless MCP via Explicit State Handles — rust-sdk implementation Spec PR: modelcontextprotocol/modelcontextprotocol#2567 Track: Specification · Stage: final · Priority: P0 · Theme: Tr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealexhancock
hostnamegithub.com
expected-hostnamegithub.com
None52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b
turbo-cache-controlno-preview
go-importgithub.com/modelcontextprotocol/rust-sdk git https://github.com/modelcontextprotocol/rust-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id934753959
octolytics-dimension-repository_nwomodelcontextprotocol/rust-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id934753959
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/rust-sdk
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release309153364422b3c499922d1a2a6404910a58ed8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/rust-sdk/issues/870#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Frust-sdk%2Fissues%2F870
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Frust-sdk%2Fissues%2F870
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=modelcontextprotocol%2Frust-sdk
Reloadhttps://github.com/modelcontextprotocol/rust-sdk/issues/870
Reloadhttps://github.com/modelcontextprotocol/rust-sdk/issues/870
Reloadhttps://github.com/modelcontextprotocol/rust-sdk/issues/870
Please reload this pagehttps://github.com/modelcontextprotocol/rust-sdk/issues/870
modelcontextprotocol https://github.com/modelcontextprotocol
rust-sdkhttps://github.com/modelcontextprotocol/rust-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Frust-sdk
Fork 572 https://github.com/login?return_to=%2Fmodelcontextprotocol%2Frust-sdk
Star 3.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Frust-sdk
Code https://github.com/modelcontextprotocol/rust-sdk
Issues 20 https://github.com/modelcontextprotocol/rust-sdk/issues
Pull requests 8 https://github.com/modelcontextprotocol/rust-sdk/pulls
Discussions https://github.com/modelcontextprotocol/rust-sdk/discussions
Actions https://github.com/modelcontextprotocol/rust-sdk/actions
Projects https://github.com/modelcontextprotocol/rust-sdk/projects
Models https://github.com/modelcontextprotocol/rust-sdk/models
Security and quality 5 https://github.com/modelcontextprotocol/rust-sdk/security
Insights https://github.com/modelcontextprotocol/rust-sdk/pulse
Code https://github.com/modelcontextprotocol/rust-sdk
Issues https://github.com/modelcontextprotocol/rust-sdk/issues
Pull requests https://github.com/modelcontextprotocol/rust-sdk/pulls
Discussions https://github.com/modelcontextprotocol/rust-sdk/discussions
Actions https://github.com/modelcontextprotocol/rust-sdk/actions
Projects https://github.com/modelcontextprotocol/rust-sdk/projects
Models https://github.com/modelcontextprotocol/rust-sdk/models
Security and quality https://github.com/modelcontextprotocol/rust-sdk/security
Insights https://github.com/modelcontextprotocol/rust-sdk/pulse
#999https://github.com/modelcontextprotocol/rust-sdk/pull/999
Implement SEP-2567: Sessionless MCP via Explicit State Handleshttps://github.com/modelcontextprotocol/rust-sdk/issues/870#top
#999https://github.com/modelcontextprotocol/rust-sdk/pull/999
https://github.com/alexhancock
2026-07-28https://github.com/modelcontextprotocol/rust-sdk/issues?q=state%3Aopen%20label%3A%222026-07-28%22
P1High: significant functionality gap or spec violationhttps://github.com/modelcontextprotocol/rust-sdk/issues?q=state%3Aopen%20label%3A%22P1%22
T-coreCore library changeshttps://github.com/modelcontextprotocol/rust-sdk/issues?q=state%3Aopen%20label%3A%22T-core%22
T-enhancementNew features and enhancementshttps://github.com/modelcontextprotocol/rust-sdk/issues?q=state%3Aopen%20label%3A%22T-enhancement%22
T-transportTransport layer changeshttps://github.com/modelcontextprotocol/rust-sdk/issues?q=state%3Aopen%20label%3A%22T-transport%22
2026-07-28 spechttps://github.com/modelcontextprotocol/rust-sdk/milestone/3
https://github.com/alexhancock
alexhancockhttps://github.com/alexhancock
on Jun 2, 2026https://github.com/modelcontextprotocol/rust-sdk/issues/870#issue-4573024198
modelcontextprotocol/modelcontextprotocol#2567https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2567
Expose negotiated Mcp-Session-Id on StreamableHttpClientTransport / RunningService #863https://github.com/modelcontextprotocol/rust-sdk/issues/863
Implement SEP-1442: Make MCP Stateless #526https://github.com/modelcontextprotocol/rust-sdk/issues/526
alexhancockhttps://github.com/alexhancock
2026-07-28https://github.com/modelcontextprotocol/rust-sdk/issues?q=state%3Aopen%20label%3A%222026-07-28%22
P1High: significant functionality gap or spec violationhttps://github.com/modelcontextprotocol/rust-sdk/issues?q=state%3Aopen%20label%3A%22P1%22
T-coreCore library changeshttps://github.com/modelcontextprotocol/rust-sdk/issues?q=state%3Aopen%20label%3A%22T-core%22
T-enhancementNew features and enhancementshttps://github.com/modelcontextprotocol/rust-sdk/issues?q=state%3Aopen%20label%3A%22T-enhancement%22
T-transportTransport layer changeshttps://github.com/modelcontextprotocol/rust-sdk/issues?q=state%3Aopen%20label%3A%22T-transport%22
2026-07-28 Spec Implementationhttps://github.com/orgs/modelcontextprotocol/projects/41
2026-07-28 spechttps://github.com/modelcontextprotocol/rust-sdk/milestone/3
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.