File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2828 "/chat/mcp_question" ,
2929 "/chat/mcp_start" ,
3030 "/system/license" ,
31- "/system/config/key"
31+ "/system/config/key" ,
32+ "/images/*"
3233]
3334
3435class WhitelistChecker :
Original file line number Diff line number Diff line change 1212from alembic .config import Config
1313from alembic import command
1414from fastapi_mcp import FastApiMCP
15+ from fastapi .staticfiles import StaticFiles
1516import sqlbot_xpack
1617
1718def run_migrations ():
@@ -39,6 +40,8 @@ def custom_generate_unique_id(route: APIRoute) -> str:
3940 generate_unique_id_function = custom_generate_unique_id ,
4041 lifespan = lifespan
4142)
43+ # mcp server, images path
44+ app .mount ("/images" , StaticFiles (directory = "/opt/sqlbot/images" ), name = "images" )
4245
4346mcp_app = FastAPI ()
4447
You can’t perform that action at this time.
0 commit comments