运行时依赖
安装命令
点击复制技能文档
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
# Complete flow: 搜索 -> Open chat -> 发送 发送_message_to_contact("Contact Name", "Message content")
- 发送 a Message to the Current Chat Window
发送_message_to_current("Message content")
- 获取 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)