Skip to content

401 from /sse after upgrading to 1.7.0 #613

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

Closed
xgugugua opened this issue May 2, 2025 · 2 comments
Closed

401 from /sse after upgrading to 1.7.0 #613

xgugugua opened this issue May 2, 2025 · 2 comments
Assignees

Comments

@xgugugua
Copy link

xgugugua commented May 2, 2025

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.

@ihrpr ihrpr self-assigned this May 2, 2025
@ihrpr ihrpr added this to the 2025-03-26 spec release milestone May 2, 2025
@ihrpr ihrpr marked this as a duplicate of #611 May 2, 2025
@ihrpr
Copy link
Contributor

ihrpr commented May 2, 2025

v1.7.1 should have the fix

@johnandersen777
Copy link

johnandersen777 commented May 2, 2025

1.7.1 fix works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants