Skip to content

Commit 5071c14

Browse files
authored
Revert "fix: apply AUTH_REQUIRED flag to Streamable HTTP endpoints"
1 parent 1f0c685 commit 5071c14

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mcpgateway/main.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,9 @@ async def __call__(self, scope, receive, send):
448448
return
449449

450450
# Call auth check first
451-
if settings.auth_required:
452-
auth_ok = await streamable_http_auth(scope, receive, send)
453-
if not auth_ok:
454-
return
451+
auth_ok = await streamable_http_auth(scope, receive, send)
452+
if not auth_ok:
453+
return
455454

456455
original_path = scope.get("path", "")
457456
scope["modified_path"] = original_path

0 commit comments

Comments
 (0)