feat(create_mcp): 添加MCP工具输出Schema定义
添加了固定的输出Schema定义,包含code、message和data字段, 用于规范MCP工具的返回格式,提高API响应的一致性。 - 定义了标准的输出Schema结构 - 包含响应状态码、消息和数据字段 - code和message为必需字段
This commit is contained in:
12
lzwcai_mcpskills_analyzeWorkOrder/main.py
Normal file
12
lzwcai_mcpskills_analyzeWorkOrder/main.py
Normal 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()
|
||||
Reference in New Issue
Block a user