Connect a module
ShopMCP connects official WeChat Mini Program customer-service callbacks to MCP clients so operators can search captured conversations, inspect media metadata, draft replies, and send approved responses when writes are enabled.
Callback-first history
1. Prepare a Mini Program
In the WeChat Mini Program admin console, copy the AppID and AppSecret. Choose a callback token for ShopMCP and keep it ready for both sides of the setup.
ShopMCP stores the AppSecret and callback token encrypted. Access tokens are requested server-side with the official stable token endpoint.
2. Connect WeChat in ShopMCP
Open Settings - Integrations, choose WeChat, then enter the AppID, AppSecret, callback token, and an optional account name.
- ShopMCP verifies the AppID/AppSecret by requesting an access token.
- After connecting, the settings page shows a callback URL for that exact connection.
- Use the same callback token in WeChat and in ShopMCP so signature validation succeeds.
3. Configure callbacks in WeChat
Paste the generated callback URL into the Mini Program customer-service message callback settings. WeChat calls ShopMCP with signature, timestamp, nonce, and echostr during verification; ShopMCP validates the SHA1 signature and returns the challenge text.
Only new messages are searchable
4. What you can ask
| Goal | Example prompt | What ShopMCP reads or does |
|---|---|---|
| Search conversations | Find recent WeChat conversations mentioning delayed delivery. | ShopMCP's stored transcript index populated by WeChat callbacks. |
| Open a thread | Show the latest messages and media for this OpenID. | Stored conversation messages plus temporary media metadata. |
| Draft a reply | Draft a friendly reply that asks for the order number and explains the next step. | Conversation context and optional operator instructions. The draft is not sent. |
| Send an approved reply | Send this exact WeChat reply after I confirm it. | Official customer-service send API, only when ShopMCP write gates are enabled. |
5. Writes and reply limits
WeChat customer-service sends are live customer-facing messages. ShopMCP keeps send tools behind the global integration write gate, the workspace allow_writes toggle, and the normal MCP pre-send confirmation language.
48-hour customer-service window

