Skip to content

Configuration Overview

WeCom Bot MCP Server can be configured through environment variables and MCP client configuration files.

Quick Reference

VariableDescriptionRequired
WECOM_WEBHOOK_URLDefault bot webhook URLYes (if no WECOM_BOTS)
WECOM_BOTSJSON config for multiple botsNo
WECOM_BOT_{NAME}_URLIndividual bot URLsNo
MCP_LOG_LEVELLog level (DEBUG/INFO/WARNING/ERROR)No
MCP_LOG_FILECustom log file pathNo

Configuration Priority

When multiple configuration methods are used:

  1. WECOM_WEBHOOK_URL → Creates a "default" bot
  2. WECOM_BOTS → Adds/overrides bots from JSON
  3. WECOM_BOT_{NAME}_URL → Adds bots if not already defined

Sections

Released under the MIT License.