weixin-publisher
v0.1.7
Published
CLI and MCP-ready publisher for WeChat Official Account draft and publish workflows
Maintainers
Readme
weixin-publisher
weixin-publisher is a standalone project for WeChat Official Account article generation and publishing workflows.
It is designed to be the reusable capability core behind:
- HydroDesktop / cc-desktop marketplace integrations
- Claude Code skills
- Codex skills
- local CLI automation
- MCP-based AI runtime integrations
Current shape
The project now follows a simple structure:
- one
coreimplementation - two execution surfaces:
CLI + MCP - one external registration layer provided by the host runtime configuration
The current stable V1 scope focuses on two article workflows:
draftcreate a WeChat article draft for later manual publishing in the official backendpublishsubmit an existing draft into the WeChat freepublish flow
Directory overview
src/core WeChat API, content pipeline, cover preparation, result shaping
src/mcp MCP server entry
src/cli.ts CLI entry
docs/ project documentation
templates/ sample inputs
assets/ sample assets and generated files
scripts/ local smoke scriptsDocumentation
Recommended reading order:
Quick start
For local development:
npm install
npm run build
npm run start -- doctor
npm run start -- prepare-cover ./assets/generated/wechat-cover-im-upgrade.png --out ./assets/generated/wechat-cover-im-upgrade-thumb.auto.jpg
npm run start -- upload-cover ./cover.jpg
npm run start -- draft templates/article-input.example.json
npm run start -- draft templates/article-input.example.json --cover ./assets/generated/wechat-cover-im-upgrade-thumb.jpg
npm run start -- publish <draft-media-id>
npm run start -- publish:status <publish-id>If you install the package globally, the two main entrypoints are:
wopfor CLI workflowswop-mcpfor MCP host startup
npm install -g weixin-publisher
wop doctor
wop-mcpIf you prefer not to install globally, you can also start the MCP server with:
npx -y --package weixin-publisher wop-mcpThe package also includes skills/weixin-publisher, a skill source directory for guiding HydroDesktop, Claude Code, or Codex through self-checks, installation, MCP configuration, and draft-first article creation.
For complete CLI usage, MCP config, tool permissions, and workflow notes, see:
