开启左侧

Dify智能体配置mcp服务

[复制链接]
惟爱_熙 发表于 4 天前 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
作者:CSDN博客
sseEndpoint 代码中定义的位置:
@Bean
public McpServerTransportProvider weatherTransportProvider(ObjectMapper objectMapper) {
    return WebFluxSseServerTransportProvider.builder()
            .objectMapper(objectMapper)
            .messageEndpoint("/weather/mcp/message")
            .sseEndpoint("/weather/sse")     // ← 这里定义了 /weather/sse
            .build();
}
1、Settings → Agent → MCP Servers → 添加 MCP Server
Dify智能体配置mcp服务-1.png


Dify智能体配置mcp服务-2.png


2、创建的智能体选择MCP服务
Dify智能体配置mcp服务-3.png

Dify智能体配置mcp服务-4.png



原文地址:https://blog.csdn.net/slc2006119/article/details/162660400
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

发布主题
阅读排行更多+

Powered by Discuz! X3.4© 2001-2013 Discuz Team.( 京ICP备17022993号-3 )