René's URL Explorer Experiment


Title: Clarifications on the intent/use-case for sessions · Issue #984 · modelcontextprotocol/modelcontextprotocol · GitHub

Open Graph Title: Clarifications on the intent/use-case for sessions · Issue #984 · modelcontextprotocol/modelcontextprotocol

X Title: Clarifications on the intent/use-case for sessions · Issue #984 · modelcontextprotocol/modelcontextprotocol

Description: Contributors: @kurtisvg (on behalf of the Transport Working Group) Why Sessions are currently problematic There are many questions on what role the session is supposed to play. Because sessions are not well defined, it’s unclear how to a...

Open Graph Description: Contributors: @kurtisvg (on behalf of the Transport Working Group) Why Sessions are currently problematic There are many questions on what role the session is supposed to play. Because sessions are...

X Description: Contributors: @kurtisvg (on behalf of the Transport Working Group) Why Sessions are currently problematic There are many questions on what role the session is supposed to play. Because sessions are...

Opengraph URL: https://github.com/modelcontextprotocol/modelcontextprotocol/issues/984

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clarifications on the intent/use-case for sessions","articleBody":"**Contributors:** @kurtisvg (on behalf of the Transport Working Group) \n\n## Why Sessions are currently problematic \n\nThere are many questions on what role the session is supposed to play. Because sessions are not well defined, it’s unclear how to appropriately use them, introducing ambiguity in how servers and clients expect them to be handled. The [latest MCP spec](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#session-management) only defines the session as (emphasis mine):\n\n\u003e An MCP “session” consists of **logically related interactions between a client and a server**, beginning with the initialization phase.\n\nHowever, it’s very unclear on both what and how the session is supposed to be used to group related interactions together. The original intent seems to have been some kind of state management, but with the introduction of streamable HTTP, sessions became optional. This introduces a bit of a paradox – initializations are _initiated_ by the client, but can only actually be _created_ by the server, but then again _deleted_ by the client: \n\n\u003e Clients that no longer need a particular session (e.g., because the user is leaving the client application) SHOULD send an HTTP DELETE to the MCP endpoint with the Mcp-Session-Id header, to explicitly terminate the session. \n\nWhen a session-id is provided, it’s totally unclear how the client should be reacting. Should the client reuse a session every time it starts a chat? How long should the server preserve the state of the session? What if the server creates a session but the client doesn’t subscribe to notifications? How long should the client maintain a session before attempting to renegotiate things?\n\nAs part of trying to address these concerns, the transport working group has broken the use of sessions into two major categories:\n\n\n## Use-case A: “Transport” or “Tracking” sessions\n\nTransport sessions represent the state of communication with the _MCP client_. They are tied to the following information having been previously negotiated:\n\n1. Negotiated protocol version\n2. Client capabilities \n3. Server Capabilities \n\nIf sessions are intended to be _tracking_ sessions, it is reasonable to assume that they represent the state between the MCP Client and the MCP server, and might not be _logically_ grouped by more than that. Multiple end-user requests may be sent over the same session without issue.  \n\nHowever if these things change it’s unclear what should happen. If a server changes its capabilities, should it terminate the session? Server notifications are optional – the client may choose NOT to establish a notification channel for these notifications. If a server changes its tools and a client isn’t listening for notifications, how should the client know the tool has changed? Should the state of the ToolLists, ResourcesLists, etc be tied to the duration of the session? \n\n\n## Use-case B: “Logical”, “Contextual”, or “User” sessions\n\nLogical sessions represent the state of communication with some specific shared context. This context is decided by the application, and might be any of the following: \n\n4. per LLM context window\n5. per application \n6. per account or user\n7. Out of band Elicitation / Sampling requests (e.g. not associated with an existing request)\n\nIf sessions are intended to be _logical _ sessions, it is reasonable for servers to preserve some state between different requests in the same session. As a trivial example, a server might with to have a \"count\" tool that always returns one more than the last time it was called in that session:\n\n```\nbegin_transaction()\nread_contents()\nwrite_contents()\nend_transaction()\n```\n\n\n## Request\n\nThe request from the transport working group is a request from the original contributors: \n\n\n\n*   What is the intended role of sessions? Are they supposed to be “transport” sessions or “logical” sessions? What use cases should be particularly covered? \n*    If the answer is  “both”, are there any concerns with proposals to separate those use cases more clearly? E.g. if we provide non-stateful functionality to cover use-case A, and rework sessions to focus on use-case B? \n*   Should “out of band” (e.g. not associated with another request) client side requests be supported? If so, what’s the intended use case? \n\n\n## Related Issues\n\n[#192 - Allow MCP servers to “resume state”](https://github.com/modelcontextprotocol/modelcontextprotocol/issues/192)\n\n[#231 - API Defined and/or Client-Defined Session IDs](https://github.com/modelcontextprotocol/modelcontextprotocol/issues/231)\n\n[#282 - Streamable HTTP - session management inconsistency](https://github.com/modelcontextprotocol/modelcontextprotocol/issues/282)\n\n[#823 - Stateful stdio servers present a safety hazard for multi-conversation clients like Claude Desktop](https://github.com/modelcontextprotocol/modelcontextprotocol/issues/823) \\\n\n","author":{"url":"https://github.com/kurtisvg","@type":"Person","name":"kurtisvg"},"datePublished":"2025-07-16T21:12:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/984/modelcontextprotocol/issues/984"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f6ac86a8-730d-4236-3aeb-7a4b84009d3e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9B0A:20DA71:2AD9E68:3887F22:6A5CDC2A
html-safe-nonceef252ade8badc1bdc61b7976a7ad0bdadfa1ffc1a106bf456d41255b64b24939
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjBBOjIwREE3MToyQUQ5RTY4OjM4ODdGMjI6NkE1Q0RDMkEiLCJ2aXNpdG9yX2lkIjoiODk2NDk4NjYzODYwODE2MTgzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacad1ae4d0d7c18c1dff3ddd658130f88063c24993357bfa285eb41b0a2bdb1a7c
hovercard-subject-tagissue:3237367761
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/modelcontextprotocol/984/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1e4f66867d3ca4c5304cebd1f887e6bc4e28ddab9b88be3ca6f8c4ffb0c650db/modelcontextprotocol/modelcontextprotocol/issues/984
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1e4f66867d3ca4c5304cebd1f887e6bc4e28ddab9b88be3ca6f8c4ffb0c650db/modelcontextprotocol/modelcontextprotocol/issues/984
og:image:altContributors: @kurtisvg (on behalf of the Transport Working Group) Why Sessions are currently problematic There are many questions on what role the session is supposed to play. Because sessions are...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekurtisvg
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
go-importgithub.com/modelcontextprotocol/modelcontextprotocol git https://github.com/modelcontextprotocol/modelcontextprotocol.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862570523
octolytics-dimension-repository_nwomodelcontextprotocol/modelcontextprotocol
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862570523
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/modelcontextprotocol
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/984#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fmodelcontextprotocol%2Fissues%2F984
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
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%2Fmodelcontextprotocol%2Fissues%2F984
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%2Fmodelcontextprotocol
Reloadhttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/984
Reloadhttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/984
Reloadhttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/984
Please reload this pagehttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/984
modelcontextprotocol https://github.com/modelcontextprotocol
modelcontextprotocolhttps://github.com/modelcontextprotocol/modelcontextprotocol
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fmodelcontextprotocol
Fork 1.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fmodelcontextprotocol
Star 8.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fmodelcontextprotocol
Code https://github.com/modelcontextprotocol/modelcontextprotocol
Issues 112 https://github.com/modelcontextprotocol/modelcontextprotocol/issues
Pull requests 78 https://github.com/modelcontextprotocol/modelcontextprotocol/pulls
Discussions https://github.com/modelcontextprotocol/modelcontextprotocol/discussions
Actions https://github.com/modelcontextprotocol/modelcontextprotocol/actions
Projects https://github.com/modelcontextprotocol/modelcontextprotocol/projects
Models https://github.com/modelcontextprotocol/modelcontextprotocol/models
Security and quality 0 https://github.com/modelcontextprotocol/modelcontextprotocol/security
Insights https://github.com/modelcontextprotocol/modelcontextprotocol/pulse
Code https://github.com/modelcontextprotocol/modelcontextprotocol
Issues https://github.com/modelcontextprotocol/modelcontextprotocol/issues
Pull requests https://github.com/modelcontextprotocol/modelcontextprotocol/pulls
Discussions https://github.com/modelcontextprotocol/modelcontextprotocol/discussions
Actions https://github.com/modelcontextprotocol/modelcontextprotocol/actions
Projects https://github.com/modelcontextprotocol/modelcontextprotocol/projects
Models https://github.com/modelcontextprotocol/modelcontextprotocol/models
Security and quality https://github.com/modelcontextprotocol/modelcontextprotocol/security
Insights https://github.com/modelcontextprotocol/modelcontextprotocol/pulse
Clarifications on the intent/use-case for sessionshttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/984#top
https://github.com/kurtisvg
kurtisvghttps://github.com/kurtisvg
on Jul 16, 2025https://github.com/modelcontextprotocol/modelcontextprotocol/issues/984#issue-3237367761
@kurtisvghttps://github.com/kurtisvg
latest MCP spechttps://modelcontextprotocol.io/specification/2025-06-18/basic/transports#session-management
#192 - Allow MCP servers to “resume state”https://github.com/modelcontextprotocol/modelcontextprotocol/issues/192
#231 - API Defined and/or Client-Defined Session IDshttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/231
#282 - Streamable HTTP - session management inconsistencyhttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/282
#823 - Stateful stdio servers present a safety hazard for multi-conversation clients like Claude Desktophttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/823
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.