Update asgi_app.py
This commit is contained in:
+5
-4
@@ -95,10 +95,11 @@ custom_middleware = [
|
|||||||
# Create MCP app with Bearer authentication
|
# Create MCP app with Bearer authentication
|
||||||
mcp_server = create_app(auth=bearer_auth)
|
mcp_server = create_app(auth=bearer_auth)
|
||||||
|
|
||||||
# Create MCP Starlette sub-application with middleware
|
# Add Starlette middleware to FastAPI (not MCP)
|
||||||
mcp_app = mcp_server.http_app(
|
# MCP already has Bearer auth, no need for additional middleware on MCP level
|
||||||
custom_middleware=custom_middleware
|
|
||||||
)
|
# Create MCP Starlette sub-application
|
||||||
|
mcp_app = mcp_server.http_app()
|
||||||
|
|
||||||
# Configure JSON encoder for proper Turkish character support
|
# Configure JSON encoder for proper Turkish character support
|
||||||
import json
|
import json
|
||||||
|
|||||||
Reference in New Issue
Block a user