Provides integration with Dify workflows, allowing AI agents to execute and utilize Dify applications as tools via the Model Context Protocol (MCP).
Dify Workflows MCP 服务器 (TypeScript)
一个 Model Context Protocol (MCP) 服务器的 TypeScript 实现,将 Dify 工作流作为工具暴露出来。
特性
- 将 Dify 应用程序转换为 MCP 工具
- 支持从 Dify 工作流流式响应(待实现)
- 通过 YAML 配置文件进行配置
- 使用 TypeScript 编写,具有类型安全性
前提条件
- Node.js 18 或更高版本
- npm 8 或更高版本
- 访问 Dify API 和应用程序密钥
安装
Installing via Smithery
To install Dify Workflows for Claude Desktop automatically via Smithery:
Manual Installation
- 克隆仓库:
- 安装依赖:
- 创建配置文件:
使用方法
- 构建项目:
- 启动服务器:
开发环境:
配置
服务器可以使用 YAML 文件进行配置。默认情况下,它会在项目根目录中查找 config.yaml
。您可以使用 CONFIG_PATH
环境变量指定不同的路径。
配置选项
dify_base_url
: Dify API 的基本 URLdify_app_sks
: Dify 应用程序密钥列表
Cline/Roo Code配置
注意事项
- 当前运行工作流使用的响应模式是:response_mode: 'blocking',会等待工作流执行完成后输出最终结果
- 当前工作流输出字段为:
code
和checkResult
,如输出字段不一致,需要调整下面的代码
许可证
ISC
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A TypeScript implementation of a Model Context Protocol (MCP) server that exposes Dify workflows as tools for AI systems to interact with.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that exposes the official Notion SDK, allowing AI models to interact with Notion workspaces.Last updated -17777TypeScriptApache 2.0
- -securityAlicense-qualityA TypeScript implementation of a Model Context Protocol server that provides a frictionless framework for developers to build and deploy AI tools and prompts, focusing on developer experience with zero boilerplate and automatic tool registration.Last updated -6TypeScriptMIT License
- -security-license-qualityA server implementation that enables integration of Dify workflows with Model Context Protocol (MCP), allowing users to access Dify's capabilities through MCP-compatible clients.Last updated -
- -securityFlicense-qualityA TypeScript template for creating Model Context Protocol servers that enable AI models to utilize external tools, including example operations and simple number addition functionality.Last updated -2TypeScript