wechat-mp-publisher

远程微信公众号发布技能。通过 HTTP MCP 解决家用宽带 IP 变动问题,支持大文件上传、多主题排版与一键发布。

MISAKIGA

@misakiga

What This Skill Does

Remote WeChat Official Account article publisher that works around home broadband IP changes via an HTTP MCP relay. Supports large file uploads, multi-theme formatting, and one-click publishing.

Eliminates the need to whitelist a fixed home IP by routing all publishing through a remote MCP server, enabling stable article releases from any network.

When to Use It

  • Publish a Markdown article to your WeChat Official Account from a home network with a dynamic IP
  • Upload and format a long-form post with a custom cover image and theme
  • Schedule or batch-publish articles without manually logging into the WeChat backend
  • Share draft articles with a team for review before final publication
  • Migrate existing blog posts or documentation to WeChat with consistent styling

Install

$ openclaw skills install @misakiga/wechat-mp-publisher

微信公众号远程发布 (Remote Publisher - Compliance Optimized)

核心痛点解决:家用宽带 IP 频繁变动,无法固定添加到公众号白名单? 本技能通过远程 wenyan-mcp 服务中转,让你的本地 OpenClaw 也能稳定发布文章,无需本地 IP 权限!

🌟 架构优势

  • IP 漫游无忧:仅需将远程 MCP 服务器 IP 加入白名单,无论你在家里、咖啡厅还是 4G 热点,都能随时发布。
  • 合规隔离:凭证与系统配置分离,避免污染全局 TOOLS.md。
  • 依赖自检:脚本运行时自动检查 jq、mcporter 和 wenyan-cli。
  • 灵活配置:支持自定义 MCP 配置文件路径。

⚙️ 快速配置

1. 准备凭证 (wechat.env)

在技能根目录下复制 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"

2. 连接远程服务 (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>"
      }
    }
  }
}

🚀 使用指南

方式 A: 智能助手 (推荐)

直接对我说:

"帮我把 path/to/article.md 发布到公众号,使用默认主题。"

我会自动:

  1. 读取 wechat.env 获取凭证
  2. 检查本地环境 (mcporter, jq)
  3. 调用远程 MCP 完成发布

方式 B: 命令行脚本 (高级)

我们提供了封装好的脚本 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

📝 Markdown 规范

与标准 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

Top skills in this category

gmail

@byungkyu

Gmail API integration with managed OAuth. Read, send, and manage emails, threads, labels, and drafts. Use this skill when users want to interact with Gmail. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Calls run through the `maton` CLI with OAuth login, or over raw HTTP with a Maton API key where the CLI cannot be installed. Every call is authenticated as the user's connection and reaches only what that connection's authorization allows, which the provider enforces on every request; the endpoints documented here are the ones this skill uses, and any other endpoint of this app needs the user to ask for it by name. Default to read and list calls, and confirm every write or new connection with the user. This file also documents the three constructs that turn a Gmail connection into automation, in the order they are used: the connection (the first step), a hosted function that runs a Gmail action through the Maton SDK, and a trigger that calls that function on a schedule or on an event. Those sections are the platform's own reference text, shared with the api-gateway skill, with Gmail examples; they add no Gmail capability - Gmail is itself an event source, so its own events are in `references/google-mail/triggers.md`, and the files under `references/<source>/triggers.md` are the platform's event catalogues for the sources Maton offers (time, Calendly, GitHub, Gmail, HubSpot, Linear, Notion, Slack, Stripe).

7540k

WhatsApp Business

@byungkyu

WhatsApp Business API integration with managed OAuth. Send messages, manage templates, and handle conversations. Use this skill when users want to interact with WhatsApp Business. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Calls run through the `maton` CLI with OAuth login, or over raw HTTP with a Maton API key where the CLI cannot be installed. Every call is authenticated as the user's connection and reaches only what that connection's authorization allows, which the provider enforces on every request; the endpoints documented here are the ones this skill uses, and any other endpoint of this app needs the user to ask for it by name. Default to read and list calls, and confirm every write or new connection with the user. This file also documents the three constructs that turn a WhatsApp Business connection into automation, in the order they are used: the connection (the first step), a hosted function that runs a WhatsApp Business action through the Maton SDK, and a trigger that calls that function on a schedule or on an event. Those sections are the platform's own reference text, shared with the api-gateway skill, with WhatsApp Business examples; they add no WhatsApp Business capability - WhatsApp Business is not an event source, a trigger cannot read WhatsApp Business data, and the files under `references/<source>/triggers.md` are the platform's event catalogues for the sources Maton offers (time, Calendly, GitHub, Gmail, HubSpot, Linear, Notion, Slack, Stripe).

6024k

WeChat MP CN

@guohongbin-git

微信公众号监控 - 文章监控、阅读量追踪、舆情分析(WeChat Official Account)

4715k

Wechat Article Search

@wuchubuzai2018

搜索微信公众号文章技能。通过微信搜索获取文章列表,覆盖科技/AI、社会热点、财经、教育、职场等各类中文资讯;可按关键词检索并返回标题、概要、发布时间、来源公众号与链接。当用户需要查找微信公众号文章、整理参考资料或快速获取文章信息时使用此技能。

3318k

Wechat Publisher

@0731coderlee-sudo

一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli,支持多主题、代码高亮、图片自动上传。

399.7k