Dify AI 的模型上下文协议服务器。此服务器通过标准化协议使大语言模型能够与 Dify AI 的聊天完成功能进行交互。
# 构建 Docker 镜像
make docker
# 使用 Docker 运行
docker run -i --rm mcp/dify https://your-dify-api-endpoint your-dify-api-key
在你的 claude_desktop_config.json 文件中添加以下配置:
{
"mcpServers": {
"dify": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dify",
"https://your-dify-api-endpoint",
"your-dify-api-key"
]
}
}
}
请将 your-dify-api-endpoint 和 your-dify-api-key 替换为你实际的 Dify API 凭证。
与 Dify AI 接口的餐厅推荐工具:
参数:
LOCATION(字符串):餐厅的位置BUDGET(字符串):预算限制query(字符串):发送给 Dify AI 的查询conversation_id(字符串,可选):用于维护聊天上下文# 初始设置
make setup
# 构建项目
make build
# 格式化代码
make format
# 运行 linter
make lint
本项目发布于 MIT 许可证 下。
该服务器使用您提供的 API 密钥与 Dify AI 进行交互。请确保:
欢迎贡献!请随时提交一个拉取请求。