René's URL Explorer Experiment


Title: 404 Not Found Error when Establishing SSE Connection via MCP Python SDK · Issue #507 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: 404 Not Found Error when Establishing SSE Connection via MCP Python SDK · Issue #507 · modelcontextprotocol/python-sdk

X Title: 404 Not Found Error when Establishing SSE Connection via MCP Python SDK · Issue #507 · modelcontextprotocol/python-sdk

Description: Describe the bug A clear and concise description of what the bug is. Description​​ When attempting to establish SSE connection with MCP Python SDK (v1.6.0), encountering persistent 404 errors on critical endpoints: mcp = FastMCP("Demo", ...

Open Graph Description: Describe the bug A clear and concise description of what the bug is. Description​​ When attempting to establish SSE connection with MCP Python SDK (v1.6.0), encountering persistent 404 errors on cr...

X Description: Describe the bug A clear and concise description of what the bug is. Description​​ When attempting to establish SSE connection with MCP Python SDK (v1.6.0), encountering persistent 404 errors on cr...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/507

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"404 Not Found Error when Establishing SSE Connection via MCP Python SDK","articleBody":"**Describe the bug**\nA clear and concise description of what the bug is.\n\nDescription​​\nWhen attempting to establish SSE connection with MCP Python SDK (v1.6.0), encountering persistent 404 errors on critical endpoints:\n\n`mcp = FastMCP(\"Demo\", debug=True, log_level=\"DEBUG\", message_path=\"/abcd/abcd/messages/\")\n`\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'\n4. See error\n\n[04/14/25 09:45:51] DEBUG    Setting up SSE connection                 sse.py:87\n\n                    DEBUG    session_uri:                             sse.py:106\n\n                              /abcd/abcd/messages/?session_id\n                             =b5b93f9d4088442fa3edb1c679a7a922\n\n                    DEBUG    Created new session with ID:             sse.py:109\n                             b5b93f9d-4088-442f-a3ed-b1c679a7a922\n\n                    DEBUG    Starting SSE response task               sse.py:136\n\n                    DEBUG    Yielding read and write streams          sse.py:139\n\nINFO:     100.67.30.95:57894 - \"GET /sse HTTP/1.1\" 200 OK\n\n                    DEBUG    Starting SSE writer                      sse.py:116\n\n                    DEBUG    Sent endpoint event:                     sse.py:119\n                              /abcd/abcd/messages/?session_id\n                             =b5b93f9d4088442fa3edb1c679a7a922\n\n                    DEBUG    chunk: b'event: endpoint\\r\\ndata:        sse.py:156\n                             /abcd/abcd/messages/?session_id\n                             =b5b93f9d4088442fa3edb1c679a7a922\\r\\n\\r\\\n                             n'\n\nINFO:     10.183.49.44:60168 - \"GET /prometheus HTTP/1.1\" 404 Not Found\n\nINFO:     100.67.31.17:49088 - \"POST /messages/?session_id=b5b93f9d4088442fa3edb1c679a7a922 HTTP/1.1\" 404 Not \nFound\n\n                    DEBUG    Got event: http.disconnect. Stop         sse.py:177\n\n                             streaming.\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Screenshots**\nIf applicable, add screenshots to help explain your problem.\n\n**Desktop (please complete the following information):**\n - OS: [e.g. iOS]\n - Browser [e.g. chrome, safari]\n - Version [e.g. 22]\n\n**Smartphone (please complete the following information):**\n - Device: [e.g. iPhone6]\n - OS: [e.g. iOS8.1]\n - Browser [e.g. stock browser, safari]\n - Version [e.g. 22]\n\n**Additional context**\nAdd any other context about the problem here.\n","author":{"url":"https://github.com/chi2liu","@type":"Person","name":"chi2liu"},"datePublished":"2025-04-14T09:52:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/507/python-sdk/issues/507"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:14a21ec4-426a-363e-db07-67f70d5ab8b2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD76A:1911D9:7F1FC7:B61C10:6A633404
html-safe-nonce389bbd165ff56316d2f73bd07ef55b2e88b2737d66dfda8556b7b18ce5f1c6fb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzZBOjE5MTFEOTo3RjFGQzc6QjYxQzEwOjZBNjMzNDA0IiwidmlzaXRvcl9pZCI6IjM3NDc2ODMyNzE5MzU0NzI2NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9aaf451b4b7765ab84ca36d24763b00db8a298f84e459b4386718c5c56ed2f15
hovercard-subject-tagissue:2992527332
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/python-sdk/507/issue_layout
twitter:imagehttps://opengraph.githubassets.com/745bb4745cc1c69c64bcb4e14a75c4e6e5b32fdbe1f14bdbbde3b50cfdd72177/modelcontextprotocol/python-sdk/issues/507
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/745bb4745cc1c69c64bcb4e14a75c4e6e5b32fdbe1f14bdbbde3b50cfdd72177/modelcontextprotocol/python-sdk/issues/507
og:image:altDescribe the bug A clear and concise description of what the bug is. Description​​ When attempting to establish SSE connection with MCP Python SDK (v1.6.0), encountering persistent 404 errors on cr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechi2liu
hostnamegithub.com
expected-hostnamegithub.com
Nonedf6e1c2adcceb061ec8c4106a1b34f38280f08e13f2b195c661c202834cbc3b1
turbo-cache-controlno-preview
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
release822a0ff2a479845adcdd40a1a7b1734a56e05818
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/issues/507#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2F507
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%2Fpython-sdk%2Fissues%2F507
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%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/507
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/507
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/507
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/issues/507
modelcontextprotocol https://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Fork 3.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Star 23.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 270 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 317 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
404 Not Found Error when Establishing SSE Connection via MCP Python SDKhttps://github.com/modelcontextprotocol/python-sdk/issues/507#top
bugSomething isn't workinghttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22bug%22
needs reproneeds additional information to be able to reproduce bughttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20repro%22
https://github.com/chi2liu
chi2liuhttps://github.com/chi2liu
on Apr 14, 2025https://github.com/modelcontextprotocol/python-sdk/issues/507#issue-2992527332
bugSomething isn't workinghttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22bug%22
needs reproneeds additional information to be able to reproduce bughttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20repro%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.