Skip to main content
Glama
cluic
by cluic

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WECHAT_DEBUGNoDebug mode (调试模式)False
WECHAT_RESIZENoAuto-adjust window (自动调整窗口)True
WECHAT_LOG_LEVELNoLog level (日志级别)INFO
WECHAT_LICENSE_KEYYesActivation key for wxautox4 (激活密钥)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
send_message

发送文本消息。参数: msg (消息内容), who (接收人,可选), at (@对象,可选), exact (精确匹配,默认false)

get_messages

获取当前聊天窗口的所有消息

get_history

获取历史消息。参数: n (获取数量,默认50)

send_bulk_messages

批量发送消息。参数: messages (JSON数组,每项包含msg和who)

send_url_card

发送链接卡片。参数: url (链接地址,必填), friends (发送对象,单个名称或列表,可选), message (附加消息,可选), timeout (等待时间,默认10秒)

get_next_new_message

获取下一个聊天窗口的新消息。参数: filter_mute (是否过滤消息免打扰,默认false)

get_friends

获取好友列表。参数: n (获取数量,默认10), save_avatar (是否获取头像,默认false)

switch_chat

切换到指定聊天窗口。参数: who (联系人名称), exact (精确匹配,默认false)

get_chat_info

获取当前聊天窗口信息

get_sessions

获取微信会话列表(聊天窗口列表)

get_recent_groups

获取最近群聊列表

filter_sessions

筛选会话列表。参数: has_unread (是否有未读), ismute (是否免打扰)

get_unread_sessions

获取所有有未读消息的会话

send_files

发送文件。参数: filepath (文件路径,支持逗号分隔的多个文件), who (接收人,可选), exact (精确匹配,默认false)

send_image

发送图片。参数: filepath (图片路径), who (接收人,可选)

send_directory_files

发送目录下的所有文件。参数: directory (目录路径), who (接收人,可选), pattern (文件匹配模式,默认*)

check_file_exists

检查文件是否存在。参数: filepath (文件路径)

wechat_status

获取微信运行状态,包括在线状态、账号信息和激活状态

wechat_initialize

初始化微信连接。参数: resize (是否自动调整窗口,默认true), debug (调试模式,默认false)

wechat_activate

激活 wxautox4。参数: license_key (激活密钥,留空则使用环境变量 WECHAT_LICENSE_KEY)

wechat_check_activation

检查 wxautox4 激活状态

wechat_list_tools

列出所有可用的微信自动化工具

get_my_info

获取我的微信账号信息

switch_to_contact

切换微信到联系人页面

get_new_friends

获取新的好友请求列表。参数: acceptable (是否过滤掉已接受的好友申请,默认true)

accept_new_friend

接受新的好友请求。参数: content (好友请求内容,必填), exact (是否精确匹配,默认false), remark (备注名,可选), tags (标签列表,可选)

add_friend

添加新好友。参数: keywords (搜索关键词,必填), addmsg (验证消息,可选), remark (备注名,可选), tags (标签列表,可选), permission (权限,可选:朋友圈/仅聊天,默认朋友圈), timeout (超时时间,默认5秒)

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/cluic/wxauto-mcp'

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