feat(monitor): MCP 端點健康檢查 Worker(cron + Discord 告警) - #11
Merged
Conversation
獨立的 Cloudflare Worker,每天 cron 從外部 ping 正式 MCP 端點, 非 200 或回應缺 tools 欄位時打 Discord webhook。與 taiwan-workday-mcp 分開部署,MCP 整個掛掉時仍會通知。 - 公開 GET /check 為唯讀狀態查詢,不發通知(避免被當 spam 管道) - Discord webhook 走 wrangler secret,不寫進程式 - TARGET_URL 為固定 var,無 SSRF
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.
摘要
獨立的 Cloudflare Worker,每天 cron 從外部 ping 正式 MCP 端點(
mcp.tw-holidays.gooliya.com),異常時打 Discord webhook。刻意與taiwan-workday-mcp分開部署,這樣 MCP Worker 整個掛掉時,監控仍會照常通知。內容
monitor/新 Worker:cron0 1 * * *(台灣 09:00),scheduled handler 外部 fetch + 健康判定(200 且回應含tools)GET /check為唯讀狀態查詢,不發通知(避免被當 spam 管道)wrangler secret,不寫進程式;TARGET_URL為固定 var(無 SSRF)部署狀態
已手動部署上線(
tw-holidays-monitor),cron 已註冊、Discord 通知實測通過。此 PR 純為版控保存,無 CI 自動部署。