feat(lzwcai-demp-tool-server-dify-to-mcp): 初始化 Dify 集成工具模块

新增 Dify 到 MCP 的集成工具,支持通过 Dify API 将模型部署到 MCP 平台并进行推理。
该模块包含完整的服务器实现、依赖配置和命令行启动脚本。

主要功能:
- 支持 Workflow 和 Completion 模式的调用
- 自动翻译工具名称为驼峰命名格式
- 提供文件上传与任务停止接口
- 兼容流式与非流式响应处理
This commit is contained in:
2025-12-16 17:52:04 +08:00
commit ec7e7fd7dc
179 changed files with 18443 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "lzwcai-mcp-iot"
version = "0.3.3"
description = "IoT设备控制服务器使用FastMCP框架提供设备操作功能"
authors = [
{name = "LZWCAI开发团队", email = "dev@lzwcai.com"}
]
readme = "README.md"
requires-python = ">=3.8"
license = "LicenseRef-Proprietary"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
]
dependencies = [
"fastmcp>=0.1.0",
"requests"
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"black>=23.1.0",
"isort>=5.12.0",
"flake8>=6.0.0",
"mypy>=1.0.0",
]
[project.scripts]
lzwcai-mcp-iot = "lzwcai_mcp_iot.iot_device_tool:main"
[tool.setuptools]
packages = ["lzwcai_mcp_iot", "lzwcai_mcp_iot.src"]
[tool.black]
line-length = 88
target-version = ["py38", "py39", "py310", "py311"]
include = '\.pyi?$'
[tool.isort]
profile = "black"
line_length = 88
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]