新增get_datasource_id函数用于获取数据源ID环境变量, 并在环境配置中添加datasource_id字段, 同时在main.py中设置默认的数据源ID环境变量。
14 lines
368 B
Python
14 lines
368 B
Python
"""
|
|
Entry point for lzwcai-mcp-sqlexecutor
|
|
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
|
|
from lzwcai_mcpskills_analyzeWorkOrder.main import main
|
|
main()
|