im-connector
v1.6.6MCP connector that lets AI agents drive DingTalk (dws) and WeCom (wecom-cli): messages, calendar, todos, approvals and docs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run Run IM CLI command
统一 IM 透传:执行指定平台的 CLI 命令并返回其 JSON 输出。args 是原生命令参数(不是自然语言)。写操作需用户明确意图:可先用 --dry-run 预览,确认后钉钉加 --yes。发现能力见资源 im://providers、im://dingtalk/services、im://wecom/sessions、im://dingtalk/templates。
| Parameter | Type | Description |
|---|---|---|
args * | array | 对应平台 CLI 的命令及参数(字符串数组) |
provider * | string | IM 平台标识:dingtalk=钉钉,wecom=企业微信 |
info Environment self-check
环境自检:返回各平台 CLI 版本、登录状态、是否随包携带二进制与实际可执行入口。首次使用或命令异常时先调用。
login Start platform login
发起平台登录(无需终端):企业微信返回可直接渲染的扫码二维码(图片内容 + 绝对路径 markdown,贴进回复即可内联显示);钉钉拉起浏览器授权,无头/远程环境用 mode=device 走设备码。完成后调用 login_status 确认。
| Parameter | Type | Description |
|---|---|---|
provider * | string | IM 平台标识:dingtalk=钉钉,wecom=企业微信 |
mode | string | 钉钉登录方式:browser=本机浏览器授权(默认),device=设备码;企业微信固定扫码 |
login_status Check login status
查询登录状态:是否已授权、登录进程是否仍在运行、二维码(若可用)、最近输出与退出码。
| Parameter | Type | Description |
|---|---|---|
provider * | string | IM 平台标识:dingtalk=钉钉,wecom=企业微信 |