关于 Swipefast
Swipefast CLI 和 Agent 技能可供 AI Agent 管理品牌结账页面与销售,并要求对买家可见的更改先经人工批准。CLI 还可查询订单、收入和结账表现,技能文件则为 Agent 提供使用规则。
主要功能
- 01管理结账产品与销售
- 02查看订单、收入和统计数据
- 03调用任意 Swipefast MCP 工具
- 04为脚本和 Agent 提供 JSON 输出
- 05上线结账更改需审批
- 06提供安全使用规则的 Agent 技能
适用场景
- 01为新优惠创建结账草稿
- 02查看近期订单和收入
- 03检查转化率与加购表现
- 04申请批准发布结账页面
MCP 相关
CLI 和 Agent 技能连接到托管的 Swipefast MCP 服务;CLI 可通过 `swipefast call` 调用任意服务端工具。此仓库提供客户端,不包含服务端。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://swipefast.io/api/mcpclaude mcp add --transport http mostmojo-swipefast https://swipefast.io/api/mcp{"mcpServers":{"mostmojo-swipefast":{"type":"http","url":"https://swipefast.io/api/mcp"}}}在 Cursor 中打开{"servers":{"mostmojo-swipefast":{"type":"http","url":"https://swipefast.io/api/mcp"}}}在 VS Code 中打开{"mcpServers":{"mostmojo-swipefast":{"type":"http","url":"https://swipefast.io/api/mcp"}}}{"mcpServers":{"mostmojo-swipefast":{"serverUrl":"https://swipefast.io/api/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
Swipefast CLI 和 Agent 技能
Swipefast 是由 AI 为你创建的结账页:带有品牌风格的结账页,支持订单加购、一键追加销售、分期付款和课程,Claude、ChatGPT 等 AI 应用都可以为你设置。买家会看到的任何内容,都需要你审批。
此仓库包含两项内容:
swipefast,用于管理结账和销售的命令行工具。- 一项技能,教 AI Agent(Claude Code,以及任何能读取 Agent Skills 的 Agent)如何安全地使用 Swipefast。
两者都通过 AI 应用使用的同一个 Swipefast MCP 服务进行通信。此仓库仅包含客户端;Swipefast 本身托管在 swipefast.io。
试用 7 天免费版:swipefast.io/agents
安装
Node 18 或更高版本:
npm install -g swipefast
也可以不安装直接运行:npx swipefast --help。
Agent 技能是一个可复制的文件夹:请参阅下方的Agent 技能。
登录
swipefast login
根据提示粘贴 API 密钥。你可以在 Swipefast 的设置、你的连接密钥中找到它。密钥保存在 ~/.config/swipefast/config.json 中,仅你本人可读取。更喜欢使用环境变量?改为设置 SWIPEFAST_API_KEY。
命令
swipefast whoami # your account in one look
swipefast products # every checkout, live and draft
swipefast product the-offer-maker # one checkout, with its bump, upsell and links
swipefast orders --limit 20 # recent orders
swipefast revenue --days 30 # revenue, orders and refunds
swipefast stats the-offer-maker # visits, conversion, bump and upsell take rates
swipefast findings # what your performance rules flagged
swipefast publish the-offer-maker # ask to publish; you confirm it in Swipefast
swipefast tools # every tool, and whether it reads or writes
swipefast call create_coupon --code LAUNCH20 --kind percent --value 20
为任意命令添加 --json,即可获得适用于脚本和 Agent 的紧凑输出。
swipefast call <tool> 可运行 MCP 服务上的任意工具,因此新工具发布当天就能在此使用。可以通过 --name value 键值对传递参数,也可以一次性传入所有参数:--args '{"days": 30}'。
能做什么,不能做什么
- 新建的结账页在发布前都是草稿。
- 对已上线结账页所做的变更不会立即生效。它会成为 Swipefast“审批”页面上的一项请求,你也会收到一封电子邮件。你批准的任何变更都可以回滚。
publish只会发起请求。你需要在 Swipefast 中轻点一次进行确认。- 此工具无法退款给买家。
- 两项会转移资金的工具——向联盟营销者付款(
create_payout_run)和将订阅者转移到价格更高的方案(change_subscription_plan)——始终需要等待你在 Swipefast 中审批,且只能通过 API 密钥使用。通过登录连接的 Claude、ChatGPT 等应用无法使用这些工具。
Agent 技能
skills/swipefast/SKILL.md 会告诉 Agent 何时使用 Swipefast,以及需要遵循的规则:绝不编造价格或链接;对已上线内容的变更会提交审批;是否发布由你决定。
**Claude Code:**将该文件夹复制到你的技能目录中。
mkdir -p ~/.claude/skills && cp -r skills/swipefast ~/.claude/skills/
其他能读取 Agent Skills 的 Agent:将其指向 skills/swipefast。不支持技能的 Agent 可以将同一文件作为指令读取。
此技能既适用于 MCP 服务(推荐:连接你的 AI 应用),也适用于此 CLI。
改为连接 AI 应用
20 款 AI 应用的分步设置指南,包括 Claude、ChatGPT、Claude Code、Cursor、Codex、Gemini、VS Code、Grok、Manus 和 OpenClaw。自动化工具:Zapier、Make、n8n。
链接
采用 MIT 许可证。欢迎提交问题和想法。
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。
