-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
例行检查
- 我已确认目前没有类似 issue
- 我已完整查看过项目 README,以及项目文档
- 我使用了自己的 key,并确认我的 key 是可正常使用的
- 我理解并愿意跟进此 issue,协助测试和提供反馈
- 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭
你的版本
- 公有云版本
- 私有部署版本, 具体版本号: 4.14.1
问题描述, 日志截图,配置文件等
在工作流中,使用“工具调用”节点连接mcp工具,报错:[Error] 2025-11-14 02:40:01 [MCP Client] Failed to call tool demandclarification:
{
message: 'SSE error: TypeError: fetch failed: Connect Timeout Error',
stack: 'Error: SSE error: TypeError: fetch failed: Connect Timeout Error\n' +
' at _eventSource.onerror (file:///app/node_modules/.pnpm/@modelcontextprotocol[email protected]/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js:71:31)\n' +
' at EventSource.scheduleReconnect_fn (file:///app/node_modules/.pnpm/[email protected]/node_modules/eventsource/dist/index.js:248:53)\n' +
' at file:///app/node_modules/.pnpm/[email protected]/node_modules/eventsource/dist/index.js:98:174\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)'
}
在mcp工具集中可以正常添加mcp工具。
我的docker配置:
fastgpt-mcp-server:
container_name: fastgpt-mcp-server
#image: ghcr.io/labring/fastgpt-mcp_server:v4.9.9 # git
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.10.0-fix # 阿里云
ports:
- 3005:3000
networks:
- fastgpt
restart: always
environment:
- FASTGPT_ENDPOINT=http://fastgpt:3000
fastgpt-plugin:
#
# image: ghcr.io/labring/fastgpt-plugin:v0.1.2 # git
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.3.1 # 阿里云
container_name: fastgpt-plugin
restart: always
networks:
- fastgpt
environment:
#
- AUTH_TOKEN=xxxxxx
#
- S3_EXTERNAL_BASE_URL=http://你的外网IP:9010
- S3_ENDPOINT=fastgpt-minio
- S3_PORT=9000
- S3_USE_SSL=false
- S3_ACCESS_KEY=xxxxxx
- S3_SECRET_KEY=xxxxxx
- S3_PUBLIC_BUCKET=fastgpt-tool # 新增:系统工具临时文件桶
- S3_PRIVATE_BUCKET=fastgpt-plugin # 原 MINIO_BUCKET
- RETENTION_DAYS=15 # 新增:临时文件保留天数
- MONGODB_URI=xxxxxx # 新增
- REDIS_URL=xxxxxx # 新增
depends_on:
fastgpt-minio:
condition: service_healthy
fastgpt:
container_name: fastgpt
#
#image: ghcr.io/labring/fastgpt:v4.9.9 # git
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.1 # 阿里云
ports:
- 3000:3000
networks:
- fastgpt
depends_on:
- mongo
- pg
- sandbox
restart: always
environment:
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
- FE_DOMAIN=
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
- DEFAULT_ROOT_PSW=xxxxxx
# AI Proxy 的地址,如果配了该地址,优先使用
- AIPROXY_API_ENDPOINT=xxxxxx
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
- AIPROXY_API_TOKEN=xxxxxx
# 数据库最大连接数
- DB_MAX_LINK=30
# 登录凭证密钥
- TOKEN_KEY=xxxxxx
# root的密钥,常用于升级时候的初始化请求
- ROOT_KEY=xxxxxx
# 文件阅读加密
- FILE_TOKEN_KEY=xxxxxx
# 密钥加密key
- AES256_SECRET_KEY=xxxxxx
# plugin 地址
- PLUGIN_BASE_URL=http://fastgpt-plugin:3000
- PLUGIN_TOKEN=admin@123
# MongoDB
- MONGODB_URI=xxxxxx
- MONGOOSE_CONNECT_TIMEOUT=30000
- MONGOOSE_SERVER_SELECTION_TIMEOUT=30000
# pg 连接参数
- PG_URL=xxxxxx
# Redis 连接参数
- REDIS_URL=xxxxxx
# sandbox 地址
- SANDBOX_URL=http://sandbox:3000
# 日志等级: debug, info, warn, error
- LOG_LEVEL=info
- STORE_LOG_LEVEL=warn
# 工作流最大运行次数
- WORKFLOW_MAX_RUN_TIMES=1000
# 批量执行节点,最大输入长度
- WORKFLOW_MAX_LOOP_TIMES=100
# 自定义跨域,不配置时,默认都允许跨域(多个域名通过逗号分割)
- ALLOWED_ORIGINS=
# 是否开启IP限制,默认不开启
- USE_IP_LIMIT=false
# 对话文件过期天数
- CHAT_FILE_EXPIRE_TIME=7
#
#
- S3_EXTERNAL_BASE_URL=xxxxxx
- S3_ENDPOINT=xxxxxx
- S3_PORT=9000
- S3_USE_SSL=false
- S3_ACCESS_KEY=minioadmin
- S3_SECRET_KEY=minioadmin
- S3_PLUGIN_BUCKET=fastgpt-plugin
- S3_PUBLIC_BUCKET=fastgpt-tool
- S3_PRIVATE_BUCKET=fastgpt-plugin
volumes:
- ./config.json:/app/data/config.json
config.json配置:"mcpServerProxyEndpoint": "http://localhost:3005"
config中改了http://fastgpt-mcp-server:3000、外网ip:3005 试了都不行
有没有大佬帮忙指点下
复现步骤
预期结果
相关截图