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 961b53d commit 2d7dc6dCopy full SHA for 2d7dc6d
backend/main.py
@@ -43,16 +43,20 @@ def custom_generate_unique_id(route: APIRoute) -> str:
43
lifespan=lifespan
44
)
45
46
-# mcp_app = FastAPI()
+mcp_app = FastAPI()
47
+mcp_app.add_middleware(TokenMiddleware)
48
+mcp_app.include_router(api_router, prefix=settings.API_V1_STR)
49
50
mcp = FastApiMCP(
51
app,
52
name="SQLBot MCP Server",
53
description="SQLBot MCP Server",
54
+ describe_all_responses=True,
55
+ describe_full_response_schema=True,
56
include_operations=["get_datasource_list", "get_model_list", "question"]
57
58
-mcp.mount(app)
59
+mcp.mount(mcp_app)
60
61
# Set all CORS enabled origins
62
if settings.all_cors_origins:
0 commit comments