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 分