本技能指导如何在 OpenClaw 中配置企业微信 MCP 集成,启用后可使用消息收发、待办管理、会议调度等功能。
编辑 ~/.openclaw/workspace/config/mcporter.json,在 mcpServers 中添加:
{
"mcpServers": {
"wecom_mcp": {
"command": "npx",
"args": ["-y", "wecom-mcp-server"],
"env": {
"WECOM_CORP_ID": "<你的企业ID>",
"WECOM_AGENT_ID": "<你的应用ID>",
"WECOM_SECRET": "<你的应用密钥>"
}
}
}
}
> 获取凭证:登录企业微信管理后台 → 应用管理 → 选择应用 → 查看 Corp ID、Agent ID 和 Secret
检查当前权限配置:
openclaw config get tools.profile
full → 跳过此步骤,所有工具已无限制openclaw config set tools.alsoAllow '["wecom_mcp"]'
> 如果 alsoAllow 中已有其他工具,需要合并写入,例如:
> ```bash
> openclaw config set tools.alsoAllow '["other_tool", "wecom_mcp"]'
> ```
配置变更后必须重启 Gateway:
openclaw gateway restart
重启后,可以测试 MCP 是否正常工作:
mcporter list
如果看到 wecom_mcp 在列表中,说明配置成功。
配置完成后,以下 skills 将自动可用:
| Skill | 功能 |
|---|---|
| ------- | ------ |
wecom-msg | 消息收发、聊天记录查看 |
wecom-get-todo-list | 待办列表查询 |
wecom-edit-todo | 待办创建/更新/删除 |
wecom-schedule | 日程管理 |
wecom-meeting-create | 会议创建 |
wecom-meeting-query | 会议查询 |
wecom-contact-lookup | 通讯录查询 |
openclaw gateway logs确认 tools.alsoAllow 包含 wecom_mcp:
openclaw config get tools.alsoAllow
共 1 个版本