Zed + pushplus:编辑器 Agent 完成后推微信
效果:Zed Agent 跑完长任务后,微信收到一条结果通知。
前置条件
- 一个 pushplus token(官网扫码获取)
- 已安装 Zed,并能使用 Agent
export PUSHPLUS_TOKEN="你的token"
方式一:MCP(推荐)
Zed 支持 MCP。按 pushplus MCP Server 配置后,说「完成后通知我」。
也可用 Skill。
方式二:规则 + curl
在项目约定或自定义指令里写:
curl -sS -X POST "https://www.pushplus.plus/send" \
-H "Content-Type: application/json" \
-d "{\"token\":\"$PUSHPLUS_TOKEN\",\"title\":\"Zed 任务完成\",\"content\":\"结果摘要\",\"template\":\"markdown\"}"
只发 1 条,不要打印 token。
验证
curl -X POST "https://www.pushplus.plus/send" \
-H "Content-Type: application/json" \
-d '{"token":"你的token","title":"Zed 配置测试","content":"token 可用","template":"markdown"}'
常见问题
MCP 没出现? 确认 Zed 的 MCP 配置文件已保存并重启,见 MCP 文档。