feat(utils): 添加数据源ID获取功能

新增get_datasource_id函数用于获取数据源ID环境变量,
并在环境配置中添加datasource_id字段,
同时在main.py中设置默认的数据源ID环境变量。
This commit is contained in:
2026-01-04 10:20:18 +08:00
parent 384a1fbcb2
commit 79374b0d2f
4 changed files with 25 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ Runs the MCP server for SQL query execution
import os
os.environ["databaseId"] = "19"
os.environ["datasourceId"] = "19"
os.environ["backendBaseUrl"] = "http://192.168.11.24:8088"
if __name__ == "__main__":
# Import and run the actual MCP server