feat(create_mcp): 添加MCP工具输出Schema定义

添加了固定的输出Schema定义,包含code、message和data字段,
用于规范MCP工具的返回格式,提高API响应的一致性。

- 定义了标准的输出Schema结构
- 包含响应状态码、消息和数据字段
- code和message为必需字段
This commit is contained in:
2026-01-04 10:14:23 +08:00
parent ac403b5e6f
commit 384a1fbcb2
28 changed files with 3408 additions and 51 deletions

View File

@@ -0,0 +1,12 @@
"""
Entry point for lzwcai-mcp-sqlexecutor
Runs the MCP server for SQL query execution
"""
import os
os.environ["databaseId"] = "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()