feat: add system log in mcp_start

This commit is contained in:
ulleo
2026-07-13 14:03:37 +08:00
parent 74a0382c52
commit c8b5346d54
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -202,7 +202,8 @@ mcp = FastApiMCP(
description="SQLBot MCP Server",
describe_all_responses=True,
describe_full_response_schema=True,
include_operations=["mcp_datasource_list", "get_model_list", "mcp_question", "mcp_start", "mcp_assistant", "mcp_ws_list", "access_token"]
include_operations=["mcp_datasource_list", "get_model_list", "mcp_question", "mcp_start", "mcp_assistant", "mcp_ws_list", "access_token"],
headers=["Authorization", "X-Forwarded-For", "X-Real-IP", "CF-Connecting-IP", "X-Client-IP"]
)
mcp.mount(mcp_app)
+2 -2
View File
@@ -9,7 +9,7 @@ wait-for-it 127.0.0.1:5432 --timeout=120 --strict -- echo -e "\033[1;32mPostgreS
nohup $PM2_CMD_PATH start $SSR_PATH/app.js &
#nohup node $SSR_PATH/app.js &
nohup uvicorn main:mcp_app --host 0.0.0.0 --port 8001 &
nohup uvicorn main:mcp_app --host 0.0.0.0 --port 8001 --proxy-headers --forwarded-allow-ips='*' &
cd $APP_PATH
uvicorn main:app --host 0.0.0.0 --port 8000 --workers 1 --proxy-headers
uvicorn main:app --host 0.0.0.0 --port 8000 --workers 1 --proxy-headers --forwarded-allow-ips='*'