mcpField
W
wecom-notify

wecom-notify

github.com/xueheng-liProductivity152512 installsUpdated 34w ago
Repository

About wecom-notify

WeCom Notify is a skill for sending text, image, and file messages to WeCom through a Python script. It reads settings from OpenClaw configuration and uses only the Python standard library, with no pip dependencies.

Key features

  1. 01Sends text messages
  2. 02Sends images
  3. 03Uploads and sends files
  4. 04Targets a recipient or everyone
  5. 05Reads settings from OpenClaw configuration

Use cases

  1. 01Notify a contact through WeCom
  2. 02Share a chart or photo
  3. 03Send a file for a team to review

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/xueheng-li/openclaw-wechat --skill wecom-notify

After installing, type/wecom-notifyin Claude Code to confirm it loaded.

Bundled filesscripts/send_wecom.py

Details

From the project README

WeCom Notify

Send text, image, or file messages to WeCom (企业微信) using scripts/send_wecom.py.

Usage

# Text message
python3 scripts/send_wecom.py "消息内容"
python3 scripts/send_wecom.py "消息内容" --to LiXueHeng

# Image message
python3 scripts/send_wecom.py --image /path/to/photo.png
python3 scripts/send_wecom.py --image /path/to/chart.jpg --to @all

# File message
python3 scripts/send_wecom.py --file /path/to/report.pdf
python3 scripts/send_wecom.py --file /path/to/data.xlsx --to LiXueHeng

Default recipient: LiXueHeng. Config is read from ~/.openclaw/openclaw.json (env.vars section).

Notes

  • Requires proxy (WECOM_PROXY in config) — API calls route through Guangzhou VPS tinyproxy at 10.147.17.105:8888 via ZeroTier
  • WeCom text messages have a 2048-byte limit (~680 Chinese characters). For longer messages, split into multiple sends
  • Image upload supports: jpg, png, gif (max 2MB for image type)
  • File upload supports: any format (max 20MB)
  • Uploaded media is temporary (3 days validity on WeCom servers)
  • The script uses only Python stdlib (urllib.request, json, mimetypes, uuid) — no pip dependencies

Comments

Markdown supported