Update asgi_app.py

This commit is contained in:
saidsurucu
2025-07-21 18:50:56 +03:00
parent 2c1b8c6f9d
commit 38e0cc032b
+5 -4
View File
@@ -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