Title: SSE MCP server fails when URL contains subpaths · Issue #490 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: SSE MCP server fails when URL contains subpaths · Issue #490 · modelcontextprotocol/python-sdk
X Title: SSE MCP server fails when URL contains subpaths · Issue #490 · modelcontextprotocol/python-sdk
Description: 问题描述 当SSE MCP服务器的URL包含子路径时(例如:a.com/mcp/a/sse),使用Cline或Cherry Studio客户端会报错:"error posting to endpoint http 404 could not find session"。仅使用域名(不含子路径)时工作正常。 重现步骤 部署一个SSE MCP服务器,配置子路径(如/mcp/a/sse) 使用Cline或Cherry Studio客户端连接该URL 观察到"could not...
Open Graph Description: 问题描述 当SSE MCP服务器的URL包含子路径时(例如:a.com/mcp/a/sse),使用Cline或Cherry Studio客户端会报错:"error posting to endpoint http 404 could not find session"。仅使用域名(不含子路径)时工作正常。 重现步骤 部署一个SSE MCP服务器,配置子路径(如/mcp/a/sse) 使用Cl...
X Description: 问题描述 当SSE MCP服务器的URL包含子路径时(例如:a.com/mcp/a/sse),使用Cline或Cherry Studio客户端会报错:"error posting to endpoint http 404 could not find session"。仅使用域名(不含子路径)时工作正常。 重现步骤 部署一个SSE MCP服务器,配置子路径(如/mcp/a...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/490
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SSE MCP server fails when URL contains subpaths","articleBody":"### 问题描述\n当SSE MCP服务器的URL包含子路径时(例如:a.com/mcp/a/sse),使用Cline或Cherry Studio客户端会报错:\"error posting to endpoint http 404 could not find session\"。仅使用域名(不含子路径)时工作正常。\n\n### 重现步骤\n1. 部署一个SSE MCP服务器,配置子路径(如/mcp/a/sse)\n2. 使用Cline或Cherry Studio客户端连接该URL\n3. 观察到\"could not find session\"的404错误\n\n### 预期行为\n客户端应能正常连接到带子路径的SSE MCP服务\n\n### 环境信息\n- MCP版本: [请填写]\n- 操作系统: [请填写]\n\n----------------------------------------\n\n### Problem Description\nWhen the SSE MCP server's URL contains subpaths (e.g. a.com/mcp/a/sse), using Cline or Cherry Studio clients results in error: \"error posting to endpoint http 404 could not find session\". Works fine with domain-only URLs (no subpaths).\n\n### Reproduction Steps\n1. Deploy an SSE MCP server with subpath (e.g. /mcp/a/sse)\n2. Connect using Cline or Cherry Studio client\n3. Observe \"could not find session\" 404 error\n\n### Expected Behavior\nClient should be able to connect to SSE MCP service with subpaths\n\n### Environment Information\n- MCP Version: [please specify]\n- OS: [please specify]","author":{"url":"https://github.com/gzchen008","@type":"Person","name":"gzchen008"},"datePublished":"2025-04-11T09:10:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/490/python-sdk/issues/490"}
| 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:fe6fb93a-9a68-081b-73ba-b64b6de1328b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 883E:C1A48:410C96:57FF20:6A62986A |
| html-safe-nonce | 07c71987bd9dfdefd1182a47e8c013aa90bed54b633cce8ab5feeb34a2010b33 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODNFOkMxQTQ4OjQxMEM5Njo1N0ZGMjA6NkE2Mjk4NkEiLCJ2aXNpdG9yX2lkIjoiNTk3MDQ2Mjk3MDg1NDE1MjI5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 62fffe6385b3eb64ebde6f4ecd490829dd4f66cb29566bf26b1b8e11b62ef265 |
| hovercard-subject-tag | issue:2988055508 |
| 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/490/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cc573ca3bbf80c3c244352f7a55661e59088b14d7cbf131a0e112b0e7bfceb6c/modelcontextprotocol/python-sdk/issues/490 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cc573ca3bbf80c3c244352f7a55661e59088b14d7cbf131a0e112b0e7bfceb6c/modelcontextprotocol/python-sdk/issues/490 |
| og:image:alt | 问题描述 当SSE MCP服务器的URL包含子路径时(例如:a.com/mcp/a/sse),使用Cline或Cherry Studio客户端会报错:"error posting to endpoint http 404 could not find session"。仅使用域名(不含子路径)时工作正常。 重现步骤 部署一个SSE MCP服务器,配置子路径(如/mcp/a/sse) 使用Cl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gzchen008 |
| hostname | github.com |
| expected-hostname | github.com |
| None | a6443033349a18134b517627f043d4a59a5110337b879810c7229c2c7e28eda0 |
| 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 | d6c6cacbe32d3ddfd1796fbd1a39b8fb47b87daf |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width