شعار Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools

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

المجتمع
junjiem

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

الناشرjunjiem
المستودعdify-plugin-tools-mcp_sse
اللغةPython
التفريعات
41
النجوم
187
الأدوات المتاحة
0
نوع نقل البياناتstreamable-http
الفئات
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 187، والنسخ المتفرعة: 41 في المستودع المرتبط.

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服务。 如下示例:

json
{
  "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

json
{
  "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 服务配置,如下示例:

json
{
  "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 服务配置,如下示例:

json
{
  "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 服务配置,如下示例:

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

mcpso_mcp_servers_sse

MCP Servers config, shown below:

MCP 服务配置,如下示例:

json
{
  "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? 安装插件时遇到异常应如何处理?

Issue: If you encounter the error message: plugin verification has been enabled, and the plugin you want to install has a bad signature, how to handle the issue?

Solution: Add the following line to the end of your .env configuration file: FORCE_VERIFYING_SIGNATURE=false Once this field is added, the Dify platform will allow the installation of all plugins that are not listed (and thus not verified) in the Dify Marketplace.

问题描述:安装插件时遇到异常信息:plugin verification has been enabled, and the plugin you want to install has a bad signature,应该如何处理?

解决办法:在 .env 配置文件的末尾添加 FORCE_VERIFYING_SIGNATURE=false 字段即可解决该问题。 添加该字段后,Dify 平台将允许安装所有未在 Dify Marketplace 上架(审核)的插件,可能存在安全隐患。

2. How to install the offline version 如何安装离线版本

Scripting tool for downloading Dify plugin package from Dify Marketplace and Github and repackaging [true] offline package (contains dependencies, no need to be connected to the Internet).

从Dify市场和Github下载Dify插件包并重新打【真】离线包(包含依赖,不需要再联网)的脚本工具。

Github Repo: https://github.com/junjiem/dify-plugin-repackaging

3. Set up authorization save invalid and no error message 设置授权保存无效且无错误消息

Issue: The set timeout time exceeds the default keepalive timeout of 65 seconds in nginx in Dify.

Solution:

  • Solution 1: Modify NGINX_KEEPALIVE_TIMEOUT value in the .env file, for example: NGINX_KEEPALIVE_TIMEOUT=650.
  • Solution 2: Modify MCP Servers config, for example: {...., "timeout": 50, "sse_read_timeout": 50}.

问题描述:设置的超时时间超过了Dify中默认的Nginx保持连接的超时时间65秒。

解决办法:

  • 方案1:修改 .env 文件中的 NGINX_KEEPALIVE_TIMEOUT 值,如:NGINX_KEEPALIVE_TIMEOUT=650。
  • 方案2:修改 MCP 服务配置,例如:{...., "timeout": 50, "sse_read_timeout": 50}。

التثبيت

TypingMind
المتطلبات المسبقة:

Node.js 18+

{
  "mcpServers": {
    "junjiem-dify-plugin-tools-mcp_sse": {
      "command": "",
      "args": []
    }
  }
}

استخدم MCP الخاص بـ Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يتصل تكامل MCP هذا عبر عنوان URL لخادم MCP مستضاف عن بُعد في TypingMind.

أضف عنوان URL لخادم MCP

استخدم هذا الخيار عندما يكون Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools مستضافًا بالفعل عن بُعد أو عندما يريد فريقك موصلًا مشتركًا واحدًا يمكن لعدة مستخدمين الوصول إليه.

1

فتح موصلات MCP

في TypingMind، انتقل إلى «الإضافات»، وافتح «موصلات MCP»، ثم اختر «إضافة رابط».

  1. افتح TypingMind في متصفحك.
  2. انتقل إلى الإضافات.
  3. افتح موصلات MCP.
  4. انقر على «إضافة عنوان URL».
نموذج إضافة عنوان URL لخادم MCP مخصص في TypingMind
2

لصق عنوان URL للخادم

أدخل عنوان URL لخادمك في حقل «رابط الخادم». أضف اسمًا للاتصال أو وصفًا أو أيقونة أو ترويسات HTTP مخصصة أو إعدادات عميل OAuth إذا كان الخادم يتطلب ذلك.

  1. ألصق عنوان URL لخادمك في حقل «رابط الخادم».
  2. أدخل اسمًا لاتصال Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools.
  3. أضف وصفًا وأيقونة لتسهيل التعرّف على الاتصال إن أردت.
  4. أضف ترويسات HTTP مخصصة أو تفاصيل عميل OAuth إذا كان الخادم يتطلب المصادقة.
3

إنشاء الاتصال

انقر على «إنشاء اتصال»، ثم عُد إلى قائمة الإضافات وتأكد من أن اتصال MCP الجديد نشط.

  1. انقر على «إنشاء اتصال».
  2. عُد إلى قائمة موصلات MCP.
  3. تأكد من ظهور اتصال Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools بحالة «نشط».
  4. حدّث قائمة الإضافات إذا لم يظهر الاتصال فورًا.
4

تبديل النماذج دون إعادة الاتصال

ابدأ محادثة مع نموذجك المفضل، وفعّل أدوات Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools من «الإضافات»، وانتقل إلى نموذج آخر عند الحاجة. يظل اتصال MCP متاحًا في مساحة عمل TypingMind.

  1. ابدأ محادثة جديدة في TypingMind.
  2. اختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  3. فعّل أدوات Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools من قسم الإضافات.
  4. اطلب من النموذج استخدام الأداة عند الحاجة.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر وأعد استخدام اتصال MCP نفسه.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools لمساعدتي في هذه المهمة؟
Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools.

الأسئلة الشائعة

ما استخدامات خادم MCP Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools؟

Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools بـ TypingMind؟

يمكن توصيل Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools بـ TypingMind بإضافة عنوان URL لخادم MCP المستضاف الخاص به. يفيد ذلك عندما تريد اتصال MCP بعيدًا متاحًا من مساحة عملك في TypingMind.

ما الأدوات التي يوفّرها خادم MCP Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools في TypingMind؟

يتيح Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇