by wenboxia
麦麦参谋:想吃的一样不变,用麦当劳官方核价帮你找到这一顿更合适的买法(麦当劳中国 MCP · Agent Skill · 零依赖 CLI)
# Add to your Claude Code skills
git clone https://github.com/wenboxia/mcd-advisorSee how mcd-advisor compares with popular alternatives.
mcd-advisor is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by wenboxia. 麦麦参谋:想吃的一样不变,用麦当劳官方核价帮你找到这一顿更合适的买法(麦当劳中国 MCP · Agent Skill · 零依赖 CLI). It has 52 GitHub stars.
mcd-advisor's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/wenboxia/mcd-advisor" and add it to your Claude Code skills directory (see the Installation section above). mcd-advisor ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
mcd-advisor is primarily written in JavaScript. It is open-source under wenboxia on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mcd-advisor against similar tools.
No comments yet. Be the first to share your thoughts!
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
你帮用户回答一个问题:想吃的东西一样不变,这一顿怎么买更合适。
所有比较、核价、排序都由脚本 bin/mcd-advisor.mjs 完成;你只负责问清楚要吃什么、运行脚本、把结果讲清楚。
quote.price,单位是分,除以 100 是元)。不许自己算价、估价、凑整。create-order、auto-bind-coupons、draw-lottery、mall-create-order。--claim 的命令(脚本会说明「会领取全部可领券」并要求亲手输入 y)。S1 问清楚三件事(缺什么问什么,一次问完)
用户说得模糊(「想吃鸡腿堡配可乐」)时,先复述成具体清单让用户确认一次,再运行。
S2 运行脚本(在本 Skill 目录下)
node bin/mcd-advisor.mjs "麦辣鸡腿堡 中薯 中可乐" --city 上海市 --near 人民广场 --json
0:有结论(看 recommended;若 noPlan 存在,说明这家店买不到「一模一样」的这一顿,原样转告原因)。2:需要用户澄清(看 needsClarification:有 options 就原样给用户选,notFound 就请用户换个具体说法),再重跑。3:这次没拿到任何官方核价(看 unknown[].reason),告诉用户这次不能给建议,换个时间或门店;不要套用 S3 模板。1:出错,按 references/troubleshooting.md 处理。S3 讲结果(按下面的模板,3–6 行,不要展开所有方案)
✅ 建议:{recommended.lines 的 name,含数量} ¥{recommended.quote.price/100}(官方核价)
{saving>0 时:比分开点(¥{baseline.quote.price/100})少付 ¥{saving/100};keepOriginal 时:保持原来的点法就好}
⚠️ {notices:菜单显示 ¥{menuPrice/100} 的「{name}」要随单加购会员卡;只有 plain.status 为 verified 时写「不加卡 ¥{plain.price/100}」,只有 withCard.status 为 verified 时写「加卡 ¥{withCard.price/100}(含卡费)」;有 extras 时写「多出 {extras}」}
🟡 {pending:可领券「{title}」还没领,领了才能核价;领取会一次领取全部 {claimableCount} 张}
最后附一句:价格只代表这家店此刻的官方报价,下单时以 App 为准。用户想看依据时,再给出账单(门店、时间、每行商品、核价编号 quote.traceId)。
references/rules.mdreferences/troubleshooting.mdMCP_INTEGRATION.md菜单显示 ¥28,为什么这次核价是 ¥57?
你想吃的东西(餐品、规格、数量)一样都不变,麦麦参谋用麦当劳官方核价帮你核对这一顿怎么买更合适:分开点、套餐、随心配 1+1、门店券,挑出一个,并附上一张能核对的账单。省得下就告诉你怎么省,省不下就直说。
👉 打开在线体验:点选想吃的,马上看到建议和账单。页面上 249 个组合的价格,都是在真实门店由麦当劳官方核价接口逐个返回的,不是估算。
这三个案例覆盖了三种结果:
| 你想吃 | 麦麦参谋的回答 | 依据 |
|---|---|---|
| 麦香鸡 + 中可乐 | 点随心配 1+1,¥13.9(分开点 ¥27.0) | 两样一样不少,官方核价 |
| 麦辣鸡腿堡 + 中薯 + 中可乐 | 点三件套,¥33.5(分开点 ¥46.0);菜单上 ¥28 的四件套要随单加购麦金卡,不加卡 ¥57.0,加卡 ¥37.9(含 ¥9.9 卡费),而且会多一份麦乐鸡 | 每种买法都单独核价 |
| 只要一个麦辣鸡腿堡 | 保持原单,¥22.5 | 套餐会多出薯条可乐,不算同一顿 |
几个人一起点:手机传一圈、大家把要的写进同一句话就行,它会算出合在一起怎么买更划算。比如三个人各要一个汉堡 + 中薯 + 中可乐:
node bin/mcd-advisor.mjs "巨无霸 板烧鸡腿堡 麦辣鸡腿堡 3个中薯 3杯中可乐" --city 上海市 --near 人民广场
建议点巨无霸、板烧鸡腿堡、麦辣鸡腿汉堡三份三件套,共 ¥104.5,分开点要 ¥142.0,少付 ¥37.5,同样有离线回放记录。它只回答「合在一起怎么买」,不做 AA 分账,谁付多少你们自己转就好。
打开 https://wenboxia.github.io/mcd-advisor/,选主食、小食、饮品和份数,右边就是麦麦参谋的回答:建议买法、少付多少、会员条件价的解释、可领券提醒,还有一张能展开核对的账单。
页面数据是在一家上海门店的午餐时段用官方核价逐个录下的快照;想用你自己的门店实时核价,用下面两种方式。
本仓库就是一个标准的 Agent Skill(SKILL.md),可以装进 WorkBuddy、Claude Code、Codex 等支持 Skill 的 AI 助手。装好后直接说「麦辣鸡腿堡加中薯中可乐,人民广场附近怎么买更划算」就行。
| AI 助手 | 怎么装 |
|---|---|
| WorkBuddy | 下载本仓库,在【专家 · 技能 · 连接器】里导入整个文件夹;或者用下面的命令放进 WorkBuddy 的技能目录,再重启 WorkBuddy |
| Claude Code | git clone https://github.com/wenboxia/mcd-advisor.git ~/.claude/skills/mcd-advisor |
| Codex 等 | 把仓库放进该工具的 Skill 目录 |
git clone https://github.com/wenboxia/mcd-advisor.git ~/.workbuddy/skills/mcd-advisor
Windows 上 WorkBuddy 的技能目录是 %USERPROFILE%\.workbuddy\skills\。
第一次用之前,需要你自己的麦当劳 MCP Token(在 open.mcd.cn/mcp 用手机号登录 → 控制台 → 激活):
~/.config/mcd-advisor/.env(格式见 .env.example)。Token 只留在你自己的电脑上,不要发给任何人。
不管装在哪个 AI 助手里,它都只负责问清楚要吃什么、运行脚本、把结果讲清楚;核价由脚本直连麦当劳官方 MCP 完成,价格一律来自官方核价。
Skill 按三层渐进式披露组织:
SKILL.md 正文约 40 行,只放硬规则和流程;references/ 里的规则和排错文档在需要时才读。没有支持 Skill 的工具?在配置里加上 DEEPSEEK_API_KEY,用一句大白话问也行(换 Kimi、GLM 时再设 LLM_BASE_URL 和 DEEPSEEK_MODEL):
node bin/mcd-advisor.mjs --ask "中午想在上海人民广场吃个麦辣鸡腿堡,配中薯和可乐"
零第三方依赖,Node.js 18+。先离线跑一下,不需要 Token:
git clone https://github.com/wenboxia/mcd-advisor.git && cd mcd-advisor && npm run demo
命令行输出示例:
配好 Token 后实时核价:
node bin/mcd-advisor.mjs "麦辣鸡腿堡 中薯 中可乐" --city 上海市 --near 人民广场
node bin/mcd-advisor.mjs "两个麦香鸡 两杯中可乐" --store 1450713 --json
node bin/mcd-advisor.mjs "麦辣鸡腿汉堡三件套" --city 上海市 --near 人民广场 # 报套餐名也行,按默认搭配拆开比较
| 选项 | 作用 |
|---|---|
--city --near |
按城市 + 地标找最近的门店;都不填就用你在 App 里收藏的门店 |
--store |
直接指定门店编号 |
--json |
输出 JSON,给 Agent 或其他程序用 |
--ask |
用一句大白话提问(需要 DeepSeek 等模型 Key) |
--claim |
领取麦麦省可领券后重新核价。官方接口会一次领取全部可领券,所以脚本会先说明,并要你在终端里亲手输入 y |
--replay <dir> |
用录好的数据离线运行 |
calculate-price 的返回。价格分三种状态:✅ 已官方核价、🟡 待核验(券还没领,拿不到券号)、⚪ 无法确认。后两种不参与排名。discountType 是「随单购…」的商品,分别核价「不加卡」和「加卡(含卡费)」,只解释,不推荐买卡。用到哪些 MCP 工具、为什么不用另外 27 个、踩过哪些坑,见 MCP_INTEGRATION.md。
fixtures/ 里是 2026-10-21 晚真实查询录下的官方原始返回(已核对不含个人信息)。npm test 用它离线回放,27 条测试覆盖:
traceId)和逐行小计。--claim,并在终端里亲手输入 y。非交互环境会直接拒绝。~/.config/mcd-advisor/.env(或你在 WorkBuddy 里配好的麦当劳连接器,脚本只读不改),仓库里只有占位符。npm run check-secrets 会扫描所有要提交的文件,并逐字比对本机的真实密钥值;npm test 也会跑它。想在每次提交前自动检查,运行一次 git config core.hooksPath .githooks,之后 pre-commit 会扫描暂存区里实际要提交的内容。如果它帮你看清了某一顿的价格,欢迎点个 ⭐。