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
Describe the bug
MCP stop working due to auth error after upgrading from 1.6.0 to 1.7.0
To Reproduce
mcp: FastMCP = FastMCP()
@mcp.tool()
def add_two_integers(a: int, b: int) -> int:
"""
Adds two integers.
Args:
a (int): The first integer.
b (int): The second integer.
Returns:
int: The sum of the two integers.
"""
return a + b
app: FastAPI = FastAPI()
app.mount("/", mcp.sse_app())
Expected behavior
Above is a super simple example to bind mcp to fastapi, I start with uvicorn, it works just fine with 1.6.0 but stop working in 1.7.0 due to 401 from /sse. Here I'm not configuring any auth so expecting no auth check.
The text was updated successfully, but these errors were encountered:
Describe the bug
MCP stop working due to auth error after upgrading from 1.6.0 to 1.7.0
To Reproduce
Expected behavior
Above is a super simple example to bind mcp to fastapi, I start with uvicorn, it works just fine with 1.6.0 but stop working in 1.7.0 due to 401 from /sse. Here I'm not configuring any auth so expecting no auth check.
The text was updated successfully, but these errors were encountered: