Cron Tools

io.github.basitalisandhu由 GitHub 账号 basitalisandhu 发布v0.3.0更新于 Oct 29, 2026

Parse, explain and validate 5-field cron expressions and list upcoming runs in a time zone.

发布方自己的服务:Croncool Cron Jobs

已验证STDIO仅桌面效率与工作流开发者工具

概览

AI 生成的概览

解析、解释、校验 5 段式 cron 表达式,并按指定时区列出未来与过去的运行时间。

可以做什么
  • 解析 cron 表达式,给出各字段原始文本、通配标记、全部取值、规范化形式与宏展开
  • 用一句英文说明表达式的含义
  • 校验表达式并报告错误与警告,如两个日期字段同时受限、永不发生的日期
  • 列出未来运行时间,或指定时刻之前的运行记录,含本地时间(带偏移)与 UTC
适用场景
适合在编写或审查 crontab、GitHub Actions 定时任务或其他 Vixie 风格调度配置时使用,需要解释、检查或在特定时区预览运行时间(含夏令时边界情况)。
运行要求
以本地 stdio 进程运行,通常通过 Docker 使用固定版本镜像;也可从代码仓库构建后用 Node.js 运行。未声明账号、API 密钥或环境变量,也不需要网络访问。
安装前请注意
只读:仅解析和计算调度,不会安装或修改任何 crontab。仅支持 5 段式 Vixie cron,秒字段及 L、W、# 会被拒绝。运行时间结果取决于所传入的时区与起始时间参数。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Cron Tools,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

cron-tools MCP server

Parses, explains, validates and schedules 5-field cron expressions in the Vixie cron dialect (Linux crontab, GitHub Actions, most schedulers), including lists, ranges, steps, month and weekday names, 0 or 7 for Sunday and the @hourly to @yearly macros. Time zone arithmetic uses Intl only; there are no dependencies beyond the MCP SDK and zod.

Part of dev-mcp-servers. Stdio transport only; the server never opens a port.

Tools

ToolInputWhat it returns
parse_cronexpressionPer field: raw text, wildcard flag and every accepted value; plus the normalised expression and macro expansion.
explain_cronexpressionOne English sentence, for example */15 9-17 * * 1-5 is "At every 15th minute past every hour from 9 through 17 on Monday through Friday."
validate_cronexpressionvalid, errors, and warnings: both day fields restricted (OR semantics), days that never occur in the chosen months, 7 for Sunday, ? spelling, macro expansion.
next_runsexpression, count? (1 to 100), timezone? (IANA), from? (ISO 8601)Upcoming run times in local time with offset and in UTC. Wall-clock times skipped by a forward DST transition are not run that day; a repeated hour runs twice. Stops after ten years.
previous_runsSame inputs as next_runsRun times strictly before from, newest first, in local time with offset and in UTC. Uses the same DST semantics and ten-year horizon.

Install

Claude Code:

bash
claude mcp add cron-tools -- docker run --rm -i ghcr.io/basitalisandhu/mcp-cron-tools:0.3.0

Add -s user to make it available in every project. Any client that reads .mcp.json (Claude Code, Claude Desktop, Cursor):

json
{  "mcpServers": {    "cron-tools": {      "command": "docker",      "args": ["run", "--rm", "-i", "ghcr.io/basitalisandhu/mcp-cron-tools:0.3.0"]    }  }}

Pin the version as shown so that an update cannot change what runs in your editor without you noticing. The package is not on npmjs.com yet, so npx does not work; see the repository README for GitHub Packages npm. From a checkout, use "command": "node", "args": ["<path>/packages/cron-tools/dist/index.js"] after npm install && npm run build at the repository root.

What it touches

  • Network: None.
  • Local files: None.
  • Telemetry: none.

Notes

  • Seconds fields (6-field Quartz) and L, W, # are rejected with an explanation.
  • When both day-of-month and day-of-week are restricted, a day matches if either does, as in Vixie cron.

Build and test

bash
npm install        # at the repository rootnpm run build -w @basitalisandhu/mcp-cron-toolsnpm test -w @basitalisandhu/mcp-cron-tools

Tests use node:test and the SDK's in-memory transport; they do not reach the network.

Licence

MIT. See LICENSE.

来源:packages/cron-tools/README.md,提交 b211222

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

5
  1. v0.3.0最新Oct 29, 2026
  2. v0.2.2Oct 18, 2026
  3. v0.2.1Oct 13, 2026
  4. v0.2.0Oct 9, 2026
  5. v0.1.1Oct 5, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Cron 集成