摘要
通过 MCP 将 Deliveroo Partner API 连接到 ChatGPT。使用 AnythingMCP 跟踪订单、分析菜单表现,并监控餐厅指标。
使用 ChatGPT 管理你的 Deliveroo 餐厅
Deliveroo 没有 MCP 连接器。通过 AnythingMCP,你可以将 Deliveroo 的 Partner API 转换为 MCP 服务器,让 ChatGPT 跟踪订单、分析菜单表现,并监控你的餐厅运营。
你需要的准备
- 拥有 API 访问权限的 Deliveroo Partner 账户
- 安装 Docker
- ChatGPT Desktop 或任何兼容 MCP 的 AI 客户端
分步指南
第一步:部署 AnythingMCP
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
第二步:获取 Deliveroo Partner API 凭证
联系 Deliveroo Partner 支持以请求 API 访问权限。你将收到 Partner API 的 OAuth 凭证。
第三步:创建 REST 连接器
创建一个基础 URL 为 https://api.deliveroo.com 的 REST 连接器。配置 OAuth 2.0 认证。
第四步:暴露关键端点
GET /orders— 订单历史GET /orders/{id}— 订单详情GET /menu— 当前菜单GET /restaurant/status— 餐厅可用性GET /performance— 性能指标
第五步:连接 ChatGPT
ChatGPT 从 OpenAI 的服务器发起连接,因此你的 AnythingMCP 实例需要公网 HTTPS URL,localhost 无法使用。也可以直接使用 cloud.anythingmcp.com。
- 前往 chatgpt.com/plugins,点击 Add,然后选择 Add custom MCP server。
- 填写名称,例如 Name:
AnythingMCP。 - 在 Connection 下的 Server URL 中填入
https://your-anythingmcp-instance.com/mcp,Authentication 保持为 OAuth。 - 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
- 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。
第六步:分析你的餐厅
- "我们今天收到了多少订单?"
- "本周我们最畅销的商品是什么?"
- "我们的平均订单价值是多少?"
- "给我显示午餐高峰期的所有订单"
- "哪些菜单项很少被点?"
下一步
这份指南对你有帮助吗?