tilwhen date engine

com.tilwhen由 tilwhen.com 发布官方发布者v1.0.1更新于 Nov 22, 2026

Deterministic date arithmetic with auditable receipts: business days, due dates, holidays.

已验证Streamable HTTP可网页运行效率与工作流金融

概览

AI 生成的概览

远程日期计算引擎,以确定性方式回答工作日、到期日与节假日问题,并为每个答案附上可审计的凭据。

可以做什么
  • 解析自然语言日期查询并作答,遇到歧义日期时要求澄清
  • 按指定时区加减日历天,并计算两个日期之间的带符号天数差
  • 统计两个日期之间的工作日,或求 N 个工作日之后的日期
  • 计算 Net-N 账期发票的到期日,可选顺延避开周末与节假日
  • 查找某个星期几或某个已收录事件(如节日)的下一次出现日期
  • 列出实际执行的公共假日,含法定日期及规则型或公告型状态
适用场景
当助手需要给出精确、可复现的日期答案时适用,例如截止日期、付款账期、工作日计数、需避开节假日的排期,并且应展示结果如何得出,而不是凭估算作答。
运行要求
需要一个远程 streamable HTTP 端点;未声明任何软件包、账号、API 密钥或环境变量。结果取决于请求中传入的时区,默认使用 UTC。
安装前请注意
没有默认节假日日历:不指定辖区就不会排除任何假日,服务器建议向用户询问其所需日历而非自行推断。跨越未正式公告假日年份的区间会返回 holiday_data_incomplete 警告,应与数字一并报告。

安装

在 SourceWeft 中

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

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

交给智能体安装

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

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

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

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "tilwhen-date-engine": {
      "type": "http",
      "url": "https://mcp.tilwhen.com/mcp"
    }
  }
}

README

该仓库没有 README。

工具

9

parse_date_query

Parse a natural-language date question

Parses queries like "90 business days from today in uganda" into a normalized operation, answers it, and returns the auditable receipt. Ambiguous dates (03/04/2027) return needsClarification instead of a guess.

输入参数q必填tzlocale

add_days

Add calendar days to a date

The date N whole calendar days after a date (exclusive counting: the start date is day 0). Omit date for today in tz. For working days use business_days; for the gap between two dates use days_between.

输入参数tzdatedays必填

subtract_days

Subtract calendar days from a date

The date N whole calendar days before a date (exclusive counting: the start date is day 0). Omit date for today in tz. For working days use business_days; for the gap between two dates use days_between.

输入参数tzdatedays必填

days_between

Days between two dates

Signed whole calendar days from the from date to the to date, midnight to midnight in tz: positive when to is later, negative when it is earlier. Endpoints are exclusive, so this is the gap and consecutive dates are 1 apart. Either date may be "today", resolved in tz. For working days between two dates use business_days; to move a date by N days use add_days or subtract_days.

输入参数to必填tzfrom必填

business_days

Business-day calculations

Span mode (from+to): business days between two dates, exclusive of the start day, inclusive of the end day. Add mode (days, optional date): the date N business days away. Passing from or to selects span mode and needs both; days and date are then ignored, so add mode takes its start date in date, not from. Optional holiday jurisdiction or custom calendar, and a selectable working week. For calendar days use add_days, subtract_days or days_between.

输入参数totzdatedaysfromworkweekjurisdictioncustomHolidays

invoice_due

Invoice due date from net terms

Due date for Net-N payment terms (calendar days, invoice date = day 0). Optional roll-forward past weekends and, with a jurisdiction or custom calendar, public holidays.

输入参数tznet必填rollworkweekinvoiceDatejurisdictioncustomHolidays

next_occurrence

Next occurrence of an event or weekday

The next occurrence strictly after the base date (default today) of either a tracked event slug (e.g. "christmas") or a weekday (0 = Sunday .. 6 = Saturday). Provide exactly one of event/weekday.

输入参数tzfromeventweekday

holidays

Public holidays for a jurisdiction and year

Observed public holidays with the nominal (legal) date and status: rule (statutory) or declared (officially declared for that year). Declared-only holidays are omitted for undeclared years, with a holiday_data_incomplete warning.

输入参数year必填jurisdiction必填

explain

Explain a calculation step by step

Runs any operation and returns the receipt plus human-readable derivation steps. Set op, then pass the fields that operation's own tool takes. Use it when the user asks how an answer was reached.

输入参数op必填totznetdatedaysfromrollyeareventweekdayworkweek另有 3 个

版本历史

2
  1. v1.0.1最新Sep 18, 2026
  2. v1.0.0Sep 16, 2026

评分

已满足适用检查项的 83%

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

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

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。