by zhuxian518
McDonald's China MCP innovation skill - entry for MCD Developer Innovation Challenge 2026 (1024 Programmers' Day)
# Add to your Claude Code skills
git clone https://github.com/zhuxian518/mcd-1024-skillGuides for using ai agents skills like mcd-1024-skill.
Last scanned: 10/15/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-10-15T08:54:12.884Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how mcd-1024-skill compares with popular alternatives.
mcd-1024-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by zhuxian518. McDonald's China MCP innovation skill - entry for MCD Developer Innovation Challenge 2026 (1024 Programmers' Day). It has 536 GitHub stars.
Yes. mcd-1024-skill passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/zhuxian518/mcd-1024-skill" and add it to your Claude Code skills directory (see the Installation section above). mcd-1024-skill ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
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-1024-skill against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery 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.
Automated security scan — not a certification.
你是用户的"麦当劳老友":话不多,但句句有用。你的任务不是展示多少商品,而是替用户省下选择的力气。
用户说出需求(如"今天中午吃啥,30 以内多点蛋白")后,依次执行:
data/memory.json 的 favoriteStores)。没有则问一句用户在哪附近,或让用户提供城市+地标,调用 query-nearby-stores(beType=1,searchType=2)搜索。🍔 就它了:{组合名}
{营养达成} | {券后价格} | {为什么是它,一句话}
或者看看:
· 老朋友:{记忆库高频/高评单品}——{它和用户的交情,如"本月第 4 次"}
· 尝个新:{用户口味簇内未尝试过的商品}——{为什么适合他}
📊 麦麦小知识:{今日一条}
确认下单说"就它了"。
本地文件 data/memory.json 是你的长期记忆,结构:
{
"orders": [{"date": "", "items": [{"code": "", "name": "", "qty": 1}], "total": 0, "rating": null, "storeCode": ""}],
"tasteProfile": {"clusters": {"beef": 0.6, "chicken": 0.3, "fish": 0.1}, "spiceLevel": 2, "avgSpend": 27.5},
"favoriteStores": ["storeCode"],
"firstUse": "2026-10-09"
}
规则:
data/snapshots/ 目录存放每日价格快照(JSON,字段含城市、门店、storeCode、bigmac/fries 分单位价格)。
MCD_MCP_TOKEN 读取,绝不写入文件或对话。只给一个答案的麦当劳点餐 Skill——它记得你点过的每一单,也顺带告诉你今天全国的巨无霸卖多少钱。
产品案例包包含 PRD、离线交互概念原型、可编辑架构与合成评测。由 AI 协作制作,不连接账户、不下单,不代表已上线 GUI 或真实业务实测结果。
"中午吃什么",大概是当代人每天要做的最累的决定。麦当劳的菜单上一百多种商品,再加上会员券、随心配、限时活动——选择越多,下单越慢。等终于选好了,午饭时间也过去了一半。
麦麦老友记换了个思路:你不用挑,老友替你挑。 你只要说一句"今天中午吃啥,三十以内,多点蛋白",它就回你一个答案——为什么是它、营养达没达标、券后多少钱,三行说清。下面再补两个备选:一个是你点过很多次、上次还给过五星的"老朋友";一个是顺着你的口味、但你还没吃过的新品。它凭什么这么懂你?因为你在这里点过的每一单,它都记着。官方接口只能查到最近 10 单历史,老友记把这些订单存进你电脑本地的记忆银行,越用越懂你,越用越离不开。
每次推荐的最后,还会附赠一条"麦麦小知识"。《经济学人》杂志从 1986 年起就用"巨无霸指数"衡量各国购买力——同一只汉堡全球通行,价格却各自精彩,堪称经济学界最出圈的发明。麦麦小知识把这个经典概念搬到了中国城市之间:首期实测全国 11 城核心商圈,最贵的巨无霸不在上海,在重庆解放碑——29 块,比上海贵 3.5 块;北上广深反而齐刷刷站在便宜档。这个每天都在生长的价格档案,让你对自己花的每一块钱心里有数。
它解决三件事:把"选不出来"变成"一个答案";把"用完即弃"变成"越用越懂你";把"稀里糊涂花钱"变成"明明白白消费"。 对用户,这是省下来的决策精力和真金白银;对麦当劳,AI 助手记住了顾客,顾客就愿意常来——每一次对话式推荐,都是一次自然发生的下单转化。
① 就它了 —— 唯一推荐
"今天中午吃啥,30 以内,多点蛋白" → 双吉士汉堡 + 麦辣鸡翅 2 块 + 鲜煮咖啡:蛋白 38g,券后 26.8 元,附三行理由。不满意?往下看。
② 老朋友 & 尝个新 —— 两个备选,来自你的记忆
· 老朋友:板烧鸡腿堡中套餐——你本月第 4 次点它,上次你给了五星 · 尝个新:安格斯厚牛培根堡——在你最爱的牛肉簇里,你还没吃过
③ 麦麦小知识 —— 每日一条,顺便看看全国行情
📊 《经济学人》1986 年发明了巨无霸指数来衡量各国购买力。我们把它搬进中国城市:首期实测 11 城,最贵的是重庆解放碑(29 元),不是上海。说"看指数"查完整榜单。
flowchart TD
U["👤 用户: 今天中午吃啥, 30以内多点蛋白"]
subgraph S["🤖 麦麦老友记 McMates"]
direction LR
D["📌 决策层<br/>菜单→营养→配券→核价<br/>唯一推荐"]
M2[("💾 记忆层<br/>本地记忆银行<br/>老朋友&尝个新")]
X["📈 指数层<br/>21城巨无霸采样<br/>麦麦小知识"]
end
M["麦当劳 MCP<br/>mcp.mcd.cn"]
U -->|"意图 + 条件"| S
D <--> M
X <--> M
M2 --> D
S -->|"🍔 就它了 + 备选 + 小知识"| U
一次对话,三个时间维度各司其职:决策层处理"现在",记忆层沉淀"过去",指数层给出"宏观"。Skill 引用的 MCP 工具编排见 MCP_INTEGRATION.md。
| 城市 | 巨无霸 | 中薯 | 合计 |
|---|---|---|---|
| 重庆(解放碑) | 29.0 | 14.5 | 43.5 |
| 成都(春熙路) | 26.5 | 14.5 | 41.0 |
| 西安(钟楼) | 26.5 | 14.5 | 41.0 |
| 哈尔滨(中央大街) | 26.5 | 14.5 | 41.0 |
| 郑州(二七商圈) | 26.5 | 14.5 | 41.0 |
| 武汉(江汉路) | 26.5 | 14.0 | 40.5 |
| 北京(三里屯) | 26.0 | 14.5 | 40.5 |
| 上海(人民广场) | 25.5 | 13.5 | 39.0 |
| 广州(天河) | 25.5 | 13.5 | 39.0 |
| 深圳(罗湖口岸) | 25.5 | 13.5 | 39.0 |
| 长沙(五一广场) | 25.5 | 13.5 | 39.0 |
三个反直觉发现:① 最贵的是重庆,不是北上广深;② 一线城市反而全军在便宜档;③ 同档城市价格完全一致(沪穗深长四城分毫不差)——麦当劳中国按城市档位分区定价的痕迹非常清晰。
前置条件:麦当劳中国大陆会员(手机号在 open.mcd.cn/mcp 申请 MCP Token)+ 任意支持 MCP 的 AI 客户端(WorkBuddy / Cherry Studio / Cursor 等)
{
"mcpServers": {
"mcd-mcp": {
"type": "streamablehttp",
"url": "https://mcp.mcd.cn",
"headers": { "Authorization": "Bearer YOUR_MCP_TOKEN" }
}
}
}
data/memory.json);客户端与接口的数据处理边界见下文https://mcp.mcd.cn),指令所引用工具的编排:详见 MCP_INTEGRATION.md本仓库是由 AI 客户端执行的 Skill 指令及 JSON 数据,没有独立程序、自动采样进程或 Python/npm 安装步骤。触发与输入输出见 SKILL.md;接口前提、调用顺序与失败处理见 MCP_INTEGRATION.md。客户端需能调用 MCP、读写本地工作目录;各客户端导入 Skill 和注入环境变量的方式可能不同。
mcp-config.example.json 使用 ${MCD_MCP_TOKEN} 占位符,只有客户端支持环境变量展开时才会生效;否则在客户端的私密配置中安全注入,不能把真实 Token 提交到仓库。历史快照存于 data/snapshots/,是带日期的门店采样,不代表当前价格或全国所有门店。
data/memory.json 保存订单、评分、偏好和常用门店;投入个人使用前先检查现有内容并保留备份,个人运行副本不要推回公共仓库。所谓「本地记忆」指 JSON 文件的存储位置;AI 客户端可能将读取到的内容发送给模型服务商,官方接口也会处理请求所需数据,不能理解为整个工作流不联网。不要把完整记忆库传给搜索或无关接口;有删除需求时由用户决定备份、清理哪些记录,不因「只增不删」规则阻止用户管理个人数据。
维护验证:检查 Skill 中工具名与已连接服务实际暴露的能力一致,核对 JSON 可解析与相对链接;先用不消费的只读流程检查门店、菜单、价格单位和失败提示,再由用户决定是否授权写操作。仓库没有自动测试脚本。本次文档核对未连接账户、未验证实时接口,历史开发记录不代表当前服务可用性。