Configuration Overview
WeCom Bot MCP Server can be configured through environment variables and MCP client configuration files.
Quick Reference
| Variable | Description | Required |
|---|---|---|
WECOM_WEBHOOK_URL | Default bot webhook URL | Yes (if no WECOM_BOTS) |
WECOM_BOTS | JSON config for multiple bots | No |
WECOM_BOT_{NAME}_URL | Individual bot URLs | No |
MCP_LOG_LEVEL | Log level (DEBUG/INFO/WARNING/ERROR) | No |
MCP_LOG_FILE | Custom log file path | No |
Configuration Priority
When multiple configuration methods are used:
- WECOM_WEBHOOK_URL → Creates a "default" bot
- WECOM_BOTS → Adds/overrides bots from JSON
- WECOM_BOT_{NAME}_URL → Adds bots if not already defined
Sections
- Environment Variables - All available environment variables
- MCP Clients - Configuration for different MCP clients
- Multi-Bot Setup - Configure multiple bots
