We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d76e2e0 commit 961b53dCopy full SHA for 961b53d
backend/main.py
@@ -43,8 +43,7 @@ def custom_generate_unique_id(route: APIRoute) -> str:
43
lifespan=lifespan
44
)
45
46
-mcp_app = FastAPI()
47
-mcp_app.add_middleware(TokenMiddleware)
+# mcp_app = FastAPI()
48
49
mcp = FastApiMCP(
50
app,
@@ -53,7 +52,7 @@ def custom_generate_unique_id(route: APIRoute) -> str:
53
52
include_operations=["get_datasource_list", "get_model_list", "question"]
54
55
56
-mcp.mount(mcp_app)
+mcp.mount(app)
57
58
# Set all CORS enabled origins
59
if settings.all_cors_origins:
0 commit comments