WeChat messaging integration
## WeChat MCP Server: Chinese Social Platform The **WeChat MCP Server** integrates WeChat's ecosystem into Google Antigravity. This enables building Official Accounts, Mini Programs, and messaging bots on China's dominant super-app with over 1 billion users. ### Why WeChat MCP? WeChat is essential for China: - **1.3B Users**: Dominant in China - **Super App**: Messaging, payments, mini apps - **Official Accounts**: Business messaging - **Mini Programs**: In-app applications - **WeChat Pay**: Payment integration ### Key Features #### 1. Send Messages ```python import wechatpy client = wechatpy.WeChatClient(appid, secret) # Send template message client.message.send_template( user_id=openid, template_id="template123", data={ "order_id": {"value": "ORD-12345"}, "status": {"value": "Shipped"} } ) # Send customer service message client.message.send_text(openid, "Your order has shipped!") ``` #### 2. Official Account Menu ```python # Create custom menu client.menu.create({ "button": [ {"type": "click", "name": "Status", "key": "check_status"}, {"type": "view", "name": "Website", "url": "https://example.com"} ] }) ``` #### 3. Handle Events ```python from wechatpy import parse_message @app.route("/wechat", methods=["POST"]) def wechat_handler(): msg = parse_message(request.data) if msg.type == "text": if "status" in msg.content: return create_reply("All systems operational!", msg) return "success" ``` ### Configuration ```json { "mcpServers": { "wechat": { "command": "npx", "args": ["-y", "@anthropic/mcp-wechat"], "env": { "WECHAT_APPID": "your-appid", "WECHAT_SECRET": "your-secret", "WECHAT_TOKEN": "your-token" } } } } ``` ### Use Cases **China Market**: Essential for reaching Chinese users. **Customer Service**: Automated customer support bots. **Notifications**: Order and status updates. The WeChat MCP Server brings Chinese messaging to Antigravity.
{
"mcpServers": {
"wechat": {
"mcpServers": {
"wechat": {
"args": [
"-y",
"wechat-mcp"
],
"command": "npx"
}
}
}
}
}