with one click
wecom-doc
// 当用户提到企业微信文档、智能表格、创建文档、编辑文档、写文档时启用。优先复用 wecom channel 自动写入的文档 MCP 配置,并通过 mcporter 调用文档能力。
// 当用户提到企业微信文档、智能表格、创建文档、编辑文档、写文档时启用。优先复用 wecom channel 自动写入的文档 MCP 配置,并通过 mcporter 调用文档能力。
Resolve a QQBot recipient from the local known-targets registry, distinguish between similarly named contacts, and send text or files to the intended QQ user with the correct target. Use whenever the user says things like “发给这个 QQ 联系人”, “把这个文件发给某个 QQ 用户”, “看看 known-targets.json 里是谁”, “确认发送对象”, or when you need to map a human-readable QQ contact name to a concrete `user:<openid>` target before sending. Prefer this skill over guessing from the current chat when multiple QQ users exist.
企业微信自建应用(wecom-app)运维与使用技能包。用于:定位并回发图片/语音/文件;使用 saved: 稳定路径做 OCR/MCP/二次处理;规范 target(wecom-app:user:xxx / user:xxx / 裸ID / @accountId);排查发送失败;配置入站媒体保留策略与语音转码策略。
| name | wecom-doc |
| description | 当用户提到企业微信文档、智能表格、创建文档、编辑文档、写文档时启用。优先复用 wecom channel 自动写入的文档 MCP 配置,并通过 mcporter 调用文档能力。 |
| metadata | {"openclaw":{"emoji":"📄","always":true,"requires":{"bins":["mcporter"]},"install":[{"id":"mcporter","kind":"node","package":"mcporter","bins":["mcporter"],"label":"Install mcporter (npm)"}]}} |
这个 skill 只负责通过 mcporter 调用企业微信文档 MCP,不要直接调用企业微信 Wedoc API。
先确认 mcporter 可执行。若未安装,提示用户安装;用户同意后执行:
npm install -g mcporter
安装完成后继续后续步骤,不要停在中间。
先执行:
mcporter list wecom-doc --output json
如果已经能正常返回 tool 列表,直接进入调用阶段。
如果返回 server not found、unknown server 或类似错误,读取:
~/.openclaw/wecomConfig/config.json
检查是否存在 mcpConfig.doc.type 和 mcpConfig.doc.url。若存在,执行:
mcporter config add wecom-doc --type "<type>" --url "<url>"
添加完成后再次执行 mcporter list wecom-doc --output json 进行验证。
如果本地没有 mcpConfig.doc,说明当前 wecom 长连接还没成功拉到文档 MCP 配置。此时:
channels.wecom.botId,提示用户去企业微信授权当前机器人文档权限StreamableHttp URL / JSON Config当用户提供 URL 或 JSON Config 后,提取 url 并执行:
mcporter config add wecom-doc --type streamable-http --url "<url>"
配置完成后重新执行 mcporter list wecom-doc --output json,然后继续用户原始请求。
mcporter call wecom-doc.<tool> --args '{...}' --output json 执行mcporter list wecom-doc --output json 读取实际 tool 列表,不要硬编码 tool 名称和参数结构create_doc 返回的 docid 要保存在当前会话里,后续编辑操作依赖它docid,直接输出:仅支持对机器人创建的文档进行编辑
create_doc,传 doc_type: 3docidedit_doc_contentcreate_doc,传 doc_type: 10docidmcporter call 返回 help_message,优先把其中面向用户的说明直接输出给用户850001,说明还需要用户提供配置或授权,按上面的配置引导继续处理daemon not running 或 connection refused,提示用户先执行:mcporter daemon start