by baihua2471
看看哪些麦当劳权益快到期,哪些值得用,哪些不用为了到期硬消费。基于麦当劳官方 MCP 的 WorkBuddy Skill:只读查询优惠券与积分,按预算给出最多两套经官方接口试算的用餐方案。McDonald's coupon & points expiry assistant — a WorkBuddy Skill on the official McDonald's MCP. Read-only queries, official price calculation, max 2 budget-friendly plans.
# Add to your Claude Code skills
git clone https://github.com/baihua2471/mcd-expiry-butlerGuides for using ai agents skills like mcd-expiry-butler.
See how mcd-expiry-butler compares with popular alternatives.
mcd-expiry-butler is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by baihua2471. 看看哪些麦当劳权益快到期,哪些值得用,哪些不用为了到期硬消费。基于麦当劳官方 MCP 的 WorkBuddy Skill:只读查询优惠券与积分,按预算给出最多两套经官方接口试算的用餐方案。McDonald's coupon & points expiry assistant — a WorkBuddy Skill on the official McDonald's MCP. Read-only queries, official price calculation, max 2 budget-friendly plans. It has 58 GitHub stars.
mcd-expiry-butler'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/baihua2471/mcd-expiry-butler" and add it to your Claude Code skills directory (see the Installation section above).
mcd-expiry-butler is primarily written in Python. It is open-source under baihua2471 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-expiry-butler 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.
看看哪些麦当劳权益快到期,哪些值得用,哪些不用为了到期硬消费。
🖥️ 在线演示(样例数据,手机可读):https://baihua2471.github.io/mcd-expiry-butler/
一个真实使用麦当劳 MCP 的 WorkBuddy Skill:只读查询你的优惠券与积分,按预算给出最多两套用餐方案,
金额全部经过官方 calculate-price 试算,并明确告诉你哪些权益不值得为了消耗而额外花钱。
预算优先于消耗权益。 没有合适方案时,它会直接说「这次别用」。
做:
不做(第一版红线):
mcd-expiry-butler/
├── README.md 本文件
├── CONTEST_DECLARATION.md 参赛声明(取自官方仓库,原样保留)
├── MCP_INTEGRATION.md MCP 工具、调用流程、联调状态
├── mcp-config.example.json 脱敏配置(仅环境变量占位符)
├── workbuddy.md WorkBuddy 专项材料说明
├── skill/mcd-expiry-butler/
│ └── SKILL.md Skill 本体(工作流与规则)
├── src/expiry_butler/
│ ├── core.py 到期判定 / 渠道匹配 / 预算筛选 / 方案生成
│ ├── report.py 单文件 HTML 结果页渲染
│ └── cli.py 命令行入口
├── src/fixtures/
│ ├── demo_case.json 演示样例(标注为样例数据)
│ └── real_case_sanitized.json 真实联调脱敏快照
├── scripts/
│ ├── install_skill.sh 安装到 WorkBuddy
│ └── run_demo.py 演示模式
├── tests/test_core.py 17 个独立逻辑用例
├── demo_output/ 生成的结果页(可截图)
├── docs/ 联调记录、演示脚本、报名草稿
└── examples/sample-requests.md 可直接复制的示例请求
{
"mcpServers": {
"mcd-mcp": {
"type": "streamableHttp",
"url": "https://mcp.mcd.cn/mcp-servers/mcd-mcp",
"headers": { "Authorization": "Bearer 你的Token" }
}
}
}
配置位置:~/.workbuddy/mcp.json(WorkBuddy 的用户级自定义 MCP 配置)。
配好后需在连接器管理 → 自定义连接器中信任该服务,并重启 WorkBuddy。
mcp-config.example.json 只含 ${MCD_MCP_TOKEN} 占位符,WorkBuddy 不会自动展开,
请手工替换,且不要把替换后的文件提交到任何仓库。
git clone <你的仓库地址> mcd-expiry-butler
cd mcd-expiry-butler
bash scripts/install_skill.sh
安装到 ~/.workbuddy/skills/mcd-expiry-butler(加 --project 可装到当前项目)。
重新执行同一条命令即可更新。
依赖:Python 3.9+,仅标准库,无需 pip install。
直接用自然语言提问即可,Skill 会自动接管:
我这周只准备吃一次麦当劳,预算 30 元,看看有什么快到期的权益值得用。
它会先问清三件事(预算 / 就餐方式 / 门店),然后查数据、试算价格、生成结果页。
也可以直接点名:
用麦麦权益到期管家看看我到期的券。
cd ~/.workbuddy/skills/mcd-expiry-butler
python3 scripts/run_demo.py --out /tmp/mcd_demo.html
输出的页面顶部有醒目横幅:「样例数据,非实时账户结果」。 真实查询失败时不会静默切换为样例数据。
见 examples/sample-requests.md,三条可直接复制:
我这周只准备吃一次麦当劳,预算 30 元,看看有什么快到期的权益值得用。帮我看看哪些券 3 天内到期,在深圳科技园到店吃,预算 25 元。我的积分快过期了,用麦麦权益到期管家看看要不要换,别推荐我为了积分多花钱。python3 tests/test_core.py
17 个用例,覆盖:
| 场景 | 期望 |
|---|---|
| 没有优惠券 | 建议不使用,说明原因 |
| 没有到期字段 | 显示「到期信息未提供」,不输出剩余天数,不推断 |
| 已过期权益 | 进入「不建议使用」,不参与推荐 |
| 所有方案超预算 | 不推荐,列出实际金额与差额 |
| 门店/渠道不适用 | 排除并说明原因 |
| 价格试算失败 | 不输出估算金额,标记为失败 |
| 积分将过期但缺兑换商品信息 | 不给积分建议,标注缺失 |
| 真实模式失败 | 不混入演示数据,模式标识保持 real |
| 正常场景 | 最多两套,价格均为「已验证」且可追溯 |
真实联调记录见 docs/REAL_RUN_2026-10-09.md(只读,已脱敏)。
本项目为参赛作品,由个人独立开发,非麦当劳官方产品,不代表官方背书。 页面不使用任何品牌 Logo 或未经授权的素材;输出仅供参考。
MIT License,见 LICENSE。
协议不适用于麦当劳 MCP 服务本身,使用该服务时请遵守官方 MCP 服务规则。