We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
DEBUG session_uri: sse.py:106 /abcd/abcd/messages/?session_id =b5b93f9d4088442fa3edb1c679a7a922 DEBUG Created new session with ID: sse.py:109 b5b93f9d-4088-442f-a3ed-b1c679a7a922 DEBUG Starting SSE response task sse.py:136 DEBUG Yielding read and write streams sse.py:139
INFO: 100.67.30.95:57894 - "GET /sse HTTP/1.1" 200 OK
DEBUG Starting SSE writer sse.py:116 DEBUG Sent endpoint event: sse.py:119 /abcd/abcd/messages/?session_id =b5b93f9d4088442fa3edb1c679a7a922 DEBUG chunk: b'event: endpoint\r\ndata: sse.py:156 /abcd/abcd/messages/?session_id =b5b93f9d4088442fa3edb1c679a7a922\r\n\r\ n'
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
DEBUG Got event: http.disconnect. Stop sse.py:177 streaming.
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:
can you please share
The url here is incorrect ...
might be related: #524
Sorry, something went wrong.
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.
fast-agent-mcp==0.2.21 fastapi-mcp==0.3.3 mcp[cli]==1.7.1
For folks using fastapi-mcp, the cause might be that you're using uvicorn workers: tadata-org/fastapi_mcp#56
fastapi-mcp
No branches or pull requests
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: