
Cron Tools
io.github.basitalisandhuv0.1.1更新于 Oct 5, 2026
Parse, explain and validate 5-field cron expressions and list upcoming runs in a time zone.
概览
让助手解析、解释、校验 5 段式 cron 表达式,并按指定时区列出接下来的运行时间。
- 功能
- 提供四个面向 Vixie 风格 5 段式 cron 表达式的工具:parse_cron 拆分各字段取值并规范化表达式,explain_cron 返回一句英文说明,validate_cron 给出是否有效及警告,next_runs 列出带本地偏移和 UTC 的后续运行时间。支持列表、区间、步长、月份与星期名称、用 0 或 7 表示周日,以及 @hourly 到 @yearly 宏。时区计算仅使用 Intl。
- 适用场景
- 适合在编写或检查 crontab、GitHub Actions 计划任务或其他 cron 调度配置时,用来校验表达式或查看后续运行时间。也适合把不熟悉的表达式用通俗语言解释清楚。
- 运行要求
- 以本地 stdio 方式运行,可通过 npm 包(npx @basitalisandhu/mcp-cron-tools)或 Docker 镜像启动;npm 方式需要 Node.js。未声明账号、API 密钥、环境变量或请求头,服务器不进行网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 Cron Tools,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
Install
Claude Code:
Add -s user to make it available in every project. Any client that reads .mcp.json (Claude Code, Claude Desktop, Cursor):
Pin the version as shown so that an update to the package cannot change what runs in your editor without you noticing. 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
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,提交 58c8c95
工具
0版本历史
1- v0.1.1最新Oct 5, 2026


