Cron Schedule Audit

io.github.tylerscomic-lab由 GitHub 账号 tylerscomic-lab 发布v1.0.0更新于 Oct 24, 2026

Validates cron expressions and finds DST bugs that make jobs silently skip or double-fire.

发布方自己的服务:audit.domains - Domain Valuation

已验证Streamable HTTP可网页运行云端与基础设施开发者工具

概览

AI 生成的概览

校验 cron 表达式并计算考虑夏令时的下次触发时间,标出会静默跳过或重复触发的任务。

可以做什么
  • 校验 cron 表达式,检查语法与语义问题,包括日字段的“或”而非“与”逻辑以及某些月份不存在的日期
  • 用通俗语言解释表达式的含义
  • 基于真实 IANA 时区数据计算接下来 N 次触发时间,把夏令时前跳缺口标为跳过、回拨重叠标为歧义
  • 扫描未来一整年,列出计划与夏令时切换冲突的日期
适用场景
适合在编写或审查 cron 任务时使用,尤其是安排在凌晨时段、可能因夏令时切换而静默跳过或重复触发且不报错的任务。
运行要求
远程 streamable HTTP 端点,需要 OAuth 认证。也可自行托管:安装 npm 包并用 Node.js 运行服务器。
安装前请注意
托管版本为付费服务,提供免费额度与按月订阅的 Pro 方案。该服务器只分析表达式并返回结果,不会修改你的计划任务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Cron Schedule Audit,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.tylerscomic-lab%2Fcron-schedule-audit-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "cron-schedule-audit": {
      "type": "http",
      "url": "https://cron-schedule-audit-mcp.mcpize.run/mcp"
    }
  }
}

README

cron-schedule-audit-mcp

[License: MIT] [Live on MCPize]

An MCP server that validates cron expressions and computes DST-correct next-fire times using the real IANA timezone database — no moment-timezone or luxon dependency, just a hand-rolled fake-UTC-offset technique against the platform's own tz data.

The bug this catches

A cron job scheduled at 30 2 * * * (2:30am daily) in America/New_York silently never fires on the spring-forward date, because 2:00-2:59am doesn't exist that day. A job at 30 1 * * * (1:30am) fires twice on the fall-back date, because that hour is repeated. Neither failure throws an error or shows up in logs — it just looks like a flaky cron that "sometimes doesn't run." Verified against real 2026/2027 transition dates during testing (spring-forward 2027-03-14, fall-back 2026-11-01).

Also flags the day-of-month/day-of-week footgun almost everyone hits once: POSIX cron treats both fields as OR, not AND, when both are restricted.

Tools

validate_cron_expression

Syntax + semantic validation: OR-not-AND warning, every-minute footgun, day-of-month values some months don't have (31, 30, 29), a nudge to check DST risk for anything in the 1-3am window. Returns a plain-English explanation of what the expression means.

get_next_fire_times

Next N fire times, DST-aware. If a scheduled local time falls in a spring-forward gap it's flagged as skipped; if it falls in a fall-back overlap, both real firings are returned as ambiguous.

detect_dst_risk

Scans a full year ahead and reports every date where the schedule collides with a DST transition — run this once on any job scheduled in the 1-4am local window before you ship it.

Use it

Hosted (recommended): MCPize — free tier, $7/mo Pro.

Self-host:

bash
npm installnode server.js

Part of a small suite

mcp-schema-audit-mcp, regex-safety-audit-mcp, claude-cost-audit-mcp.

License

MIT

来源:README.md,提交 6205784

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 85%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

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

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

其他 Audit 集成