{"_id":"@archiesun/dingtalk-mcp-messaging","name":"@archiesun/dingtalk-mcp-messaging","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@archiesun/dingtalk-mcp-messaging","version":"1.0.1","description":"钉钉消息通知MCP服务器 - 通讯录查询、部门查询、机器人消息、工作通知、服务窗","type":"module","main":"dist/index.js","types":"dist/index.d.ts","bin":{"dingtalk-mcp-messaging":"dist/cli.js"},"scripts":{"start":"node dist/cli.js","clean":"Remove-Item -Recurse -Force dist"},"dependencies":{"@modelcontextprotocol/sdk":"^0.4.0","axios":"^1.6.0","dotenv":"^16.3.0","js-yaml":"^4.1.0"},"devDependencies":{"@types/js-yaml":"^4.0.9","@types/node":"^20.19.0","typescript":"^5.8.3"},"keywords":["mcp","dingtalk","messaging","notification","robot","ai","typescript","model-context-protocol"],"author":{"name":"archiesun"},"license":"MIT","engines":{"node":">=16.0.0"},"repository":{"type":"git","url":"git+https://github.com/archiesun/dingtalk-mcp.git"},"bugs":{"url":"https://github.com/archiesun/dingtalk-mcp/issues"},"homepage":"https://open.dingtalk.com/document/ai-dev/dingtalk-server-api-mcp-overview","publishConfig":{"access":"public"},"gitHead":"350c5eb167e637657fe464b0400cfab4ec73c6db","_id":"@archiesun/dingtalk-mcp-messaging@1.0.1","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-UMrd5KdBdchGNIOjd/vlXzdt4jcsj1mFtRIlH7pGotOXa9B4f6KsvrOg2SfPbXamhi1hS2/wj2Mn8GY2rPybFA==","shasum":"c5d823fcf5aa96a24080bd19721b8b5fcc5f78e2","tarball":"https://registry.npmjs.org/@archiesun/dingtalk-mcp-messaging/-/dingtalk-mcp-messaging-1.0.1.tgz","fileCount":24,"unpackedSize":76999,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD1G9pi7zp6j3WTwAkOVzwnozaaqkvykZgUpLg7TWg/ogIhANid8WBjtm9T2ujPgWAwS6iIIw13qvfqZ8C/qkF+QfqW"}]},"_npmUser":{"name":"archiesun","email":"sunzhe1988@live.cn"},"directories":{},"maintainers":[{"name":"archiesun","email":"sunzhe1988@live.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dingtalk-mcp-messaging_1.0.1_1774679379465_0.7502952962859606"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-28T06:29:39.349Z","1.0.1":"2026-03-28T06:29:39.624Z","modified":"2026-03-28T06:29:39.806Z"},"maintainers":[{"name":"archiesun","email":"sunzhe1988@live.cn"}],"description":"钉钉消息通知MCP服务器 - 通讯录查询、部门查询、机器人消息、工作通知、服务窗","homepage":"https://open.dingtalk.com/document/ai-dev/dingtalk-server-api-mcp-overview","keywords":["mcp","dingtalk","messaging","notification","robot","ai","typescript","model-context-protocol"],"repository":{"type":"git","url":"git+https://github.com/archiesun/dingtalk-mcp.git"},"author":{"name":"archiesun"},"bugs":{"url":"https://github.com/archiesun/dingtalk-mcp/issues"},"license":"MIT","readme":"# 钉钉消息通知MCP服务�?\n钉钉消息通知MCP服务器，提供通讯录查询、部门查询、机器人消息、DING消息、工作通知、服务窗等功能�?\n## 功能特�?\n- 🔍 **通讯录查�?* - 按姓名搜索用户、获取用户详情、手机号/unionId转换\n- 🏢 **部门查询** - 按名称搜索部门、获取子部门、获取父部门路径\n- 🤖 **机器人消�?* - 群消息发�?撤回、单聊消息发�?撤回、自定义机器人消�?- 📢 **DING消息** - 发送高优先级DING消息、撤回DING消息\n- 📨 **工作通知** - 发送工作通知、查询发送结�?进度、撤回通知\n- 📱 **服务�?* - 服务窗消息发送、关注者管�?\n## 安装\n\n```bash\nnpm install @archiesun/dingtalk-mcp-messaging\n```\n\n## 配置\n\n### 环境变量\n\n```bash\n# 必需配置\nDINGTALK_Client_ID=your_app_key\nDINGTALK_Client_Secret=your_app_secret\n\n# 可选配�?ROBOT_CODE=your_robot_code\nROBOT_ACCESS_TOKEN=your_robot_access_token\nDINGTALK_AGENT_ID=your_agent_id\n```\n\n### MCP客户端配�?\n```json\n{\n  \"mcpServers\": {\n    \"dingtalk-messaging\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"dingtalk-mcp-messaging@latest\"],\n      \"env\": {\n        \"DINGTALK_Client_ID\": \"your client id\",\n        \"DINGTALK_Client_Secret\": \"your client secret\",\n        \"ROBOT_CODE\": \"your robot code\",\n        \"ROBOT_ACCESS_TOKEN\": \"your access token\",\n        \"DINGTALK_AGENT_ID\": \"your agent id\"\n      }\n    }\n  }\n}\n```\n\n## 工具列表\n\n| 分类 | 工具名称 | 说明 |\n|------|---------|------|\n| 辅助工具 | currentDateTime | 获取当前日期和时�?|\n| 通讯录查�?| searchUser | 按姓名搜索用�?|\n| | getUserDetailByUserId | 获取用户详情 |\n| | getUserIdByMobile | 手机号转userId |\n| | getUserIdByUnionId | unionId转userId |\n| | getUnionIdByUserId | userId转unionId |\n| | getDepartmentUsersByDepId | 获取部门成员 |\n| 部门查询 | searchDepartment | 按名称搜索部�?|\n| | getDepartmentDetail | 获取部门详情 |\n| | listSubDepartments | 获取子部�?|\n| | listSubDepartmentIds | 获取子部门ID列表 |\n| | getDepartmentParents | 获取父部门路�?|\n| | getUserDepartmentParents | 获取用户部门路径 |\n| 机器人消�?| sendMessageToGroupByRobot | 群消息发�?|\n| | recallGroupMessageByRobot | 群消息撤�?|\n| | batchSendMessageToUsersByRobot | 单聊消息发�?|\n| | batchRecallToUsersMessageByRobot | 单聊消息撤回 |\n| | sendMessageToGroupByCustomRobot | 自定义机器人消息 |\n| DING消息 | sendDINGMessageByRobot | 发送DING消息 |\n| | recallDINGMessage | 撤回DING消息 |\n| 工作通知 | sendNotice | 发送工作通知 |\n| | getSendResult | 获取发送结�?|\n| | getSendProgress | 获取发送进�?|\n| | recallNotice | 撤回工作通知 |\n| 服务�?| sendServiceWindowMessage | 发送服务窗单人消息 |\n| | batchSendServiceWindowMessage | 批量发送服务窗消息 |\n| | getServiceWindowFollowerInfo | 获取关注者信�?|\n| | listServiceWindowFollowersInfo | 批量获取关注者信�?|\n| | getUserFollowStatus | 获取关注状�?|\n| | listServiceWindows | 获取服务窗列�?|\n\n## 许可�?\nMIT License\n\n## 相关链接\n\n- [钉钉开放平台](https://open.dingtalk.com/)\n- [MCP协议文档](https://modelcontextprotocol.io/)\n","readmeFilename":"README.md","_rev":"1-2369bbfc178b08cdcb7902fa552daa47"}