René's URL Explorer Experiment


Title: fix: return HTTP 404 for unknown session IDs instead of 400 by max-rousseau · Pull Request #1808 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: fix: return HTTP 404 for unknown session IDs instead of 400 by max-rousseau · Pull Request #1808 · modelcontextprotocol/python-sdk

X Title: fix: return HTTP 404 for unknown session IDs instead of 400 by max-rousseau · Pull Request #1808 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - fix: return HTTP 404 for unknown session IDs instead of 400 by max-rousseau · Pull Request #1808 · modelcontextprotocol/python-sdk

Open Graph Description: Summary Fixes incorrect HTTP status code returned by StreamableHTTPSessionManager when receiving requests with unknown or expired session IDs. Per the MCP Streamable HTTP transport specification, s...

X Description: Summary Fixes incorrect HTTP status code returned by StreamableHTTPSessionManager when receiving requests with unknown or expired session IDs. Per the MCP Streamable HTTP transport specification, s...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/1808

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:2dac1c90-cef1-dee1-5243-66cd89acdefb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8120:2D16FA:470FD05:642E32A:6A56CDBA
html-safe-nonce023f022e13ae0a9dbb080fdafab7581975faa079ff65e4ae34c360c7fb66aea5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTIwOjJEMTZGQTo0NzBGRDA1OjY0MkUzMkE6NkE1NkNEQkEiLCJ2aXNpdG9yX2lkIjoiNzQyMDY2Njc1Mjg4NjI5NTk5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac85969b3417c27aeb9286aa1c3489230394f60c6b4977f72bb257384d42cfe40f
hovercard-subject-tagpull_request:3119223283
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/1808/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6f31c3d3a8f91df2c2c0a97663d5e1919855eac92d1d21db4034e011f2d5392a/modelcontextprotocol/python-sdk/pull/1808
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6f31c3d3a8f91df2c2c0a97663d5e1919855eac92d1d21db4034e011f2d5392a/modelcontextprotocol/python-sdk/pull/1808
og:image:altSummary Fixes incorrect HTTP status code returned by StreamableHTTPSessionManager when receiving requests with unknown or expired session IDs. Per the MCP Streamable HTTP transport specification, s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemax-rousseau
hostnamegithub.com
expected-hostnamegithub.com
Nonedf99b7164e1d961b639cf5d3cbd6b5ba673edc67bd7e47cdc4746b96099e11ae
turbo-cache-controlno-cache
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-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
release3146ab55fc8763ab0e1d2a875e600b3a545bc751
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/1808#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1808
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%2Fpython-sdk%2Fpull%2F1808
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1808
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1808
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1808
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1808
modelcontextprotocol https://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Fork 3.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Star 23.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 251 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 289 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
maxisbeyhttps://github.com/maxisbey
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
max-rousseau:fix-session-404https://github.com/max-rousseau/mcp-python-sdk/tree/fix-session-404
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/1808
Commits4 (4)https://github.com/modelcontextprotocol/python-sdk/pull/1808/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/1808/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/1808/files
fix: return HTTP 404 for unknown session IDs instead of 400https://github.com/modelcontextprotocol/python-sdk/pull/1808#top
maxisbeyhttps://github.com/maxisbey
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
max-rousseau:fix-session-404https://github.com/max-rousseau/mcp-python-sdk/tree/fix-session-404
https://github.com/max-rousseau
max-rousseauhttps://github.com/max-rousseau
Dec 20, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1808#issue-3749327754
#1727https://github.com/modelcontextprotocol/python-sdk/issues/1727
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1808
https://github.com/max-rousseau
max-rousseauhttps://github.com/max-rousseau
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/f4132747ed1615a6659341d05a0e129761a09931..fed79717873264d930eea33916f28729dce97e20
f413274https://github.com/modelcontextprotocol/python-sdk/commit/f4132747ed1615a6659341d05a0e129761a09931
fed7971https://github.com/modelcontextprotocol/python-sdk/commit/fed79717873264d930eea33916f28729dce97e20
Compare https://github.com/modelcontextprotocol/python-sdk/compare/f4132747ed1615a6659341d05a0e129761a09931..fed79717873264d930eea33916f28729dce97e20
December 20, 2025 00:55https://github.com/modelcontextprotocol/python-sdk/pull/1808#event-21681134027
https://github.com/max-rousseau
fix: return HTTP 404 for unknown session IDs instead of 400https://github.com/modelcontextprotocol/python-sdk/pull/1808/commits/4aaf4ad9335633317a11cd4c5a52e55feaeb45fd
4aaf4adhttps://github.com/modelcontextprotocol/python-sdk/pull/1808/commits/4aaf4ad9335633317a11cd4c5a52e55feaeb45fd
modelcontextprotocol#1727https://github.com/modelcontextprotocol/python-sdk/issues/1727
https://github.com/max-rousseau
max-rousseauhttps://github.com/max-rousseau
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/fed79717873264d930eea33916f28729dce97e20..4aaf4ad9335633317a11cd4c5a52e55feaeb45fd
fed7971https://github.com/modelcontextprotocol/python-sdk/commit/fed79717873264d930eea33916f28729dce97e20
4aaf4adhttps://github.com/modelcontextprotocol/python-sdk/commit/4aaf4ad9335633317a11cd4c5a52e55feaeb45fd
Compare https://github.com/modelcontextprotocol/python-sdk/compare/fed79717873264d930eea33916f28729dce97e20..4aaf4ad9335633317a11cd4c5a52e55feaeb45fd
December 20, 2025 00:58https://github.com/modelcontextprotocol/python-sdk/pull/1808#event-21681151331
https://github.com/maxisbey
refactor: use typed models and add test for session 404 responsehttps://github.com/modelcontextprotocol/python-sdk/pull/1808/commits/75b142bcc325b4fcff5c10befa8c31ac5918e6f0
75b142bhttps://github.com/modelcontextprotocol/python-sdk/pull/1808/commits/75b142bcc325b4fcff5c10befa8c31ac5918e6f0
modelcontextprotocol#509https://github.com/modelcontextprotocol/python-sdk/issues/509
modelcontextprotocol#1727https://github.com/modelcontextprotocol/python-sdk/issues/1727
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Dec 24, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/1808#pullrequestreview-3610995572
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/1808/files/75b142bcc325b4fcff5c10befa8c31ac5918e6f0
maxisbeyhttps://github.com/maxisbey
https://github.com/modelcontextprotocol/python-sdk/pull/1808#pullrequestreview-3610995572
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1808
https://github.com/maxisbey
test: add pragma no cover to mock_receive functionhttps://github.com/modelcontextprotocol/python-sdk/pull/1808/commits/f86ea932d00b47359b933ee216806810101aea68
f86ea93https://github.com/modelcontextprotocol/python-sdk/pull/1808/commits/f86ea932d00b47359b933ee216806810101aea68
modelcontextprotocol#1727https://github.com/modelcontextprotocol/python-sdk/issues/1727
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
stale reviewhttps://github.com/modelcontextprotocol/python-sdk/pull/1808#pullrequestreview-3610995572
f86ea93https://github.com/modelcontextprotocol/python-sdk/commit/f86ea932d00b47359b933ee216806810101aea68
December 31, 2025 12:35https://github.com/modelcontextprotocol/python-sdk/pull/1808#event-21808270491
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
December 31, 2025 13:44https://github.com/modelcontextprotocol/python-sdk/pull/1808#event-21809195185
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
December 31, 2025 13:44https://github.com/modelcontextprotocol/python-sdk/pull/1808#event-21809204049
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Dec 31, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/1808#ref-issue-3772865875
Clarify JSON-RPC error code for 'session not found' responses #1821 https://github.com/modelcontextprotocol/python-sdk/issues/1821
https://github.com/maxisbey
chore: add TODO comment for error code alignmenthttps://github.com/modelcontextprotocol/python-sdk/pull/1808/commits/06ecc2b95729016c0a1672134fce49123e15262a
06ecc2bhttps://github.com/modelcontextprotocol/python-sdk/pull/1808/commits/06ecc2b95729016c0a1672134fce49123e15262a
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
December 31, 2025 13:51https://github.com/modelcontextprotocol/python-sdk/pull/1808#event-21809331230
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Dec 31, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/1808#pullrequestreview-3620956081
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/1808/files/06ecc2b95729016c0a1672134fce49123e15262a
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
78a9504https://github.com/modelcontextprotocol/python-sdk/commit/78a9504ec1871463067020438923b9012a093b5e
Dec 31, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1808#event-21809462184
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1808
https://github.com/julienld
julienldhttps://github.com/julienld
Jan 10, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1808#ref-issue-3796302318
[BUG] MCP connection crashes persistently when calling ha_search_entities tool homeassistant-ai/ha-mcp#406 https://github.com/homeassistant-ai/ha-mcp/issues/406
LucaButBoringhttps://github.com/LucaButBoring
Jan 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1808#ref-commit-85bac7c
https://github.com/max-rousseau
https://github.com/maxisbey
https://github.com/LucaButBoring
fix: return HTTP 404 for unknown session IDs instead of 400 (https://github.com/LucaButBoring/mcp-python-sdk/commit/85bac7c4566eb9d855c00209e86ff1b85d8ac143
modelcon…https://github.com/modelcontextprotocol/python-sdk/pull/1808
85bac7chttps://github.com/LucaButBoring/mcp-python-sdk/commit/85bac7c4566eb9d855c00209e86ff1b85d8ac143
…textprotocol#1808https://github.com/modelcontextprotocol/python-sdk/pull/1808
https://github.com/LucaButBoring
LucaButBoringhttps://github.com/LucaButBoring
Jan 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1808#ref-pullrequest-3849639819
[v1.x] fix: return HTTP 404 for unknown session IDs instead of 400 #1945 https://github.com/modelcontextprotocol/python-sdk/pull/1945
https://github.com/JohnathanOneal
JohnathanOnealhttps://github.com/JohnathanOneal
Mar 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1808#ref-issue-4019958940
No logging in _handle_stateful_request when session ID is unknown/expired #2204 https://github.com/modelcontextprotocol/python-sdk/issues/2204
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1808
https://github.com/maxisbey
maxisbey https://github.com/maxisbey
https://github.com/modelcontextprotocol/python-sdk/pull/1808/files/06ecc2b95729016c0a1672134fce49123e15262a
StreamableHTTPSessionManager returns 400 instead of 404 for unknown session ID https://github.com/modelcontextprotocol/python-sdk/issues/1727
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1808
https://github.com/max-rousseau
https://github.com/maxisbey
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.