mcd-cn
McDonald's China MCP CLI. Human output by default, --json for scripts.
Install
Config
- -
MCDCN_MCP_TOKEN required. Get it from the McDonald's China MCP console. - Optional:
MCDCN_MCP_URL for custom server URL.
Common commands
- - Campaign calendar: INLINECODE4
- Calendar for date: INLINECODE5
- Available coupons: INLINECODE6
- Auto-claim coupons: INLINECODE7
- My coupons: INLINECODE8
- Current time: INLINECODE9
- JSON output: INLINECODE10
Notes
- - Token can be set via
MCDCN_MCP_TOKEN env var or .env file. - Date format for
--specifiedDate is yyyy-MM-dd. - Rate limit: 600 requests per minute per token.
mcd-cn
麦当劳中国MCP命令行工具。默认输出人类可读格式,使用--json参数输出脚本可解析格式。
安装
- - Homebrew:brew install ryanchen01/tap/mcd-cn
配置
- - 必需项:MCDCNMCPTOKEN。从麦当劳中国MCP控制台获取。
- 可选项:MCDCNMCPURL,用于自定义服务器地址。
常用命令
- - 活动日历:mcd-cn campaign-calender
- 指定日期日历:mcd-cn campaign-calender --specifiedDate 2025-12-09
- 可用优惠券:mcd-cn available-coupons
- 自动领取优惠券:mcd-cn auto-bind-coupons
- 我的优惠券:mcd-cn my-coupons
- 当前时间:mcd-cn now-time-info
- JSON输出:mcd-cn available-coupons --json
注意事项
- - Token可通过MCDCNMCPTOKEN环境变量或.env文件设置。
- --specifiedDate参数的日期格式为yyyy-MM-dd。
- 速率限制:每个Token每分钟600次请求。