📦 Windows WeChat MCP

v1.0.0

监控 WeChat window 状态, 搜索 contacts, and 发送 messages on Windows via automated screenshots and 输入 control.

0· 18·0 当前·0 累计
0

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install windows-wechat-mcp
镜像加速npx clawhub@latest install windows-wechat-mcp --registry https://cn.longxiaskill.com

技能文档

Windows WeChat MCP

Windows 桌面 WeChat message 监控ing and 发送ing, achieved through window 自动化.

Prerequisites The WeChat window must remAIn open Python dependencies 安装ed: pip 安装 pyauto图形界面 py获取window pillow pyper命令行工具p opencv-python

Features Feature Description Screenshot Capture a screenshot of the WeChat window 搜索 Contacts 搜索 for and open a contact's chat window 发送 Messages 发送 messages to a specified contact Detached Windows Support identification of detached chat windows (Dragon windows) Usage

  • 发送 a Message to a Specified Contact
from scripts.server 导入 发送_message_to_contact

# Complete flow: 搜索 -> Open chat -> 发送 发送_message_to_contact("Contact Name", "Message content")

  • 发送 a Message to the Current Chat Window
from scripts.server 导入 发送_message_to_current

发送_message_to_current("Message content")

  • 获取 WeChat 状态
from scripts.server 导入 获取_wechat_状态

状态 = 获取_wechat_状态() # Returns: {'状态': '运行ning', 'title': 'WeChat', 'position': {'x': 0, 'y': 0}, 'size': {'width': 1920, 'height': 1080}}

MCP 工具s

When called via the MCP protocol, the following 工具s are provided:

工具 Name Description Parameters wechat_获取_状态 获取 the WeChat window 状态 None wechat_发送_message 发送 a message to the current chat window message: Message content Notes The WeChat window is automatically activated when 发送ing messages Chinese 输入 requires the 系统's Chinese 输入 method to function properly Supports 发送ing messages to detached chat windows (separately opened Dragon windows)

数据来源ClawHub ↗ · 中文优化:龙虾技能库