2026-06-17 10:01:21 - root - INFO - [logger_config.py:117] - 日志系统初始化完成 - 日志目录: E:\yh-ai\project\lzwcai-szyg\lzwcai-mcp-server-package\lzwcai_workflow_to_mcp\lzwcai_workflow_to_mcp\logs
2026-06-17 10:01:21 - mcp.server.lowlevel.server - DEBUG - [server.py:162] - Initializing server 'workflow_mcp_server'
2026-06-17 10:01:21 - mcp.server.lowlevel.server - DEBUG - [server.py:439] - Registering handler for ListToolsRequest
2026-06-17 10:01:21 - mcp.server.lowlevel.server - DEBUG - [server.py:519] - Registering handler for CallToolRequest
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - INFO - [main.py:341] - ==================================================
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - INFO - [main.py:342] - Workflow MCP Server 启动
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - INFO - [main.py:343] - ==================================================
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - INFO - [main.py:348] - 命令行参数: {'mode': 'api', 'json_path': None, 'workflow_id': None}
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - INFO - [main.py:351] - 使用模式: api
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - DEBUG - [main.py:103] - ApiLoader 初始化，工作流ID: 2059567220704460801
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - INFO - [main.py:111] - 开始从 API 加载工作流配置，工作流ID: 2059567220704460801
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.utils.api_client - INFO - [api_client.py:115] - [客户端初始化] base_url=http://192.168.2.236:8088
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.utils.api_client - INFO - [api_client.py:116] - [客户端初始化] token=wf_3782054fa0d345df973dedf0775d98e7
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.utils.api_client - INFO - [api_client.py:117] - [客户端初始化] execute_timeout=600.0s
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.utils.api_client - INFO - [api_client.py:148] - [API请求] GET http://192.168.2.236:8088/system/workflowManage/getByWorkflowId/2059567220704460801
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.utils.api_client - DEBUG - [api_client.py:149] - [API请求] Headers: {'X-API-Key': 'wf_3782054fa0d345df973dedf0775d98e7'}
2026-06-17 10:01:21 - httpcore.connection - DEBUG - [_trace.py:47] - connect_tcp.started host='192.168.2.236' port=8088 local_address=None timeout=30.0 socket_options=None
2026-06-17 10:01:21 - httpcore.connection - DEBUG - [_trace.py:47] - connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x0000018C0704C380>
2026-06-17 10:01:21 - httpcore.http11 - DEBUG - [_trace.py:47] - send_request_headers.started request=<Request [b'GET']>
2026-06-17 10:01:21 - httpcore.http11 - DEBUG - [_trace.py:47] - send_request_headers.complete
2026-06-17 10:01:21 - httpcore.http11 - DEBUG - [_trace.py:47] - send_request_body.started request=<Request [b'GET']>
2026-06-17 10:01:21 - httpcore.http11 - DEBUG - [_trace.py:47] - send_request_body.complete
2026-06-17 10:01:21 - httpcore.http11 - DEBUG - [_trace.py:47] - receive_response_headers.started request=<Request [b'GET']>
2026-06-17 10:01:21 - httpcore.http11 - DEBUG - [_trace.py:47] - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'', [(b'Vary', b'Origin'), (b'Vary', b'Access-Control-Request-Method'), (b'Vary', b'Access-Control-Request-Headers'), (b'X-Content-Type-Options', b'nosniff'), (b'X-XSS-Protection', b'1; mode=block'), (b'X-Frame-Options', b'SAMEORIGIN'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Date', b'Wed, 17 Jun 2026 02:01:19 GMT'), (b'Keep-Alive', b'timeout=60'), (b'Connection', b'keep-alive')])
2026-06-17 10:01:21 - httpx - INFO - [_client.py:1025] - HTTP Request: GET http://192.168.2.236:8088/system/workflowManage/getByWorkflowId/2059567220704460801 "HTTP/1.1 200 "
2026-06-17 10:01:21 - httpcore.http11 - DEBUG - [_trace.py:47] - receive_response_body.started request=<Request [b'GET']>
2026-06-17 10:01:21 - httpcore.http11 - DEBUG - [_trace.py:47] - receive_response_body.complete
2026-06-17 10:01:21 - httpcore.http11 - DEBUG - [_trace.py:47] - response_closed.started
2026-06-17 10:01:21 - httpcore.http11 - DEBUG - [_trace.py:47] - response_closed.complete
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.utils.api_client - INFO - [api_client.py:156] - [API响应] HTTP 200
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.utils.api_client - DEBUG - [api_client.py:157] - [API响应] Headers: {'vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'x-frame-options': 'SAMEORIGIN', 'content-type': 'application/json', 'transfer-encoding': 'chunked', 'date': 'Wed, 17 Jun 2026 02:01:19 GMT', 'keep-alive': 'timeout=60', 'connection': 'keep-alive'}
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.utils.api_client - INFO - [api_client.py:162] - [API响应] 获取工作流配置成功: workflow_id=2059567220704460801
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.utils.api_client - DEBUG - [api_client.py:163] - [API响应] Body: {
  "msg": "查询成功",
  "code": 200,
  "data": [
    {
      "id": "2059567233220263937",
      "createBy": "duchangyuan",
      "createTime": "2026-05-27 17:27:48",
      "updateBy": "yy8z9",
      "updateTime": "2026-06-17 00:08:32",
      "serviceId": "2059567233190903810",
      "uniqueName": "文件导入（支持压缩包）",
      "name": "wenjiandaoruzhichiyasuobao_cdde86e3",
      "description": "dd",
      "visualizable": 0,
      "toolPrompt": null,
      "toolType": "api",
      "datasourceId": null,
      "sqlTemplate": null,
      "sqlParams": "[{\"type\":\"string\",\"name\":\"file\",\"displayName\":\"原文件路径\",\"maxLength\":3000,\"required\":false,\"defaultValue\":\"\"},{\"type\":\"string\",\"name\":\"txt_file\",\"displayName\":\"解析后txt文件路径\",\"required\":true,\"defaultValue\":\"\"}]",
      "resultType": null,
      "sourceType": null,
      "trainingTaskId": null,
      "tableMetadataIds": null,
      "executionCount": 0,
      "visualizationConfigs": null,
      "inputJsonSchema": "{\"type\":\"object\",\"properties\":{\"file\":{\"description\":\"原文件路径\",\"type\":\"string\",\"maxLength\":3000},\"txt_file\":{\"description\":\"解析后txt文件路径\",\"type\":\"string\"},\"workflow_extraContext\":{\"description\":\"工作流额外的上下文参数（如环境变量等），可以是任何类型，非必填\"}},\"required\":[\"txt_file\"]}",
      "outputJsonSchema": "{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\"}},\"additionalProperties\":false}",
      "lastExecutionTime": null
    }
  ]
}
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - DEBUG - [main.py:116] - API 响应原始数据: {
  "msg": "查询成功",
  "code": 200,
  "data": [
    {
      "id": "2059567233220263937",
      "createBy": "duchangyuan",
      "createTime": "2026-05-27 17:27:48",
      "updateBy": "yy8z9",
      "updateTime": "2026-06-17 00:08:32",
      "serviceId": "2059567233190903810",
      "uniqueName": "文件导入（支持压缩包）",
      "name": "wenjiandaoruzhichiyasuobao_cdde86e3",
      "description": "dd",
      "visualizable": 0,
      "toolPrompt": null,
      "toolType": "api",
      "datasourceId": null,
      "sqlTemplate": null,
      "sqlParams": "[{\"type\":\"string\",\"name\":\"file\",\"displayName\":\"原文件路径\",\"maxLength\":3000,\"required\":false,\"defaultValue\":\"\"},{\"type\":\"string\",\"name\":\"txt_file\",\"displayName\":\"解析后txt文件路径\",\"required\":true,\"defaultValue\":\"\"}]",
      "resultType": null,
      "sourceType": null,
      "trainingTaskId": null,
      "tableMetadataIds": null,
      "executionCount": 0,
      "visualizationConfigs": null,
      "inputJsonSchema": "{\"type\":\"object\",\"properties\":{\"file\":{\"description\":\"原文件路径\",\"type\":\"string\",\"maxLength\":3000},\"txt_file\":{\"description\":\"解析后txt文件路径\",\"type\":\"string\"},\"workflow_extraContext\":{\"description\":\"工作流额外的上下文参数（如环境变量等），可以是任何类型，非必填\"}},\"required\":[\"txt_file\"]}",
      "outputJsonSchema": "{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\"}},\"additionalProperties\":false}",
      "lastExecutionTime": null
    }
  ]
}
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - DEBUG - [main.py:124] - API 响应 data 字段: [
  {
    "id": "2059567233220263937",
    "createBy": "duchangyuan",
    "createTime": "2026-05-27 17:27:48",
    "updateBy": "yy8z9",
    "updateTime": "2026-06-17 00:08:32",
    "serviceId": "2059567233190903810",
    "uniqueName": "文件导入（支持压缩包）",
    "name": "wenjiandaoruzhichiyasuobao_cdde86e3",
    "description": "dd",
    "visualizable": 0,
    "toolPrompt": null,
    "toolType": "api",
    "datasourceId": null,
    "sqlTemplate": null,
    "sqlParams": "[{\"type\":\"string\",\"name\":\"file\",\"displayName\":\"原文件路径\",\"maxLength\":3000,\"required\":false,\"defaultValue\":\"\"},{\"type\":\"string\",\"name\":\"txt_file\",\"displayName\":\"解析后txt文件路径\",\"required\":true,\"defaultValue\":\"\"}]",
    "resultType": null,
    "sourceType": null,
    "trainingTaskId": null,
    "tableMetadataIds": null,
    "executionCount": 0,
    "visualizationConfigs": null,
    "inputJsonSchema": "{\"type\":\"object\",\"properties\":{\"file\":{\"description\":\"原文件路径\",\"type\":\"string\",\"maxLength\":3000},\"txt_file\":{\"description\":\"解析后txt文件路径\",\"type\":\"string\"},\"workflow_extraContext\":{\"description\":\"工作流额外的上下文参数（如环境变量等），可以是任何类型，非必填\"}},\"required\":[\"txt_file\"]}",
    "outputJsonSchema": "{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\"}},\"additionalProperties\":false}",
    "lastExecutionTime": null
  }
]
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - INFO - [main.py:135] - 从 API 加载工作流配置成功，工作流ID: 2059567220704460801, 配置数量: 1
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - INFO - [main.py:165] - 已加载 1 个工具配置
2026-06-17 10:01:21 - lzwcai_workflow_to_mcp.main - INFO - [main.py:359] - 开始运行 MCP Server (stdio 模式)
2026-06-17 10:01:21 - asyncio - DEBUG - [proactor_events.py:634] - Using proactor: IocpProactor
2026-06-17 10:01:21 - mcp.server.lowlevel.server - DEBUG - [server.py:675] - Received message: root=InitializedNotification(method='notifications/initialized', params=None, jsonrpc='2.0')
