Skip to main content
Glama
deadmau5v

wecom-msg-audit-mcp

by deadmau5v

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PROXYNo代理地址
CORP_IDYes企业 ID(我的企业 → 企业信息)
MCP_HOSTNoHTTP 模式监听地址127.0.0.1
MCP_PORTNoHTTP 模式监听端口8331
R2_S3_IDNoR2 S3 兼容 AccessKey ID
R2_TOKENNo兼容字段(当前未使用)
SEQ_FILENoseq 进度文件./wecom_msg_seq.txt
R2_BUCKETNoR2 存储桶
R2_S3_KEYNoR2 S3 兼容 AccessKey Secret
FETCH_LIMITNo单次拉取条数,1-1000100
R2_ENDPOINTNoCloudflare R2 端点
SDK_TIMEOUTNoSDK 请求超时(秒)30
OUTPUT_JSONLNo解密消息输出文件./wecom_messages.jsonl
SDK_LIB_PATHNoSDK 动态库路径./libWeWorkFinanceSdk_C.so
MCP_TRANSPORTNostdio 或 httpstdio
PROXY_PASSWORDNo代理密码
MSGAUDIT_SECRETYes会话内容存档 Secret(不是普通应用 Secret)
MCP_BEARER_TOKENNoHTTP 模式下的 Bearer 鉴权 Token
PRIVATE_KEY_PATHNoRSA 私钥路径./private_key.pem
R2_CUSTOM_DOMAINNo自定义访问域名
EXTERNAL_CONTACT_SECRETNo客户联系可调用应用 Secret(用于外部客户群)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
wecom_get_config_statusA

检查服务是否就绪(消息拉取、群聊查询等能力是否可用)。

wecom_pull_messagesA

从企业微信会话存档 SDK 拉取并解密聊天记录。

从上次保存的 seq 位置继续拉取,解密后返回消息列表,并自动更新 seq。

wecom_get_seqA

获取当前消息拉取进度 seq。

wecom_set_seqB

设置消息拉取起始 seq(用于重置或跳过历史消息)。

wecom_query_messagesC

查询本地已保存的解密聊天记录。

wecom_extract_roomidsA

从本地消息记录中提取所有群聊 roomid。

wecom_get_group_infoB

获取群聊详情(外部客户群或内部群)。

wecom_list_external_groupsC

列出外部客户群。

wecom_download_mediaA

下载消息中的媒体文件(图片、视频、语音、文件等)。

通过 sdkfileid 下载媒体内容。图片上传到 R2 并返回预签名访问链接,其他文件保存到磁盘。 也可指定 save_to 路径将文件保存到指定位置。

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/deadmau5v/wecom-msg-audit-mcp'

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