WeCom Bot MCP Server

by loonghao
Verified
MIT License
17
  • Linux
  • Apple

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_LOG_FILENoCustom log file path
MCP_LOG_LEVELNoLog level: DEBUG, INFO, WARNING, ERROR, CRITICALINFO
WECOM_WEBHOOK_URLYesWeCom Bot Webhook URL (obtained from WeCom group settings)

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
history://messages

Tools

Functions exposed to the LLM to take actions

NameDescription
send_wecom_file

Send file to WeCom.

Args: file_path: Path to file ctx: FastMCP context Returns: dict: Response containing status and message Raises: WeComError: If file is not found or API call fails
send_wecom_image

Send image to WeCom.

Args: image_path: Path to image file or URL ctx: FastMCP context Returns: dict: Response containing status and message Raises: WeComError: If image is not found or API call fails.
send_message

Send message to WeCom.

Args: content: Message content msg_type: Message type (text, markdown) mentioned_list: List of mentioned users mentioned_mobile_list: List of mentioned mobile numbers ctx: FastMCP context Returns: dict: Response containing status and message Raises: WeComError: If message sending fails