Update asgi_app.py
This commit is contained in:
+4
-2
@@ -48,8 +48,10 @@ custom_middleware = [
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Create MCP Starlette sub-application first
|
# Create MCP Starlette sub-application with authentication
|
||||||
mcp_app = mcp_server.http_app(
|
from mcp_auth_factory import create_app
|
||||||
|
mcp_app_with_auth = create_app()
|
||||||
|
mcp_app = mcp_app_with_auth.http_app(
|
||||||
path="/",
|
path="/",
|
||||||
middleware=custom_middleware
|
middleware=custom_middleware
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user