← 返回 Skills 市场
Dingtalk Calendar
作者
onlyloveher
· GitHub ↗
· v2.0.0
· MIT-0
153
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install dingtalk-cal-v1
功能描述
钉钉日程管理(创建日程、查询闲忙、会议室预订)。使用 mcporter CLI 连接钉钉 MCP server 执行日程管理、日程查询、会议室预订等操作。使用场景:日程创建管理、会议预订、查询他人闲忙、会议室预约等。
使用说明 (SKILL.md)
钉钉日程管理
使用 mcporter CLI 调用钉钉日历 MCP 创建和管理日程。
前置要求
安装 mcporter CLI
本技能依赖 mcporter 工具。请在终端中手动执行以下命令安装:
# 使用 npm 安装
npm install -g mcporter
# 或使用 bun 安装
bun install -g mcporter
验证安装:
mcporter --version
配置 MCP Server
本技能需要配置两个 MCP 服务:钉钉日历 和 钉钉通讯录。
步骤一:获取 Streamable HTTP URL
- 访问钉钉 MCP 广场:https://mcp.dingtalk.com
- 搜索 钉钉日历,点击进入服务详情页
- 在页面右侧找到
Streamable HTTP URL,点击复制按钮 - 同样的方法,获取 钉钉通讯录 的 URL
步骤二:使用 mcporter 配置 MCP 服务
# 添加钉钉日历 MCP 服务
mcporter config add dingtalk-calendar --url "这里粘贴钉钉日历的URL"
# 添加钉钉通讯录 MCP 服务
mcporter config add dingtalk-contacts --url "这里粘贴钉钉通讯录的URL"
步骤三:验证配置
# 查看已配置的服务
mcporter config list
# 测试连接(列出可用工具)
mcporter call dingtalk-calendar list_tools --output json
mcporter call dingtalk-contacts list_tools --output json
基本命令模式
所有操作通过 mcporter call dingtalk-calendar \x3Ctool> 执行:
# 创建日程
mcporter call dingtalk-calendar create_calendar_event \
--args '{"summary":"会议","startDateTime":"2026-02-28T14:00:00+08:00","endDateTime":"2026-02-28T15:00:00+08:00"}' \
--output json
# 查询日程
mcporter call dingtalk-calendar list_calendar_events \
--args '{"startTime":1738128000000,"endTime":1738214400000}' \
--output json
# 查询闲忙
mcporter call dingtalk-calendar query_busy_status \
--args '{"userIds":["userId1"],"startTime":1738128000000,"endTime":1738214400000}' \
--output json
核心工具
1. 创建日程
# 基本创建
mcporter call dingtalk-calendar create_calendar_event \
--args '{
"summary": "项目评审会议",
"startDateTime": "2026-02-28T14:00:00+08:00",
"endDateTime": "2026-02-28T15:00:00+08:00",
"description": "讨论 Q1 进度",
"attendees": ["userId1", "userId2"]
}' \
--output json
参数说明:
| 参数 | 必填 | 说明 |
|---|---|---|
summary |
✅ | 日程标题(最长 2048 字符) |
startDateTime |
✅ | 开始时间(ISO-8601 格式,如 2026-02-28T14:00:00+08:00) |
endDateTime |
✅ | 结束时间(ISO-8601 格式) |
description |
❌ | 日程描述(最长 5000 字符) |
attendees |
❌ | 参与人 userId 列表(最多 500 人) |
2. 查询日程列表
# 查询指定时间范围的日程
mcporter call dingtalk-calendar list_calendar_events \
--args '{
"startTime": 1738128000000,
"endTime": 1738214400000
}' \
--output json
3. 查询他人闲忙
mcporter call dingtalk-calendar query_busy_status \
--args '{
"userIds": ["userId1", "userId2"],
"startTime": 1738128000000,
"endTime": 1738214400000
}' \
--output json
4. 查询空闲会议室
mcporter call dingtalk-calendar query_available_meeting_room \
--args '{
"startTime": "1738128000000",
"endTime": "1738131600000"
}' \
--output json
5. 为日程添加会议室
mcporter call dingtalk-calendar add_meeting_room \
--args '{
"eventId": "日程ID",
"roomIds": ["会议室ID1"]
}' \
--output json
6. 更新日程
mcporter call dingtalk-calendar update_calendar_event \
--args '{
"eventId": "日程ID",
"summary": "新标题",
"description": "新描述"
}' \
--output json
7. 删除日程
mcporter call dingtalk-calendar delete_calendar_event \
--args '{"eventId": "日程ID"}' \
--output json
通讯录工具
搜索用户
mcporter call dingtalk-contacts search_user_by_key_word \
--args '{"keyWord": "张三"}' \
--output json
获取用户详情
mcporter call dingtalk-contacts get_user_info_by_user_ids \
--args '{"user_id_list": ["userId1", "userId2"]}' \
--output json
常用时间格式
import time
from datetime import datetime
# 获取当前时间戳(毫秒)
int(time.time() * 1000)
# 时间戳转 ISO 8601
datetime.fromtimestamp(1738128000000 / 1000).strftime("%Y-%m-%dT%H:%M:%S+08:00")
# ISO 8601 转时间戳(毫秒)
int(datetime.fromisoxt("2026-02-28T14:00:00+08:00").timestamp() * 1000)
使用示例
创建会议并预订会议室
# 1. 查询14:00-15:00的空闲会议室
mcporter call dingtalk-calendar query_available_meeting_room \
--args '{"startTime":"1738128000000","endTime":"1738131600000"}' \
--output json
# 2. 创建日程(假设获取到会议室ID: room123)
mcporter call dingtalk-calendar create_calendar_event \
--args '{
"summary": "周会",
"startDateTime": "2026-02-28T14:00:00+08:00",
"endDateTime": "2026-02-28T15:00:00+08:00"
}' \
--output json
# 3. 添加会议室(假设日程ID: event123)
mcporter call dingtalk-calendar add_meeting_room \
--args '{"eventId":"event123","roomIds":["room123"]}' \
--output json
安全使用建议
This skill is an instruction wrapper that expects you to install and configure the third-party mcporter CLI to connect to DingTalk MCP services. Before proceeding: 1) Verify that the mcporter package (and its npm author) are trustworthy — installing any global npm package runs third-party code on your machine. 2) The SKILL.md asks you to copy 'Streamable HTTP URL' values from the DingTalk MCP console — those URLs likely contain tokens/credentials. Treat them like secrets: only paste them into mcporter if you trust the environment, and review what mcporter stores (where it writes config) so you can delete or rotate credentials later. 3) Because the skill is instruction-only and does not itself ship code that exfiltrates data, the primary risk is the external mcporter tool; inspect mcporter's docs/source and prefer least-privilege, scoped service URLs if possible. 4) If you want stronger isolation, install mcporter in a controlled environment (container or VM) rather than globally on your workstation.
功能分析
Type: OpenClaw Skill
Name: dingtalk-cal-v1
Version: 2.0.0
The skill bundle provides instructions and command-line examples for managing DingTalk calendars and contacts via the 'mcporter' CLI tool. It requires the user to manually install the legitimate 'mcporter' dependency and configure it with official DingTalk MCP server URLs (mcp.dingtalk.com). No evidence of data exfiltration, malicious execution, or prompt injection was found in SKILL.md or the configuration files.
能力评估
Purpose & Capability
Name/description state the skill uses the mcporter CLI to talk to DingTalk MCP services; the SKILL.md exclusively instructs installing and using mcporter and configuring DingTalk MCP URLs — these are coherent and expected for a calendar/meeting-room management skill.
Instruction Scope
Instructions ask the user to install mcporter and to add two MCP service endpoints (calendar and contacts). The skill does not instruct reading unrelated system files or environment variables. Note: SKILL.md tells the user to paste 'Streamable HTTP URL' values (these URLs likely contain access tokens and are the credentials used by mcporter) but the skill does not itself declare or manage any credentials — this is expected for an instruction-only wrapper but worth awareness.
Install Mechanism
This is an instruction-only skill (no install spec). The README recommends installing mcporter via npm or bun (user-run installation). package.json lists mcporter as a dependency even though there is no automated install step — this is a modest inconsistency but not malicious. The real install risk is from installing mcporter from npm; verify mcporter's trustworthiness before global install.
Credentials
The skill declares no required environment variables or secrets, which matches the bundle. The only credential-like inputs are the MCP 'Streamable HTTP URL's the user must supply to mcporter; those are service-specific and appropriate for this functionality. The skill does not request unrelated credentials or broad environment access.
Persistence & Privilege
always is false and the skill is user-invocable. There is no install-time script or code that would make persistent changes to the agent. All persistent configuration is handled by the mcporter tool (outside the skill), which is expected for this workflow.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dingtalk-cal-v1 - 安装完成后,直接呼叫该 Skill 的名称或使用
/dingtalk-cal-v1触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
No changes detected in files; version bump without any content updates.
- Version updated to 2.0.0.
- No new features, bug fixes, or documentation changes included in this release.
v1.0.0
Initial release of dingtalk-calendar skill
- Provides DingTalk calendar management, including creating events, querying free/busy status, meeting room booking, and user/meeting room lookup.
- Requires installation and configuration of mcporter CLI and MCP server connections for DingTalk Calendar and Contacts.
- Supports CLI commands for creating, updating, and deleting calendar events, as well as checking calendar availability and scheduling meetings.
- Includes detailed usage instructions and examples for typical scheduling and meeting workflows.
元数据
常见问题
Dingtalk Calendar 是什么?
钉钉日程管理(创建日程、查询闲忙、会议室预订)。使用 mcporter CLI 连接钉钉 MCP server 执行日程管理、日程查询、会议室预订等操作。使用场景:日程创建管理、会议预订、查询他人闲忙、会议室预约等。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 153 次。
如何安装 Dingtalk Calendar?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dingtalk-cal-v1」即可一键安装,无需额外配置。
Dingtalk Calendar 是免费的吗?
是的,Dingtalk Calendar 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Dingtalk Calendar 支持哪些平台?
Dingtalk Calendar 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Dingtalk Calendar?
由 onlyloveher(@onlyloveher)开发并维护,当前版本 v2.0.0。
推荐 Skills