Expose Dify workflows as Model Context Protocol (MCP) tools to AI clients like Claude and Cursor, enabling seamless integration, secure session management, automatic tool discovery, and compatibility with the latest MCP Streamable HTTP standards.
Unlock the full potential of Dify as MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
将Dify工作流作为Model Context Protocol (MCP)服务器暴露给Claude等AI客户端。
本项目实现了一个Dify插件,允许将Dify工作流通过Model Context Protocol (MCP)协议暴露给支持该协议的AI客户端(如Claude Desktop、Cursor等)。通过这个插件,您可以:
Model Context Protocol (MCP) 是一个开放标准,允许AI模型与外部工具和数据源交互。随着MCP的发展,协议正在从HTTP+SSE模式过渡到新的"Streamable HTTP"传输模式,为无状态服务器提供更好的支持。
本项目跟踪并实现了最新的MCP协议变化,特别是:
确保您的Dify应用包含至少一个工作流,并且已经正确配置。
https://您的Dify实例地址/difyapp_as_mcp_server
https://您的Dify实例地址/difyapp_as_mcp_server
本插件使用两个端点实现MCP服务器:
由于Dify插件环境的限制,我们采用了"最小可行"的SSE实现,包括:
工具会自动从Dify工作流中生成,并通过MCP协议暴露给客户端。工具定义包括:
本插件支持符合最新MCP规范的无状态服务器模式,这意味着:
连接问题:
工具不可见:
工具执行失败:
欢迎提交问题和合并请求。在提交代码之前,请确保遵循代码风格并添加适当的测试。
MIT
本项目参考了Model Context Protocol规范,特别是最新的Streamable HTTP传输PR #206。
VIBE CODING 探索产物 不可用状态
Author: yevanchen Version: 0.0.1 Type: extension
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!