Business Days & SLA

io.github.Vessark由 GitHub 账号 Vessark 发布v0.1.0更新于 Oct 24, 2026

Business-day, SLA, cron and recurrence calculations — offline, holiday-aware, no network.

已验证Streamable HTTP可网页运行效率与工作流开发者工具

概览

AI 生成的概览

为助手提供考虑节假日的营业日、SLA 到期时间、cron 与 RRULE 计算,离线运行、不联网。

可以做什么
  • 判断某日期是否为工作日,并说明是周末还是某个节假日
  • 按工作日数前后移动日期、统计两个日期之间的工作日数、取某月首个或最后一个工作日
  • 计算按营业小时计的 SLA 何时到期,只计入营业时间
  • 校验并解释 cron 表达式,列出接下来几次触发时间
  • 校验并解释 RFC 5545 重复规则,并展开其后续发生时间
适用场景
适合助手回答客服、计费或运维类日期问题:某天在指定国家是否为工作日、SLA 时钟何时到期、某条 cron 或 RRULE 表达式是什么意思、下次何时触发。它只是计算器,不是调度器。
运行要求
vessark.com 上的远程端点无需安装、无需凭据。本地运行需用 uvx 或克隆后用 uv,从 Git 仓库获取 Python 包;运行时不发起网络请求。
安装前请注意
cron 与重复规则工具只做解析和解释,不会调度、存储或执行任何任务。工作日默认按周一至周五计算,因此周日至周四工作制的国家会算错;超出内置节假日数据范围的日期会被拒绝。托管端点依赖提供方可用性;README 说明 Vessark 的工作区工具是另外的商业产品。

安装

在 SourceWeft 中

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

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "business-days-sla": {
      "type": "http",
      "url": "https://vessark.com/mcp"
    }
  }
}

README

business-days-mcp

[MCP server quality]

An MCP server for the date arithmetic that support, billing and operations teams actually do: is this a working day, when is this SLA due, what is the next working day after a bank holiday — plus cron and recurrence-rule parsing for the recurring side of the same job.

It runs offline. No network calls, no stored data, no model calls — every answer is computed from bundled public-holiday rules.

What it does

Business days and SLAs — holiday-aware for ~150 countries and their subdivisions (England and Scotland differ; so do US states), via the holidays package.

ToolAnswers
is_business_dayIs this a working day? If not, is it a weekend or a named holiday?
next_business_day / previous_business_dayThe next/last working day around a date
add_business_daysMove ±N working days from a date
business_days_betweenHow many working days between two dates (half-open)
first_business_day_of_month / last_business_day_of_monthMonth boundaries
sla_due_timeWhen does an N-business-hour SLA fall due, counting only open hours?

Cron and recurrence — parsing only. Nothing is scheduled, stored, or executed; there are no timers and no job store. If you want something run on a schedule, this is deliberately not that tool.

ToolAnswers
validate_cron_expression / explain_cron_expressionIs this cron valid, and what does it mean in English?
next_cron_occurrencesWhen would it next fire?
validate_recurrence_rule / explain_recurrence_ruleSame, for an RFC 5545 RRULE
next_recurrence_occurrencesExpand an RRULE to its next occurrences

Install and run

The hosted endpoint needs no install at all — see Client configuration. To run it yourself, uvx fetches and runs it:

sh
uvx --from git+https://github.com/Vessark/business-days-mcp business-days-mcp

From a clone:

sh
git clone https://github.com/Vessark/business-days-mcpcd business-days-mcpuv sync && uv run business-days-mcpuv run pytest                         # the tests are the documentation

Client configuration

Hosted — nothing to install

The quickest way in. The same tools, no install, no credentials:

json
{  "mcpServers": {    "vessark": {      "url": "https://vessark.com/mcp"    }  }}

Run it yourself

If you would rather not depend on someone else's uptime, run it locally — it is the same code, and it never touches the network:

json
{  "mcpServers": {    "business-days": {      "command": "uvx",      "args": [        "--from",        "git+https://github.com/Vessark/business-days-mcp",        "business-days-mcp"      ]    }  }}

Examples

jsonc
// is_business_day — 2026-12-28, UK{"date": "2026-12-28", "country": "GB"}→ {"is_business_day": false, "reason": "holiday: Boxing Day (substitute day)"}
// sla_due_time — 8 business hours from Monday 16:00{"start": "2026-07-27T16:00", "business_hours": 8}→ {"due": "2026-07-28T16:00:00", "started_within_business_hours": true}
// explain_cron_expression{"expression": "30 9 * * MON-FRI"}→ {"explanation": "At 09:30, on Monday through Friday."}

Design notes

Every tool is a pure function of its arguments, which is why the test suite is mostly tables. Invalid input is an ordinary typed result, never an exception — a model that gets an argument wrong gets a readable reason and can correct itself. Every loop that a caller can influence is bounded, so no request can buy an expensive computation. Error messages never echo what you sent, so the server can't be used to relay text into someone else's agent.

Known limits, stated rather than hidden: a working week is Monday–Friday, so countries with Sunday–Thursday weeks are wrong under this assumption; holiday data covers only the years the underlying dataset knows about, and a date outside that range is refused rather than silently answered as an ordinary working day.

Prior art

fbdo/business-day-mcp covers business-day and holiday arithmetic and predates this server. If that is all you need, use it — it also exposes timezone-aware "today" and holiday listing, which this server does not.

This one was built for a different centre of gravity: SLA clocks that count only business hours, and cron / RRULE parsing for the recurring side of the same work. The overlap in the business-day tools is real and the names are conventional; both servers are MIT licensed and both build on the excellent holidays package.

Releasing

Bump the version in both pyproject.toml and server.json, then push a matching tag:

sh
git tag v0.2.0 && git push origin v0.2.0

That runs the test suite, checks the tag agrees with both version fields, publishes to PyPI, and republishes to the MCP registry. Both use GitHub OIDC — PyPI via Trusted Publishing — so there is no API token in this repository, in a secret store, or on any machine.

About

Built and maintained by Vessark. The tools in this repository are the free tier and are open source under the MIT licence. Vessark's workspace tools — the ones that operate on a connected workspace — are the commercial product and are not open source.

Issues and pull requests welcome.

来源:README.md,提交 7a92748

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通必需25 分

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

  • 已声明认证方式必需10 分

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

  • 已列出工具15 分

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

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