weixin-grokbot-adapter
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WEIXIN_GROKBOT_BASE_URL | No | iLink API (used for a fresh login) | https://ilinkai.weixin.qq.com |
| WEIXIN_GROKBOT_BOT_AGENT | No | base_info.bot_agent | GrokBotAdapter/1.1.0 |
| WEIXIN_GROKBOT_STATE_DIR | No | Credentials, cursors, context tokens, inbound media | ~/.weixin-grokbot-adapter |
| WEIXIN_GROKBOT_CDN_BASE_URL | No | Fallback CDN origin | https://novac2c.cdn.weixin.qq.com/c2c |
| WEIXIN_GROKBOT_API_TIMEOUT_MS | No | Timeout for ordinary API calls | 15000 |
| WEIXIN_GROKBOT_CDN_TIMEOUT_MS | No | Timeout for CDN upload/download | 60000 |
| WEIXIN_GROKBOT_MAX_UPLOAD_BYTES | No | Local and remote upload size limit (100 MiB) | 104857600 |
| WEIXIN_GROKBOT_CONFIG_TIMEOUT_MS | No | Timeout for getConfig / typing / notify | 10000 |
| WEIXIN_GROKBOT_LONG_POLL_TIMEOUT_MS | No | Client timeout for getUpdates | 35000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| weixin_statusA | Show whether this machine has a saved Weixin iLink bot token, and the local state directory. Does not start login or show a QR code. |
| weixin_pollA | One getUpdates long-poll cycle (default ~35s). Returns new inbound Weixin messages and caches context_token. Empty result is normal when nobody wrote. Requires a prior CLI login. |
| weixin_sendA | Send a text message to a Weixin user via ilink/bot/sendmessage. Defaults to the last inbound peer. A cached context_token is attached when available. |
| weixin_send_mediaA | Upload a local file (or an http(s) URL) to the Weixin CDN and send it as an image, video, or file attachment. Optional caption is sent as a separate text message first. Requires a prior CLI login. |
| weixin_typingB | Show or cancel the official typing indicator for a user (ilink/bot/sendtyping). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool targets a distinct operation: status inspection, message polling, text sending, media sending, and typing indicators. The only adjacent pair, weixin_send and weixin_send_media, is clearly separated by text vs. file/URL payloads.
All tools share the same weixin_ prefix and snake_case convention, making the namespace predictable. However, the suffix mixes states/nouns (status, typing) with actions (poll, send), so the verb pattern is not perfectly uniform.
Five tools is a well-scoped surface for a Weixin bot adapter, covering the essential receive, send, media, and presence operations without bloat. Each tool earns its place.
The core messaging lifecycle is covered: status, inbound polling, outbound text, media attachments, and typing indicators. Minor gaps exist around login/QR initiation and richer message or contact operations, but those appear intentionally delegated to the CLI.