Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
wechat_loginA

Log into WeChat. If a session is already saved (persisted across restarts), this returns silently. Otherwise it triggers a QR code flow: the PNG is auto-opened on the user's screen and an ASCII copy is saved to ~/.wechatbot/mcp/qr-latest.txt. Returns the account id on success.

wechat_logoutA

Stop the bot. With clearCredentials=true, also deletes ~/.wechatbot/credentials so the next login() will require a fresh QR.

wechat_statusB

Connection state, account info, receive-queue depth.

wechat_send_textA

Send a plain text message to a userId (must be a known user).

wechat_send_imageA

Send a local image file. Caption is sent as a separate text message before the image.

wechat_send_fileA

Send an arbitrary local file (auto-detected as image / video / file).

wechat_send_urlB

Send media from a remote URL. SDK downloads it and uploads to WeChat CDN.

wechat_send_typingA

Show "对方正在输入中…" once. Does not auto-stop — pair with wechat_stop_typing.

wechat_stop_typingB

Cancel the typing indicator for the given user.

wechat_pending_messagesA

Pop and return up to limit received WeChat messages that have been buffered since the last call. Media files (image/file/video/voice) are auto-downloaded to ~/.wechatbot/pending-media/ and referenced by localPath in the response.

wechat_known_usersA

List user IDs we currently have a context_token for (i.e., who can be messaged back).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhyyyq/wechatbot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server