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
Domain: github.com
{"@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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:14a21ec4-426a-363e-db07-67f70d5ab8b2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D76A:1911D9:7F1FC7:B61C10:6A633404 |
| html-safe-nonce | 389bbd165ff56316d2f73bd07ef55b2e88b2737d66dfda8556b7b18ce5f1c6fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzZBOjE5MTFEOTo3RjFGQzc6QjYxQzEwOjZBNjMzNDA0IiwidmlzaXRvcl9pZCI6IjM3NDc2ODMyNzE5MzU0NzI2NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9aaf451b4b7765ab84ca36d24763b00db8a298f84e459b4386718c5c56ed2f15 |
| hovercard-subject-tag | issue:2992527332 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/507/issue_layout |
| twitter:image | https://opengraph.githubassets.com/745bb4745cc1c69c64bcb4e14a75c4e6e5b32fdbe1f14bdbbde3b50cfdd72177/modelcontextprotocol/python-sdk/issues/507 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/745bb4745cc1c69c64bcb4e14a75c4e6e5b32fdbe1f14bdbbde3b50cfdd72177/modelcontextprotocol/python-sdk/issues/507 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chi2liu |
| hostname | github.com |
| expected-hostname | github.com |
| None | df6e1c2adcceb061ec8c4106a1b34f38280f08e13f2b195c661c202834cbc3b1 |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 822a0ff2a479845adcdd40a1a7b1734a56e05818 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width