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 4d3f60b commit 5411e93Copy full SHA for 5411e93
backend/main.py
@@ -1,3 +1,5 @@
1
+import os
2
+
3
import sqlbot_xpack
4
from alembic.config import Config
5
from fastapi import FastAPI
@@ -56,7 +58,9 @@ def custom_generate_unique_id(route: APIRoute) -> str:
56
58
57
59
mcp_app = FastAPI()
60
# mcp server, images path
-mcp_app.mount("/images", StaticFiles(directory=settings.MCP_IMAGE_PATH), name="images")
61
+images_path = settings.MCP_IMAGE_PATH
62
+os.makedirs(images_path, exist_ok=True)
63
+mcp_app.mount("/images", StaticFiles(directory=images_path), name="images")
64
65
mcp = FastApiMCP(
66
app,
0 commit comments