René's URL Explorer Experiment


Title: API Defined and/or Client-Defined Session IDs · Issue #231 · modelcontextprotocol/modelcontextprotocol · GitHub

Open Graph Title: API Defined and/or Client-Defined Session IDs · Issue #231 · modelcontextprotocol/modelcontextprotocol

X Title: API Defined and/or Client-Defined Session IDs · Issue #231 · modelcontextprotocol/modelcontextprotocol

Description: Is your feature request related to a problem? Please describe. The latest specification for stateful HTTP connections mandates that the server issue a Session ID in the InitializeResponse. The implication of this is: In the event that th...

Open Graph Description: Is your feature request related to a problem? Please describe. The latest specification for stateful HTTP connections mandates that the server issue a Session ID in the InitializeResponse. The impl...

X Description: Is your feature request related to a problem? Please describe. The latest specification for stateful HTTP connections mandates that the server issue a Session ID in the InitializeResponse. The impl...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"API Defined and/or Client-Defined Session IDs","articleBody":"**Is your feature request related to a problem? Please describe.**\nThe latest specification for **stateful** HTTP connections mandates that the server issue a Session ID in the InitializeResponse. The implication of this is: \n1. In the event that the MCP server fronts a service which already has a notion of sessions, the client will need to keep track of two different session IDs (one provided by MCP server and the other provided in a subsequent response payload from the service itself) which effectively represent the same session. \n2. The session ID can never be customized by the client, meaning client may need to maintain a mapping between its session identifier (e.g. user-xyz-chat-abcd) and the MCP server session identifier(s) (note the two sessions may not even be 1-1 depending on the application definition of sessions) \n\nSecondly, clients don't have a good way to know whether a tool uses SSE / statefulness. This means that clients can't know ahead of time whether a tool will\n1. require them to keep track of a session ID\n2. potentially upgrade the connection to SSE and stream back a bunch of data\n\n**Describe the solution you'd like**\nTo be honest, I'm not yet sure the best way to deal with this. \n\nOption 1: Maybe there is some good reason for this rigidity. In which case, probably folks can implement nice client-side abstractions backed by cloud dbs or caches to deal with this tracking.\n\nOption 2: TBH this is more to get ideas flowing -- not yet convinced this is the right approach. \n1. If MCP Server could issue a session ID post-initialization it would enable it to issue the service session ID as its session ID, resolving the duplication. \n2. Introduce a capabilities key within tool specification. Example:\n```\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"result\": {\n    \"tools\": [\n      {\n        \"name\": \"get_weather\",\n        \"description\": \"Get current weather information for a location\",\n        \"inputSchema\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"location\": {\n              \"type\": \"string\",\n              \"description\": \"City name or zip code\"\n            }\n          },\n          \"required\": [\"location\"],\n// [New] Note I thought this makes more sense here than capability negotiation because it seems tool-specific\n          \"capabilities\": {\n              \"transport\": {\n                  \"sse\": true/false,\n                  \"stateful\": true/false,\n                  \"customizableSessionIds\": true/false\n               }   \n          }\n        }\n      }\n    ],\n    \"nextCursor\": \"next-page-cursor\"\n  }\n}\n```\n3. Enable clients to set session ID IFF customizableSessionIds == true\n\nOne thing I see as an issue in long run is: Clients + Servers can make more informed decisions if metadata given during capability negotiation and (potentially) tool discovery is thorough. On the other hand, to avoid breaking consumers, new keys we introduce in these metadata documents must be optional. This means that it will be a best effort thing for servers to implement these fields and likely many servers will not. This makes these metadata less valuable to consumers. \n\n","author":{"url":"https://github.com/000-000-000-000-000","@type":"Person","name":"000-000-000-000-000"},"datePublished":"2025-03-26T12:54:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/231/modelcontextprotocol/issues/231"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d92836f4-6b4b-ec06-3570-ee85f46d7f3f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBF0A:1F2D8B:61E58D5:86B8E5C:6A5E7147
html-safe-nonce1cbc046bd41d9b5e2e81baa7ac5b305823a0658023376b9baab7757af10e5e8f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjBBOjFGMkQ4Qjo2MUU1OEQ1Ojg2QjhFNUM6NkE1RTcxNDciLCJ2aXNpdG9yX2lkIjoiNzI5MTk5NTM0ODA4NDM1NTM5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac82cacde1fb68439f75c4780a65abba0293084d5d0b5727d83719ac138ce34f08
hovercard-subject-tagissue:2949512861
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/231/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7ce19caa1660352e3f8440b0bbda08679901e194e965ceccf3b2fa317e016b9e/modelcontextprotocol/modelcontextprotocol/issues/231
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7ce19caa1660352e3f8440b0bbda08679901e194e965ceccf3b2fa317e016b9e/modelcontextprotocol/modelcontextprotocol/issues/231
og:image:altIs your feature request related to a problem? Please describe. The latest specification for stateful HTTP connections mandates that the server issue a Session ID in the InitializeResponse. The impl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:username000-000-000-000-000
hostnamegithub.com
expected-hostnamegithub.com
None71950bbe6bf7e15662b868c102fed9d1682c29a05970d9b2daa2e4dd3522c52e
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
release7514606601325843bc1c464d2d8bf5fe9af2c154
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/231#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fmodelcontextprotocol%2Fissues%2F231
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%2Fmodelcontextprotocol%2Fissues%2F231
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/231
Reloadhttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/231
Reloadhttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/231
Please reload this pagehttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/231
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 80 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
API Defined and/or Client-Defined Session IDshttps://github.com/modelcontextprotocol/modelcontextprotocol/issues/231#top
enhancementNew feature or requesthttps://github.com/modelcontextprotocol/modelcontextprotocol/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/000-000-000-000-000
000-000-000-000-000https://github.com/000-000-000-000-000
on Mar 26, 2025https://github.com/modelcontextprotocol/modelcontextprotocol/issues/231#issue-2949512861
enhancementNew feature or requesthttps://github.com/modelcontextprotocol/modelcontextprotocol/issues?q=state%3Aopen%20label%3A%22enhancement%22
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.