dify-plugin-agent-mcp_sse icon indicating copy to clipboard operation
dify-plugin-agent-mcp_sse copied to clipboard

Unable to connect to local MCP server

Open Qmassonnat opened this issue 11 months ago • 2 comments

Please confirm before submission 在提交之前,请确认

Dify version Dify版本

latest

Plugin version 插件版本

latest

Function Calling or ReAct

ReAct

HTTP with SSE or Streamable HTTP

Streamable HTTP

Problem description 问题描述

When trying to connect to a local MCP server that I developed, I get this error message: Run failed: Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"ConnectError","message":"[Errno 111] Connection refused"}

The MCP server works as intended and is running, I tested it with the MCP inspector. It is deployed with streamable HTTP.

Qmassonnat avatar May 14 '25 08:05 Qmassonnat

same issue

dotorowoo avatar May 27 '25 05:05 dotorowoo

@dotorowoo i got it to work by building a Docker image of my MCP server and adding it as a service to the Dify docker-compose

Qmassonnat avatar May 27 '25 07:05 Qmassonnat