feat: 添加数据库管理平台MCP Server
新增lzwcai-mcp-agile-db项目,提供数据库管理、表操作、数据CRUD、 API密钥管理、技能与工具管理等功能。 包含33个工具: - 数据源管理:创建、更新、删除数据源 - 数据库与表管理:表结构操作、数据查询等 - API密钥管理:密钥创建、权限管理等 - 技能与工具管理:SQL工具创建、配置更新等 - 数据导入和SQL执行功能 添加了完整的README文档说明安装使用方法, 以及Python 3.12版本支持和基本项目结构。
This commit is contained in:
@@ -1,14 +1,20 @@
|
||||
"""
|
||||
Entry point for lzwcai-mcp-sqlexecutor
|
||||
Runs the MCP server for SQL query execution
|
||||
Repository-local launcher for lzwcai-mcp-sqlexecutor.
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
os.environ["databaseId"] = "162"
|
||||
os.environ["skillId"] = "2008360664955854850"
|
||||
os.environ["backendBaseUrl"] = "http://192.168.2.236:8088"
|
||||
if __name__ == "__main__":
|
||||
# Import and run the actual MCP server
|
||||
from lzwcai_mcp_sqlexecutor.main import main
|
||||
|
||||
def main():
|
||||
# Keep local developer defaults without overriding explicit environment settings.
|
||||
os.environ.setdefault("databaseId", "240")
|
||||
os.environ.setdefault("skillId", "2058819964077572098")
|
||||
os.environ.setdefault("backendBaseUrl", "http://192.168.2.236:8088")
|
||||
|
||||
from lzwcai_mcp_sqlexecutor.main import main as package_main
|
||||
|
||||
package_main()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user