MindStackMindStack
HomeBlogTrendingProjects搜索⌘K
登录
返回技能列表
编程开发github

dify-plugin-tools-mcp_sse

Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools。主要特性包括:Solution 2: Modify MCP Servers config, for example: {...., "timeout": 50, "ssereadtimeout": 50}.、方案1:修改 .env 文件中的 NGINXKEEPALIVETIMEOUT 值,如:NGINXKEEPALIVETIMEOUT=650。、方案2:修改 MCP 服务配置,例如:{...., "timeout": 50, "ssereadtimeout": 50}。。

185
Stars
2026-05-31
更新时间
2
标签数
10
阅读分钟
agenttool
查看 GitHub 仓库

详细介绍

项目简介

Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools。主要特性包括:Solution 2: Modify MCP Servers config, for example: {...., "timeout": 50, "ssereadtimeout": 50}.、方案1:修改 .env 文件中的 NGINXKEEPALIVETIMEOUT 值,如:NGINXKEEPALIVETIMEOUT=650。、方案2:修改 MCP 服务配置,例如:{...., "timeout": 50, "ssereadtimeout": 50}。。

适用场景

代码审查与优化
自动化测试编写
文档生成与维护
代码重构建议

快速开始

# 克隆仓库
git clone https://github.com/junjiem/dify-plugin-tools-mcp_sse
# 进入目录
cd dify-plugin-tools-mcp_sse
# 查看文档
cat README.md

原文 README

Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools

Author: Junjie.M
Type: tool
Github Repo: https://github.com/junjiem/dify-plugin-tools-mcp_sse
Github Issues: issues


Description

Fetch and call tools by MCP protocol through HTTP with SSE or Streamable HTTP transport.

通过 HTTP with SSE 或 Streamable HTTP 传输方式使用 MCP 协议来发现和调用工具。

mcp_sse_plugin

mcp_sse_plugin_set_authorization

MCP Servers config, support multiple MCP services. The following example:

MCP服务配置,支持多个MCP服务。 如下示例:

{
  "server_name1": {
    "transport": "sse",
    "url": "http://127.0.0.1:8000/sse",
    "headers": {},
    "timeout": 50,
    "sse_read_timeout": 50
  },
  "server_name2": {
    "transport": "sse",
    "url": "http://127.0.0.1:8001/sse"
  },
  "server_name3": {
    "transport": "streamable_http",
    "url": "http://127.0.0.1:8002/mcp",
    "headers": {},
    "timeout": 50
  },
  "server_name4": {
    "transport": "streamable_http",
    "url": "http://127.0.0.1:8003/mcp"
  }
}

OR

{
  "mcpServers": {
      "server_name1": {
        "transport": "sse",
        "url": "http://127.0.0.1:8000/sse",
        "headers": {},
        "timeout": 50,
        "sse_read_timeout": 50
      },
      "server_name2": {
        "transport": "sse",
        "url": "http://127.0.0.1:8001/sse"
      },
      "server_name3": {
        "transport": "streamable_http",
        "url": "http://127.0.0.1:8002/mcp",
        "headers": {},
        "timeout": 50
      },
      "server_name4": {
        "transport": "streamable_http",
        "url": "http://127.0.0.1:8003/mcp"
      }
    }
}

Note: "transport" parameter as sse or streamable_http, default sse.

注: "transport" 参数为 sse 或 streamable_http ,默认为 sse。

agent_add_mcp_see_tools


Managed MCP Servers 托管的MCP服务器

If you want to try MCP but don't know how to deploy SSE transport's MCP Server, can you try connect to Managed MCP Servers.

如果你想尝试 MCP,但是不知道如何部署 SSE 传输的 MCP Server,可以尝试连接托管的 MCP 服务器。

Example 1 示例1

Composio Managed MCP Servers

Composio 托管的 MCP 服务器

composio_mcp_list

Reference Cursor Settings, shown below:

参考 Cursor 设置,如下图:

composio_mcp_cursor
composio_mcp_cursor2

MCP Servers config, shown below:

MCP 服务配置,如下示例:

{
  "tavily": {
    "url": "https://mcp.composio.dev/tavily/xxxx-xxxx-xxxx-xxxx"
  }
}

Example 2 示例2

Zapier Managed MCP Servers

Zapier 托管的 MCP 服务器

Copy the MCP Server URL for use in the Dify plug-in configuration.

复制 MCP Server URL,在 Dify 插件配置中使用。

zapier_mcp_servers

MCP Servers config, shown below:

MCP 服务配置,如下示例:

{
  "zapier-mcp": {
    "url": "https://actions.zapier.com/mcp/sk-xxxxxxxxxx/sse"
  }
}

Click "Edit MCP Actions" to go to the page for adding tools and actions.

点击 “Edit MCP Actions” ,进入工具和操作的添加页面。

zapier_mcp_edit_actions

Click "Add a new action" to add the required MCP service instance.

点击 “Add a new action”,添加需要的MCP服务实例。

zapier_mcp_add_actions

You can also continue to add different actions to enrich the tool set available to the Agent.

你还可以继续添加不同的 Action,丰富 Agent 可用的工具集。

Example 3 示例3

MCP.so Managed MCP Servers

MCP.so 托管的 MCP 服务器

Streamable HTTP

mcpso_mcp_servers_streamable_http

MCP Servers config, shown below:

MCP 服务配置,如下示例:

{
  "tavily-mcp": {
    "transport": "streamable_http",
    "url": "https://router.mcp.so/mcp/xxxxxxxxxxx"
  }
}
SSE

mcpso_mcp_servers_sse

MCP Servers config, shown below:

MCP 服务配置,如下示例:

{
  "tavily-mcp": {
    "url": "https://router.mcp.so/sse/xxxxxxxxxxx"
  }
}

Installing Plugins via GitHub 通过 GitHub 安装插件

Can install the plugin using the GitHub repository address. Visit the Dify platform's plugin management page, choose to install via GitHub, enter the repository address, select version number and package file to complete installation.

可以通过 GitHub 仓库地址安装该插件。访问 Dify 平台的插件管理页,选择通过 GitHub 安装插件,输入仓库地址后,选择版本号和包文件完成安装。

install_plugin_via_github

install_plugin_via_github


FAQ

1. How to Handle Errors When Installing Plugins? 安装插件