12happy uptime monitoring

io.github.12happyhq由 GitHub 账号 12happyhq 发布v0.1.2更新于 Nov 22, 2026

Create uptime monitors, read incidents, uptime and response times, and silence alerts for deploys.

概览

AI 生成的概览

将助手接入 12happy 正常运行时间监控,可创建监控项、查看故障与可用率报告,并在发布期间静默告警。

可以做什么
  • 读取状态与监控项:查看正常、故障、缓慢和暂停的监控项概览,列出并查看单个监控项,列出检查区域和告警渠道
  • 查询可用率与性能:按时间段或区域获取可用率百分比及 p50/p95/p99 响应时间
  • 查看故障:列出中断和变慢事件及其原因与确认区域,并可认领故障以停止升级通知
  • 创建与修改监控项:监控网址、关键词、主机名(ping、DNS、SSL 证书)或 TCP 端口,或通过心跳监控定时任务;可修改设置、暂停或恢复、立即检查、删除监控项
  • 管理告警:为每个监控项选择告警渠道并设置升级延迟,启动维护以静默告警或暂停检查
适用场景
适合想通过对话了解当前是否有服务中断、查询历史可用率与响应时间,或直接创建和调整监控项与告警路由的场景。发布期间临时静默告警也很方便。
运行要求
通过 npx 在本地运行,需要 Node.js 20 或更高版本。需要 12happy 账户,并在 TWELVEHAPPY_API_KEY 中提供在控制台创建、按需选择权限范围的 API 密钥。机构用户可选设置 TWELVEHAPPY_ORG,也可用 TWELVEHAPPY_API_URL 覆盖接口地址。需要能访问 12happy API 的网络。
安装前请注意
API 密钥属于凭据:应放在环境变量中,若助手不应做任何更改请只授予只读权限,泄露后立即吊销。写入类工具可创建、修改、暂停和删除监控项并更改告警路由;delete_monitor 会删除监控项及其历史记录。维护和认领操作会改变告警接收人。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

12happy MCP server

Uptime monitoring you can talk to. This Model Context Protocol server connects 12happy to Claude, Cursor, VS Code and any other MCP client, so you can ask:

  • "Is anything down right now?"
  • "Watch https://api.example.com/health every minute and alert the #ops Slack channel."
  • "Why did the checkout monitor fail last night, and from which regions?"
  • "What was our uptime and p95 response time for the API last month?"
  • "Silence alerts for 20 minutes while I deploy."
  • "Tell me if the nightly backup stops running."

12happy checks from the US, Europe and Israel, and opens an incident only when a quorum of regions agrees that something is down, so one flaky probe doesn't page you.

What you need

  • A 12happy account. Every plan includes API access: one key on Free, as many as you need on Pro and Agency. Start free.
  • An API key: in the console, open API keys and choose Create key. Pick the scopes the assistant should have. A key with only the read scopes can't change anything.
  • Node.js 20 or later.

Install

Claude Code

bash
claude mcp add 12happy -e TWELVEHAPPY_API_KEY=mon_live_... -- npx -y 12happy-mcp

Claude Desktop

Add this to claude_desktop_config.json (Settings → Developer → Edit Config), then restart Claude:

json
{  "mcpServers": {    "12happy": {      "command": "npx",      "args": ["-y", "12happy-mcp"],      "env": { "TWELVEHAPPY_API_KEY": "mon_live_..." }    }  }}

Cursor

Add the same block to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project.

VS Code

Add this to .vscode/mcp.json. VS Code asks for the key once and stores it securely:

json
{  "inputs": [    { "type": "promptString", "id": "twelvehappy-key", "description": "12happy API key", "password": true }  ],  "servers": {    "12happy": {      "command": "npx",      "args": ["-y", "12happy-mcp"],      "env": { "TWELVEHAPPY_API_KEY": "${input:twelvehappy-key}" }    }  }}

Tools

ToolWhat it does
get_overviewMonitors up, down, slow and paused; open incidents; uptime over N days
list_monitorsAll monitors, filterable by status or text
get_monitorOne monitor's settings and latest results per region
get_uptime_reportUptime % and p50/p95/p99 response time for any period or region
list_incidentsOutages and slowdowns, with cause and confirming regions
list_alert_channelsEmail, Slack, webhook, SMS and other channels, and their health
list_regionsWhere checks can run from
create_monitorWatch a URL, keyword, hostname (ping, DNS, SSL certificate) or TCP port, or a cron job by heartbeat: it returns the URL the job calls when it finishes
update_monitorChange target, interval, regions, keyword, timeout or slow threshold
pause_monitorPause or resume, keeping history
check_nowRun a check immediately
delete_monitorDelete a monitor and its history (assistants are told to confirm first)
acknowledge_incidentTake ownership and stop escalation
start_maintenanceSilence alerts or pause checks for a deploy
set_monitor_alertsChoose which channels a monitor alerts, with escalation delays

Read-only tools are marked as such, and delete_monitor is marked destructive, so clients that ask before risky actions will ask.

Settings

Variable
TWELVEHAPPY_API_KEYRequired. A key from the console's API keys page.
TWELVEHAPPY_ORGOptional. Agencies and resellers: the client organization to act on by default. Every tool also takes an organization argument.
TWELVEHAPPY_API_URLOptional. Defaults to https://be.12hpy.com/v1.

Security

  • The key is sent only to the 12happy API, as a bearer token, and is never logged.
  • Scopes are enforced by the API: a key without monitors:write gets a clear "missing scope" error rather than a change.
  • Revoke a key at any time from the API keys page; it stops working immediately.

Develop

bash
npm installnpm run buildnpm run inspect          # opens the MCP Inspectornode --env-file=.env test/smoke.mjs <test-organization-id>

The API reference is at be.12hpy.com/docs/api.

License

MIT

来源:README.md,提交 95810ce

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.1.2最新Nov 22, 2026
  2. v0.1.1Nov 22, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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