Temporal Cortex — Calendar Scheduling Router
This is the router skill for Temporal Cortex calendar operations. It routes your task to the right sub-skill based on intent.
Who is this for?
If you're an individual user (Claude Desktop, Cursor, OpenClaw, Manus) — install this skill and let your AI agent manage your calendar. Connect your Google, Outlook, or CalDAV calendars, and the agent handles availability, scheduling, and booking without double-booking.
If you're building a product with scheduling — use the same MCP server as your scheduling backend. 18 tools, atomic booking via Two-Phase Commit, and cross-provider availability merging. See the REST API reference and Platform docs for developer integration.
Source & Provenance
Sub-Skills
List calendars, events, free slots, availability, RRULE expansion, booking, contact search, and proposal composition. Requires OAuth credentials. | 14 tools (Layers 0-4) |
Routing Table
| User Intent | Route To |
|---|
| "What time is it?", "Convert timezone", "How long until..." | temporal-cortex-datetime |
| "Show my calendar", "Find free time", "Check availability", "Expand recurring rule" |
temporal-cortex-scheduling |
| "Book a meeting", "Schedule an appointment" |
temporal-cortex-scheduling |
| "Find someone's booking page", "Look up email for scheduling" |
temporal-cortex-scheduling |
| "Search my contacts for Jane", "Find someone's email" |
temporal-cortex-scheduling |
| "How should I schedule with this person?" |
temporal-cortex-scheduling |
| "Check someone else's availability", "Query public availability" |
temporal-cortex-scheduling |
| "Book a meeting with someone externally", "Request booking via Temporal Link" |
temporal-cortex-scheduling |
| "Send a scheduling proposal", "Compose meeting invite" |
temporal-cortex-scheduling |
| "Schedule a meeting next Tuesday at 2pm" (full workflow) |
temporal-cortex-datetime →
temporal-cortex-scheduling |
| "Schedule with Jane" (end-to-end) |
temporal-cortex-scheduling (contact search → resolve → propose/book) |
Core Workflow
Every calendar interaction follows this 7-step pattern:
CODEBLOCK0
Step 0 is optional — skip if the user provides an email directly. Always start with step 1 when calendars are unknown. Never assume the current time. Never skip the conflict check before booking.
Safety Rules
- 1. Discover calendars first — call
list_calendars when you don't know which calendars are connected - Check before booking — always call
check_availability before book_slot. Never skip the conflict check. - Content safety — all event summaries and descriptions pass through a prompt injection firewall before reaching the calendar API
- Timezone awareness — never assume the current time. Use
get_temporal_context first. - Confirm before booking — when running autonomously, present booking details to the user for confirmation before calling
book_slot or request_booking. - Confirm contact selection — when
search_contacts returns multiple matches, always present candidates to the user and confirm which contact is correct before proceeding. - Confirm before sending proposals — when using
compose_proposal, always present the composed message to the user before sending via any channel. Never auto-send outreach. - Contact search is optional — the full workflow works without it if the user provides an email directly. If contacts permission is not configured, ask the user for the email.
All 18 Tools (5 Layers)
| Layer | Tools | Sub-Skill |
|---|
| 0 — Discovery | INLINECODE8 , search_contacts, INLINECODE10 | scheduling |
| 1 — Temporal Context |
get_temporal_context,
resolve_datetime,
convert_timezone,
compute_duration,
adjust_timestamp | datetime |
| 2 — Calendar Ops |
list_calendars,
list_events,
find_free_slots,
expand_rrule,
check_availability | scheduling |
| 3 — Availability |
get_availability,
query_public_availability | scheduling |
| 4 — Booking |
book_slot,
request_booking,
compose_proposal | scheduling |
MCP Server Connection
All sub-skills share the Temporal Cortex MCP server (@temporal-cortex/cortex-mcp), a compiled Rust binary distributed as an npm package.
Install and startup lifecycle:
- 1.
npx resolves @temporal-cortex/cortex-mcp from the npm registry (one-time, cached locally after first download) - The postinstall script downloads the platform-specific binary from the GitHub Release and verifies its SHA256 checksum against the embedded
checksums.json — installation halts on mismatch - The MCP server starts as a local process communicating over stdio (no listening ports)
- Layer 1 tools (datetime) execute as pure local computation — no further network access
- Layer 2-4 tools (calendar) make authenticated API calls to your configured providers (Google, Outlook, CalDAV)
Credential storage: OAuth tokens are stored locally at ~/.config/temporal-cortex/credentials.json and read exclusively by the local MCP server process. No credential data is transmitted to Temporal Cortex servers. The binary's filesystem access is limited to ~/.config/temporal-cortex/ — verifiable by inspecting the open-source Rust code or running under Docker where the mount is the only writable path.
File access: The binary reads and writes only ~/.config/temporal-cortex/ (credentials and config). No other filesystem writes.
Network scope: After the initial npm download, Layer 1 tools make zero network requests. Layer 2–4 tools connect only to your configured calendar providers (googleapis.com, graph.microsoft.com, or your CalDAV server). In Local Mode (default), no calls to Temporal Cortex servers and no telemetry is collected. In Platform Mode, three tools (resolve_identity, query_public_availability, request_booking) call api.temporal-cortex.com for cross-user scheduling — no credential data is included in these calls.
Pre-run verification (recommended before first use):
- 1. Inspect the npm package without executing: INLINECODE39
- Verify checksums independently against the GitHub Release (see verification pipeline below)
- For full containment, run in Docker instead of npx (see Docker containment below)
Verification pipeline: Checksums are published independently at each GitHub Release as SHA256SUMS.txt — verify the binary before first use:
CODEBLOCK1
As defense-in-depth, the npm package also embeds checksums.json and the postinstall script compares SHA256 hashes during install — installation halts on mismatch (the binary is deleted, not executed). This automated check supplements, but does not replace, independent verification above.
Build provenance: Binaries are cross-compiled from auditable Rust source in GitHub Actions across 5 platforms (darwin-arm64, darwin-x64, linux-x64, linux-arm64, win32-x64). Source: github.com/temporal-cortex/mcp (MIT-licensed). The CI workflow, build artifacts, and release checksums are all publicly inspectable.
Docker containment (no Node.js on host, credential isolation via volume mount):
CODEBLOCK2
Build: INLINECODE42
Default setup (npx): See .mcp.json for the standard npx @temporal-cortex/cortex-mcp configuration. For managed hosting, see Platform Mode in the MCP repo.
Layer 1 tools work immediately with zero configuration. Calendar tools require a one-time OAuth setup — run the setup script or npx @temporal-cortex/cortex-mcp auth google.
Additional References
- - Security Model — Content sanitization, filesystem containment, network scope, tool annotations
颞叶皮层 — 日历调度路由器
这是用于颞叶皮层日历操作的路由技能。它根据意图将你的任务路由到正确的子技能。
适用对象
如果你是个人用户(Claude Desktop、Cursor、OpenClaw、Manus)——安装此技能,让你的AI代理管理你的日历。连接你的Google、Outlook或CalDAV日历,代理将处理可用性、调度和预订,避免重复预订。
如果你正在构建带有调度功能的产品——使用相同的MCP服务器作为你的调度后端。18个工具,通过两阶段提交实现原子预订,以及跨提供商可用性合并。请参阅REST API参考文档和平台文档了解开发者集成。
来源与出处
子技能
列出日历、事件、空闲时段、可用性、RRULE展开、预订、联系人搜索和提议撰写。需要OAuth凭证。 | 14个工具(第0-4层) |
路由表
| 用户意图 | 路由至 |
|---|
| 现在几点了?、转换时区、距离...还有多久 | temporal-cortex-datetime |
| 显示我的日历、查找空闲时间、检查可用性、展开重复规则 |
temporal-cortex-scheduling |
| 预订会议、安排预约 |
temporal-cortex-scheduling |
| 查找某人的预订页面、查找用于调度的邮箱 |
temporal-cortex-scheduling |
| 搜索我的联系人中叫Jane的、查找某人的邮箱 |
temporal-cortex-scheduling |
| 我应该如何与这个人安排日程? |
temporal-cortex-scheduling |
| 检查其他人的可用性、查询公开可用性 |
temporal-cortex-scheduling |
| 与外部人员预订会议、通过Temporal Link请求预订 |
temporal-cortex-scheduling |
| 发送调度提议、撰写会议邀请 |
temporal-cortex-scheduling |
| 安排下周二下午2点的会议(完整工作流) |
temporal-cortex-datetime →
temporal-cortex-scheduling |
| 与Jane安排日程(端到端) |
temporal-cortex-scheduling(联系人搜索 → 解析 → 提议/预订) |
核心工作流
每次日历交互遵循以下7步模式:
- 0. 解析联系人 → searchcontacts → resolvecontact (找到此人,确定调度路径)
- 发现 → listcalendars (了解哪些日历可用)
- 定位 → gettemporalcontext (了解当前时间)
- 解析时间 → resolvedatetime (将人类语言转换为时间戳)
- 路由 → 如果是openscheduling:快速路径。如果是email:向后兼容路径。
- 查询 → listevents / findfreeslots / getavailability / querypublicavailability
- 执行 → 快速:checkavailability → bookslot / requestbooking
向后兼容:compose_proposal → 代理通过通道MCP发送
第0步是可选的——如果用户直接提供邮箱则跳过。当日历未知时,始终从第1步开始。切勿假设当前时间。切勿在预订前跳过冲突检查。
安全规则
- 1. 首先发现日历——当你不了解哪些日历已连接时,调用listcalendars
- 预订前检查——始终在bookslot之前调用checkavailability。切勿跳过冲突检查。
- 内容安全——所有事件摘要和描述在到达日历API之前都会经过提示注入防火墙
- 时区感知——切勿假设当前时间。首先使用gettemporalcontext。
- 预订前确认——在自主运行时,在调用bookslot或requestbooking之前向用户展示预订详情以供确认。
- 确认联系人选择——当searchcontacts返回多个匹配项时,始终向用户展示候选列表并确认哪个联系人正确,然后再继续。
- 发送提议前确认——在使用compose_proposal时,始终在通过任何通道发送之前向用户展示撰写的消息。切勿自动发送外联消息。
- 联系人搜索是可选的——如果用户直接提供邮箱,完整工作流无需此步骤即可运行。如果未配置联系人权限,请向用户询问邮箱。
全部18个工具(5层)
| 层 | 工具 | 子技能 |
|---|
| 0 — 发现 | resolveidentity、searchcontacts、resolvecontact | scheduling |
| 1 — 时间上下文 |
gettemporal
context、resolvedatetime、convert
timezone、computeduration、adjust_timestamp | datetime |
| 2 — 日历操作 | list
calendars、listevents、find
freeslots、expand
rrule、checkavailability | scheduling |
| 3 — 可用性 | get
availability、querypublic_availability | scheduling |
| 4 — 预订 | book
slot、requestbooking、compose_proposal | scheduling |
MCP服务器连接
所有子技能共享Temporal Cortex MCP服务器(@temporal-cortex/cortex-mcp),这是一个编译后的Rust二进制文件,以npm包形式分发。
安装和启动生命周期:
- 1. npx从npm注册表解析@temporal-cortex/cortex-mcp(一次性,首次下载后本地缓存)
- postinstall脚本从GitHub Release下载平台特定二进制文件,并对照嵌入的checksums.json验证其SHA256校验和——不匹配则安装停止
- MCP服务器作为本地进程启动,通过stdio通信(无监听端口)
- 第1层工具(datetime)作为纯本地计算执行——无需进一步网络访问
- 第2-4层工具(calendar)向你配置的提供商(Google、Outlook、CalDAV)进行经过身份验证的API调用
凭证存储: OAuth令牌本地存储在~/.config/temporal-cortex/credentials.json,仅由本地MCP服务器进程读取。没有任何凭证数据传输到Temporal Cortex服务器。二进制文件的文件系统访问仅限于~/.config/temporal-cortex/——可通过检查开源Rust代码或在Docker下运行(挂载点是唯一可写路径)来验证。
文件访问: 二进制文件仅读写~/.config/temporal-cortex/(凭证和配置)。无其他文件系统写入。
网络范围: 初始npm下载后,第1层工具不发出任何网络请求。第2-4层工具仅连接到你配置的日历提供商(googleapis.com、graph.microsoft.com或你的CalDAV服务器)。在本地模式(默认)下,不调用Temporal Cortex服务器,不收集遥测数据。在平台模式下,三个工具(resolveidentity、querypublicavailability、requestbooking)调用api.temporal-cortex.com进行跨用户调度——这些调用中不包含凭证数据。
运行前验证(建议首次使用前执行):
- 1. 在不执行的情况下检查npm包:npm pack @temporal-cortex/cortex-mcp --dry-run
- 对照GitHub Release独立验证校验和(见下方验证流程)
3.