AlertOps

io.github.WYRE-AI由 GitHub 帳號 WYRE-AI 發布v1.0.2更新於 Oct 24, 2026

MCP server for AlertOps' incident alerting/on-call API.

發布方自己的服務:Alertcamp

已驗證STDIO僅桌面效率與工作流安全與監控

概覽

AI 產生的概覽

針對 AlertOps 事件告警與值班資料的唯讀 MCP 伺服器,讓助理查詢告警、使用者、群組、主題、整合與排班。

可以做什麼
  • 列出並依狀態、日期範圍、群組、整合、升級策略篩選告警,並依入站訊息 ID 或唯一入站 ID 反查告警 ID
  • 列出使用者及其聯絡方式(電子郵件、電話/簡訊)
  • 列出群組、訊息主題與已設定的入站整合
  • 查詢目前值班人員,以及使用者或群組在指定日期範圍內(最長三個月)的值班排班
適用情境
適合需要了解即時事件、值班涵蓋情況或 AlertOps 設定,但不希望更動任何資料的情境。適用於分流與彙報類工作流程,實際的呼叫與告警變更仍由人在 AlertOps 中完成。
執行需求
以本機程序(stdio)方式從容器映像執行,或以 HTTP 方式供閘道託管。需要 AlertOps API 金鑰:env 模式下放在 ALERTOPS_API_KEY,閘道模式下透過 X-AlertOps-Api-Key 標頭傳入,金鑰於帳戶設定的整合 API 頁面產生。HTTP 模式另需 CONDUIT_S2S_SECRET 並對請求簽章。
安裝前請注意
API 金鑰會以 APIKey 查詢參數附加在每次 AlertOps 請求上,可能出現在日誌或代理中。伺服器會回傳使用者聯絡方式等個人資料。它依設計為唯讀,但 README 說明尚未測試 AlertOps 是否對寫入端點強制唯讀權限,因此應謹慎限縮金鑰權限。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 AlertOps,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

AlertOps MCP Server

MCP server for AlertOps's incident alerting/on-call API - alerts, message topics, users and their contact methods, groups, configured inbound integrations, and on-call schedules, for AI assistants and the WYRE Conduit gateway.

Authentication

AlertOps' REST API (https://api.alertops.com/api/..., per its published OpenAPI spec at api.alertops.com/swagger/v1/swagger.json) authenticates with a static account-level API key, generated under Account Settings -> Configurations -> Integrations -> API. Unlike most WYRE Conduit sidecars, the key is not sent as a bearer token or custom auth header - AlertOps requires it as an APIKey query-string parameter on every single request, GET and POST alike (live-verified 2026-09-20: an invalid key returns a clean {"reason":"Invalid API Key"} HTTP 401 on every endpoint this connector calls). This connector receives the key per-request via a custom header (never OAuth, same shape as every other static-key WYRE Conduit sidecar) and itself appends ?APIKey=<key> when calling AlertOps' API. In gateway mode the key arrives per-request via the X-AlertOps-Api-Key header; in local/stdio mode it's read once from ALERTOPS_API_KEY. HTTP /mcp also requires an X-Gateway-S2S signature (see HTTP authentication below). The HTTP server refuses to start without a real CONDUIT_S2S_SECRET.

Two separate claims here, at deliberately different confidence levels - don't collapse them into one "read-only" statement:

  • Structurally verified (checked directly, stated with full confidence): this connector's own code makes zero calls to a write/mutating AlertOps endpoint. Every function in client.ts calls one of the 11 documented GET operations listed under Tools below; no POST call exists anywhere in src/.
  • Vendor-documented, not independently verified (hedged deliberately): AlertOps ships role-based access control with built-in and custom roles built from individually-grantable read-only entitlements (e.g. Messages_View_GlobalAccess, User_View_GlobalAccess, Groups_View_GlobalAccess) - AlertOps' own docs describe a custom role built this way as letting a user "browse incidents, reports, users, and groups but cannot create, modify, or delete anything" (help.alertops.com, Role Based Access Control). A distinct User API Key, shown on a user's own Profile page, is described elsewhere in AlertOps' docs as gated by the UserAPIKey_Add entitlement, implying an API key issued this way inherits the issuing user's role/entitlements. Whether that's actually enforced server-side against this connector's APIKey query parameter and its write endpoints specifically - i.e. whether AlertOps' backend rejects a write call (Create Alert, Close Alert, Assign, etc.) made with a key belonging to a read-only-scoped user, versus that restriction only ever being surfaced in AlertOps' own UI - has not been tested by WYRE. Nobody sent a write call against a live key to check, correctly: that would risk creating a real page/notification against real on-call staff, not something to run without consent. Do not read this connector, or this README, as having established that a read-only-provisioned AlertOps API key technically cannot perform writes - only that this connector's own code never attempts one, and that AlertOps' documented role system supports provisioning a key that way.

Configuration

Copy .env.example. Leave CONDUIT_S2S_SECRET empty in that file.

Env varDescription
ALERTOPS_API_KEYAPI key issued under Account Settings -> Configurations -> Integrations -> API. Used by stdio and by HTTP when AUTH_MODE=env.
MCP_TRANSPORTstdio (default) or http.
AUTH_MODEenv (local default; reads ALERTOPS_API_KEY) or gateway (Docker image and Compose default). Gateway mode requires X-AlertOps-Api-Key on each /mcp request.
CONDUIT_S2S_SECRETRequired to start the HTTP transport. Empty values and known placeholders (changeme, replace-with-a-real-secret, your-s2s-secret, and similar) are rejected: the process logs an error and exits non-zero. The value is never logged. Compose will not start when this is unset.
MCP_ALLOW_INSECURE_DEVSet to exactly 1 for local development only, to start HTTP when CONDUIT_S2S_SECRET is empty. Logs a warning, skips the X-Gateway-S2S check, and listens on 127.0.0.1 only. A non-loopback MCP_HTTP_HOST is ignored in that mode. A known placeholder secret is still rejected.
MCP_HTTP_HOSTBind address for HTTP. Defaults to 127.0.0.1 when unset. A configured CONDUIT_S2S_SECRET honors this value (the container image sets 0.0.0.0).
MCP_HTTP_PORTHTTP port. Defaults to 8080.
LOG_LEVELdebug | info (default) | warn | error.

/health stays unauthenticated and does not read credentials. The stdio transport does not use CONDUIT_S2S_SECRET.

HTTP authentication

With MCP_TRANSPORT=http and CONDUIT_S2S_SECRET set, every /mcp request must include X-Gateway-S2S. The value is:

text
t=<unix seconds>,v1=<hex hmac-sha256>

v1 is HMAC-SHA256 over the ASCII message t=<unix seconds> (the same t= prefix that appears in the header), keyed by CONDUIT_S2S_SECRET, encoded as 64 lowercase hex characters. A missing or invalid header returns 401. The secret is never logged.

In AUTH_MODE=gateway, /mcp also requires X-AlertOps-Api-Key. A request missing that header returns 401. Gateway mode uses that header as the only AlertOps credential for the request.

Request limits

  • HTTP request bodies are capped at 256 KiB (262144 bytes). After the X-Gateway-S2S check passes, a Content-Length above the cap returns 413 with a JSON-RPC error; bodies without Content-Length are capped by the MCP SDK transport. Unauthenticated requests still get 401 first.
  • tools/call arguments are capped at 10,000 elements (every array item and object key at any depth). Larger inputs return an isError tool result and are never dispatched.

These limits address CVE-2026-111768 / GHSA-46jr-4wx8-v453 (memory exhaustion during validation) and GHSA-f897-62hf-6gxq (no request body / batch cap).

Tools

11 read-only tools, one per GET operation in AlertOps' published REST API spec (25 operations total; the other 14 are POST/write and are deliberately excluded - see Scope below).

Alerts

  • alertops_list_alerts - list alerts, filterable by status/date range/group/integration/escalation, paginated.
  • alertops_get_alert_id_by_inbound_message_id - resolve the AlertID an inbound integration's messageID was mapped to.
  • alertops_get_alert_id_by_unique_inbound_id - resolve the AlertID an inbound integration's uniqueInboundID was mapped to.

Users

  • alertops_list_users - list users (username, full name, user type).
  • alertops_get_user_contact_methods - list a user's configured contact methods (email, phone/SMS). Contact PII.

Groups

  • alertops_list_groups - list groups (group ID -> group name).

Topics

  • alertops_list_topics - list message topics used for alert routing/escalation.

Integrations

  • alertops_list_integrations - list configured inbound integrations (integration rule ID -> integration type).

Schedule

  • alertops_get_oncall_now - list who is on-call right now, for every group or one specific group.
  • alertops_get_user_schedule - a user's on-call schedule for a date range (max 3 months).
  • alertops_get_group_schedule - a group's on-call schedule for a date range (max 3 months).

Scope

This is a deliberately narrow, read-only v1 surface, hard-scoped to exactly 11 of AlertOps' 25 documented operations. AlertOps is a live incident-paging system - every excluded operation either mutates state or can trigger a real page/notification to a human, so none of it is implemented here, by design, not by oversight:

Hard-excluded (creates or mutates a live alert - can page a human) - never implemented:

  • POST /api/alert/Create (Alert_Create) - creates a new alert, which pages/notifies its recipients.
  • POST /api/alert/Close (Alert_Close) - closes a live alert.
  • POST /api/alert/Update (Alert_Update) - updates a field on a live alert.
  • POST /api/alert/Assign (Alert_Assign) - assigns a user to an alert.
  • POST /api/alert/Note (Alert_Note) - adds a note to an alert.
  • POST /api/alert/AddRecipients (Alert_AddRecipients) - adds recipients to an alert, i.e. pages additional people.
  • POST /api/alert/Reply (Alert_Reply) - replies to an alert.

Hard-excluded (provisioning/mutation - users, groups, schedules, integrations) - never implemented:

  • POST /api/user/CreateUser (User_CreateUser) - creates a new user.
  • POST /api/user/CreateOutOfOffice (User_CreateOutOfOffice) - creates an out-of-office record, which changes who gets paged.
  • POST /api/group/CreateGroup (Group_CreateGroup) - creates a new group.
  • POST /api/group/AddGroupMember (Group_AddGroupMember) - adds a member to a group, which changes who gets paged.
  • POST /api/schedule/CreateFixedSchedule (Schedule_CreateFixedSchedule) - creates a fixed on-call schedule.
  • POST /api/schedule/CreateRecurringSchedule (Schedule_CreateRecurringSchedule) - creates a recurring on-call schedule.
  • POST /api/integration/CreateMaintenanceWindows (Integration_CreateMaintenanceWindows) - creates a maintenance window, which suppresses alerting.

They can be added as a follow-up if there's demand, after a deliberate scope decision - not by default.

Development

bash
npm installnpm run buildnpm testnpm run lint   # tsc --noEmit

Docker

The image listens on 0.0.0.0 inside the container (MCP_HTTP_HOST) and defaults to AUTH_MODE=gateway. Publish the port on loopback and pass a generated S2S secret. Startup rejects an empty CONDUIT_S2S_SECRET and known placeholders (your-s2s-secret, changeme, and similar), so each command below creates a value with openssl rand -hex 32 instead of embedding one. In gateway mode the AlertOps API key arrives on each request as X-AlertOps-Api-Key.

bash
docker build -t alertops-mcp .docker run \  -e CONDUIT_S2S_SECRET="$(openssl rand -hex 32)" \  -p 127.0.0.1:8080:8080 \  alertops-mcp

Compose refuses to start when CONDUIT_S2S_SECRET is unset. The Compose service is gateway mode, sets no ALERTOPS_API_KEY, and publishes 127.0.0.1:8080:8080. Export one secret when a gateway must sign requests with the same value the container receives:

bash
export CONDUIT_S2S_SECRET="$(openssl rand -hex 32)"docker compose up

Single-tenant HTTP (AUTH_MODE=env) still requires the S2S secret, then uses ALERTOPS_API_KEY from the environment. Export that key before running the command.

bash
docker run \  -e CONDUIT_S2S_SECRET="$(openssl rand -hex 32)" \  -e AUTH_MODE=env \  -e ALERTOPS_API_KEY \  -p 127.0.0.1:8080:8080 \  alertops-mcp

Local HTTP without a secret is development-only. It binds 127.0.0.1 even if MCP_HTTP_HOST is 0.0.0.0, and logs a warning:

bash
MCP_TRANSPORT=http MCP_ALLOW_INSECURE_DEV=1 npm run start:http

License

Apache-2.0

來源:README.md,提交 3a9ce5b

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:該軟體包類型無法在沙箱中執行。

版本歷史

3
  1. v1.0.2最新Oct 22, 2026
  2. v1.0.1Oct 14, 2026
  3. v1.0.0Sep 21, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。

其他 Alert 整合