feat: 台灣工作日計算引擎 remote MCP server - #9
Merged
Merged
Conversation
- workday-engine 純函式核心:工作日判定、連假/補班查詢、請假最佳化、出遊時段 - Cloudflare Workers 薄殼 (McpAgent / Streamable HTTP),5 個工具於 /mcp - 資料 bundle 進 Worker,不繞 jsDelivr;年份由 data/*.json 動態產生 - 23 個 engine 單元測試;README 新增 MCP 說明 - 透過 Spectra change taiwan-workday-mcp 規格化並封存
- wrangler.jsonc 加 custom domain route(gooliya.com zone) - 新增 scripts/demo.mjs 做線上/本地工具實測 - 註:加自訂網域後 workers.dev 預設停用,目前單一入口為品牌網域
push 到 main 且動到 data/** 或 mcp/** 時觸發;先跑 engine 測試再 wrangler deploy。 需 repo secret CLOUDFLARE_API_TOKEN。
imsyuan
enabled auto-merge (squash)
June 2, 2026 07:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
新增「台灣工作日計算引擎」remote MCP server,把假日資料從裸 JSON 升級為可被 LLM/agent 與 HR/企業呼叫的時間計算服務。
內容
mcp/子專案:純函式 engine + Cloudflare Workers 薄殼(McpAgent / Streamable HTTP),5 個工具於/mcpcount_workdays、add_workdays、next_makeup_workday、optimize_leave、find_travel_windowsdata/*.json動態產生mcp.tw-holidays.gooliya.comdata/**或mcp/**變動時自動 redeploy(需 secretCLOUDFLARE_API_TOKEN)taiwan-workday-mcp規格化並封存(openspec/)驗證
注意
data/與既有網站行為;validate-data應不受影響