You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SSE MCP server fails when URL contains subpaths #490
当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 find session"的404错误
预期行为
客户端应能正常连接到带子路径的SSE MCP服务
环境信息
MCP版本: [请填写]
操作系统: [请填写]
Problem Description
When 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).
Reproduction Steps
Deploy an SSE MCP server with subpath (e.g. /mcp/a/sse)
Connect using Cline or Cherry Studio client
Observe "could not find session" 404 error
Expected Behavior
Client should be able to connect to SSE MCP service with subpaths
Activity
rkondra-eightfold commentedon Apr 16, 2025
#524
tim-watcha commentedon Apr 19, 2025
I believe this is server side problem rather than the client problem. #540
felixweinberger commentedon Oct 3, 2025
Closing as I believe this is resolved by #540