远程微信公众号发布技能。通过 HTTP MCP 解决家用宽带 IP 变动问题,支持大文件上传、多主题排版与一键发布。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install wechat-mp-publisher或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install wechat-mp-publisher⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/wechat-mp-publisher/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: wechat-mp-publisher version: 2.0.2 description: 远程微信公众号发布技能 (合规优化版)。通过 HTTP MCP 解决家用宽带 IP 变动问题,支持安全凭证隔离与依赖检查。 homepage: https://github.com/caol64/wenyan-mcp metadata: openclaw: emoji: "🚀" category: publishing clawdbot: emoji: "🚀" requires: bins: ["mcporter", "curl", "jq"] install: - id: "node" kind: "node" package: "mcporter" bins: ["mcporter"] label: "安装 MCP 客户端 (mcporter)" ---
核心痛点解决:家用宽带 IP 频繁变动,无法固定添加到公众号白名单? 本技能通过远程 wenyan-mcp 服务中转,让你的本地 OpenClaw 也能稳定发布文章,无需本地 IP 权限!
TOOLS.md。jq、mcporter 和 wenyan-cli。在技能根目录下复制 wechat.env.example 为 wechat.env 并填入公众号凭证:
cp wechat.env.example wechat.env
nano wechat.env
内容示例:
export WECHAT_APP_ID="wx..."
export WECHAT_APP_SECRET="cx..."
# Optional: 指定 MCP 配置文件 (默认 $HOME/.openclaw/mcp.json)
# export MCP_CONFIG_FILE="/path/to/your/mcp.json"
确保你的 mcp.json 指向远程 MCP 实例:
{
"mcpServers": {
"wenyan-mcp": {
"name": "公众号远程助手",
"transport": "sse",
"url": "http://<your-remote-server-ip>:3000/sse",
"headers": {
"X-API-Key": "<optional-api-key>"
}
}
}
}
直接对我说: > "帮我把 path/to/article.md 发布到公众号,使用默认主题。"
我会自动:
wechat.env 获取凭证mcporter, jq)我们提供了封装好的脚本 scripts/publish-remote.sh,体验与本地 CLI 一致:
# 赋予执行权限
chmod +x scripts/publish-remote.sh
# 发布文章 (自动加载 wechat.env)
./scripts/publish-remote.sh ./my-post.md
# 指定主题 (lapis)
./scripts/publish-remote.sh ./my-post.md lapis
与标准 wenyan-cli 一致,头部必须包含元数据:
---
title: 我的精彩文章
cover: https://example.com/cover.jpg
---
# 正文开始
...
提示:cover 推荐使用图床链接,以确保远程服务器能正确下载封面。
| 现象 | 原因 | 解决方案 | | :--- | :--- | :--- | | Dependencies Missing | 缺少 jq 或 mcporter | 请确保系统已安装这些工具 | | Config Not Found | 未找到 wechat.env | 请按照步骤 1 创建并配置 | | IP not in whitelist | 远程服务器 IP 未加白 | 登录公众号后台 -> 基本配置 -> IP 白名单,添加 MCP 服务器的公网 IP |
安装 wechat-mp-publisher 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/wechat-mp-publisher/ 目录(个人级,所有项目可用),或 .claude/skills/wechat-mp-publisher/(项目级)。重启 AI 客户端后,用 /wechat-mp-publisher 主动调用,或让 AI 根据上下文自动发现并使用。
wechat-mp-publisher 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
wechat-mp-publisher 可免费安装使用。请查阅仓库了解许可证信息。
远程微信公众号发布技能。通过 HTTP MCP 解决家用宽带 IP 变动问题,支持大文件上传、多主题排版与一键发布。
wechat-mp-publisher 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。