From 9fb23dadaec4cae81a66da04f8988edba9ebaa5f Mon Sep 17 00:00:00 2001 From: saidsurucu Date: Wed, 9 Jul 2025 19:25:21 +0300 Subject: [PATCH] Update asgi_app.py --- asgi_app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/asgi_app.py b/asgi_app.py index 8cd294f..978da15 100644 --- a/asgi_app.py +++ b/asgi_app.py @@ -48,8 +48,10 @@ custom_middleware = [ ), ] -# Create MCP Starlette sub-application first -mcp_app = mcp_server.http_app( +# Create MCP Starlette sub-application with authentication +from mcp_auth_factory import create_app +mcp_app_with_auth = create_app() +mcp_app = mcp_app_with_auth.http_app( path="/", middleware=custom_middleware )