From 7725fa6667366c917fbeb56fa4b364d328fe219c Mon Sep 17 00:00:00 2001 From: anor Date: Fri, 27 Nov 2026 17:43:13 +1000 Subject: [PATCH] Keep site registration page beside OAuth registration --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)