Files
lzwcai-mcp-server-package/lzwcai_mcp_iot/main.py
yuanzhipeng ec7e7fd7dc feat(lzwcai-demp-tool-server-dify-to-mcp): 初始化 Dify 集成工具模块
新增 Dify 到 MCP 的集成工具,支持通过 Dify API 将模型部署到 MCP 平台并进行推理。
该模块包含完整的服务器实现、依赖配置和命令行启动脚本。

主要功能:
- 支持 Workflow 和 Completion 模式的调用
- 自动翻译工具名称为驼峰命名格式
- 提供文件上传与任务停止接口
- 兼容流式与非流式响应处理
2025-12-16 17:52:04 +08:00

17 lines
479 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import os
# 设置企业ID必需
os.environ["ENTERPRISE_ID"] = "1952978233106669569"
# 设置API地址
os.environ["DEVICE_API_BASE_URL"] = "http://192.168.2.236:8088"
os.environ["VECTOR_API_BASE_URL"] = "http://192.168.2.236:5002"
# 注意employeeId 已不再需要,现在直接使用 ENTERPRISE_ID
# os.environ["employeeId"] = "1986712221817815042" # 已废弃
# 导入模块
from lzwcai_mcp_iot.iot_device_tool import main
if __name__ == "__main__":
main()