Keep site registration page beside OAuth registration

This commit is contained in:
anor
2026-11-27 17:43:13 +10:00
parent d26d20b82b
commit 7725fa6667
+2 -1
View File
@@ -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)