-
Notifications
You must be signed in to change notification settings - Fork 1.6k
404 Not Found Error when Establishing SSE Connection via MCP Python SDK #507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
can you please share
The url here is incorrect ...
might be related: #524 |
I have same wrong, I use fastapi mount mcpserver fastmcp = FastMCP(
self.server_config.get("name", "MCP Server"), message_path="/mcp/messages/"
)
FastApi.mount(path="/mcp", app=self.main_server.sse_app())```
But client request shows Client error '404 Not Found' for url 'http://localhost:ip/mcp/messages/?session_id=115273056f3b4d11b2ed15010211ecda' |
I'm also running into this.
For folks using |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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", debug=True, log_level="DEBUG", message_path="/abcd/abcd/messages/")
To Reproduce
Steps to reproduce the behavior:
[04/14/25 09:45:51] DEBUG Setting up SSE connection sse.py:87
INFO: 100.67.30.95:57894 - "GET /sse HTTP/1.1" 200 OK
INFO: 10.183.49.44:60168 - "GET /prometheus HTTP/1.1" 404 Not Found
INFO: 100.67.31.17:49088 - "POST /messages/?session_id=b5b93f9d4088442fa3edb1c679a7a922 HTTP/1.1" 404 Not
Found
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: