← 返回 Skills 市场
winter1102

麦当劳MCP自动化工具

作者 winter1102 · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
271
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install mcd-mcp
功能描述
麦当劳MCP接口自动化工具,支持自动领券、查询门店库存、计算最优优惠组合、一键下单,解决麦当劳优惠券手动领取麻烦、库存查询不便的问题。
安全使用建议
Do not run this script blindly. Before installing: (1) confirm the repository/source (homepage shows placeholders); prefer an official upstream. (2) Inspect the mcd-cli.sh locally — it requires MCD_TOKEN and shells out to openssl and bc (ensure these are installed and declared). (3) Do not paste long-lived tokens into publicly visible cron jobs or logs; use a secure secret store and rotate tokens frequently. (4) Be cautious about the SKILL.md suggestion to '抓包获取' (packet capture) — intercepting app traffic can expose other credentials and may violate terms. (5) Note the script embeds a signing secret — ask the author why a client secret is hard-coded. (6) If you still want to use it, run it in an isolated account/container, verify it only talks to the expected domain (https://mcp.mcd.cn), and avoid granting broader credentials. If any of these concerns are unacceptable or unexplained by the author, do not install.
功能分析
Type: OpenClaw Skill Name: mcd-mcp Version: 1.1.0 The skill bundle contains a critical shell injection vulnerability in `mcd-cli.sh` because user-provided inputs (such as city names or keywords) are passed unsanitized into a `curl` command, potentially allowing arbitrary command execution. Furthermore, there is a major discrepancy between the `SKILL.md` instructions, which claim the API uses JSON-RPC 2.0 and a `tools/call` method, and the actual `mcd-cli.sh` script, which uses REST-like endpoints (e.g., `/v1/coupon/receive`). While the script targets a legitimate domain (mcp.mcd.cn) and uses a known signature salt, the combination of RCE risk and contradictory instructions makes the bundle unsafe for use.
能力评估
Purpose & Capability
Name/description match the script's functionality (coupon receive, stock query, price calc). However the registry metadata declares no required environment variables while both SKILL.md and mcd-cli.sh require MCD_TOKEN; the script also uses other tools (openssl, bc) that are not declared. The skill therefore fails to declare the credentials and binaries it actually needs.
Instruction Scope
SKILL.md instructs users to capture the MCD_TOKEN via packet capture and to place the token in environment/cron jobs — both are sensitive operations. The docs and '避坑指南' contain guidance about JSON-RPC/tools/call but the script calls /v1/... endpoints (inconsistent). The script constructs signed requests and posts to https://mcp.mcd.cn only (no third‑party exfil endpoints), but instructions encourage storing tokens in cron which increases exposure.
Install Mechanism
There is no install spec (instruction-only skill) and a single bash script is included. This is lower install risk since nothing is downloaded at runtime, but included code still runs locally and should be reviewed before execution.
Credentials
The script requires a private MCD_TOKEN (and SKILL.md documents MCD_NOTIFY_URL, MCD_CITY, MCD_STORE_ID) yet the registry lists no required env vars. The script also uses a hard-coded signing secret string, which is sensitive and unusual to embed client-side. Missing declarations for openssl and bc increase the chance of runtime errors and undisclosed behavior.
Persistence & Privilege
always:false and no system config paths requested. The skill does not ask for permanent platform privileges. It does recommend adding a cron job (user action), which would store a token in a scheduler environment — that is a user-configured persistence decision, not an automated privilege escalation by the skill itself.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install mcd-mcp
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /mcd-mcp 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
更新:新增实战避坑指南、修复正确的JSON-RPC调用流程、更新Token有效期为24h~7天、补充下单前必做检查步骤、修复商品编码错误问题
v1.0.0
Initial release: 支持自动领券、查询门店库存、计算最优优惠组合,自动处理风控和Rate Limit问题
元数据
Slug mcd-mcp
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

麦当劳MCP自动化工具 是什么?

麦当劳MCP接口自动化工具,支持自动领券、查询门店库存、计算最优优惠组合、一键下单,解决麦当劳优惠券手动领取麻烦、库存查询不便的问题。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 271 次。

如何安装 麦当劳MCP自动化工具?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install mcd-mcp」即可一键安装,无需额外配置。

麦当劳MCP自动化工具 是免费的吗?

是的,麦当劳MCP自动化工具 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

麦当劳MCP自动化工具 支持哪些平台?

麦当劳MCP自动化工具 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 麦当劳MCP自动化工具?

由 winter1102(@winter1102)开发并维护,当前版本 v1.1.0。

💬 留言讨论