From 38e0cc032b9f9a7bdb546da46c521e55a491ee5e Mon Sep 17 00:00:00 2001 From: saidsurucu Date: Mon, 21 Jul 2025 18:50:56 +0300 Subject: [PATCH] Update asgi_app.py --- asgi_app.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/asgi_app.py b/asgi_app.py index 652cf33..fd81756 100644 --- a/asgi_app.py +++ b/asgi_app.py @@ -95,10 +95,11 @@ custom_middleware = [ # Create MCP app with Bearer authentication mcp_server = create_app(auth=bearer_auth) -# Create MCP Starlette sub-application with middleware -mcp_app = mcp_server.http_app( - custom_middleware=custom_middleware -) +# Add Starlette middleware to FastAPI (not MCP) +# MCP already has Bearer auth, no need for additional middleware on MCP level + +# Create MCP Starlette sub-application +mcp_app = mcp_server.http_app() # Configure JSON encoder for proper Turkish character support import json