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
When running an MCP server using FastMCP with sse transport, the expected /run endpoint is not exposed. Any HTTP requests to /run, /tools/list, or /tools/call return a 404 Not Found# response. This happens even with a minimal example script.
I’ve tested this both locally (outside of Docker) and in Docker, and neither setup works. The issue persists even when using a simple example.
Create a minimal MCP server script (simple_mcp.py):
frommcp.server.fastmcpimportFastMCPmcp=FastMCP("Echo")
@mcp.tool()defecho(message: str) ->str:
"""Echo back the input message."""returnf"Echo: {message}"if__name__=="__main__":
mcp.run(transport="sse") # Use SSE transport for HTTP
Description
When running an MCP server using
FastMCP
withsse
transport, the expected/run
endpoint is not exposed. Any HTTP requests to/run
,/tools/list
, or/tools/call
return a404 Not Found#
response. This happens even with a minimal example script.I’ve tested this both locally (outside of Docker) and in Docker, and neither setup works. The issue persists even when using a simple example.
Steps to Reproduce
Install
mcp[cli]
version1.3.0
usinguv
:uv pip install "mcp[cli]==1.3.0"
Confirm the installed version:
Output:
Create a minimal MCP server script (
simple_mcp.py
):Run the server:
Query the
/run
endpoint usingcurl
:Expected Behavior
The server should expose the
/run
endpoint, and querying it with a valid JSON-RPC request should return a response like this:Actual Behavior
The server responds with:
This happens for any requests to
/run
,/tools/list
, or/tools/call
.Environment
Python Version: 3.10.16
MCP Version: 1.3.0 (installed via
uv
)OS: Ubuntu 22.04 (local environment)
Dependency Manager:
uv
pyproject.toml:
Running Locally: Yes (outside Docker), but Docker also fails.
Debugging Steps Taken
mcp[cli]
version is1.3.0
.mcp.tools
./tools/list
,/tools/call
) — all returnNot Found#
.stdio
transport — this works as expected:8000
.Please provide guidance on how to expose and query endpoints when using HTTP (
sse
) transport.The text was updated successfully, but these errors were encountered: