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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
HTTP transport no longer crashes when [transport.http] auth_token is set.
Startup called mcp.add_middleware(...), but the mcp-package FastMCP has no
such method (it only exists on the separate standalone fastmcp package), so
any configured token raised AttributeError: 'FastMCP' object has no attribute 'add_middleware' and the server never started. The bearer-auth path now wraps
FastMCP's own streamable-HTTP ASGI app in a BearerAuthMiddleware and serves
it through uvicorn the same way FastMCP does internally, so a static
shared-secret token works without the OAuth machinery FastMCP's built-in auth
would otherwise require. The empty-token (unauthenticated) path is unchanged.