Skip to content

在dify平台无法访问ezbookking项目的mcp接口 #118

@hoey94

Description

@hoey94

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

Dify version Dify版本

1.8.1

Plugin version 插件版本

0.2.3

HTTP with SSE or Streamable HTTP

Streamable HTTP

Problem description 问题描述

1. 部署ezbookking 参考文章,随后启用mcp。

https://blog.csdn.net/wbsu2004/article/details/149827439#comments_38080591

2. ezbookking给的json如下:

{
    "mcpServers": {
        "ezbookkeeping-mcp": {
            "type": "streamable-http",
            "url": "http://192.168.30.5:8422/mcp",
            "headers": {
                "Authorization": "Bearer eyJhbGciOiJIUzI1NiIxxxxxxxsAqM"
            }
        }
    }
}

3. 更改成插件可以用的json如下 :

{
    "ezbookkeeping": {
        "transport": "streamable_http",
        "url": "http://192.168.30.5:8422/mcp",
        "headers": {
            "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsxxxx0tZzujaHC8dlsAqM"
        },
        "timeout": 50
    }
}

4. 到dify中通过插件配置MCP

到市场安装mcp插件

Image

5. 到dify创建Agent,在工具中添加MCP,并使用。

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions