diff --git a/main.py b/main.py index 6c58861..43935d2 100644 --- a/main.py +++ b/main.py @@ -5569,7 +5569,8 @@ class _MCPDispatch: path = scope.get("path", "") if scope["type"] == "http" and ( path == "/mcp" - or path in {"/authorize", "/token", "/register", "/revoke"} + or path in {"/authorize", "/token", "/revoke"} + or (path == "/register" and scope.get("method") == "POST") or path.startswith("/.well-known/oauth-") ): await _mcp_http_app(scope, receive, send)