Paw Pulse

com.dougalpaw由 dougalpaw.com 发布官方发布者v0.3.0更新于 Oct 26, 2026

Heartbeat and tokens/sec monitoring for self-hosted LLM servers (Ollama etc.), with down alerts.

已验证Streamable HTTP可网页运行云端与基础设施安全与监控

概览

AI 生成的概览

Paw Pulse 的远程 MCP 服务器:推送式心跳与 tokens/sec 监控,自建 LLM 服务器宕机或变慢时发出告警。

可以做什么
  • 创建匿名监控,并一次性获得 ingest token 与 manage token
  • 查询监控当前状态并列出最近的心跳记录
  • 修改监控名称、宽限期、变慢阈值、webhook 或可见性
  • 永久删除监控及其全部心跳记录
  • 获取在被监控机器上安装心跳脚本并通过 cron 运行的 shell 命令
适用场景
适合自建 LLM 服务器(Ollama、llama.cpp、vLLM 或任何兼容 OpenAI 的端点)或其他由 cron 驱动的机器,希望由助手代为创建和管理在线率与吞吐监控,并在宕机或变慢时收到告警,同时不把机器暴露到公网。
运行要求
需要一个远程 Streamable HTTP 端点,连接无需账号或认证。监控由随机 id 以及 ingest token 和 manage token 标识,修改类工具需以参数传入 manage token。被监控机器需通过 cron 运行一个小型客户端脚本,告警发送到自行配置的 webhook 地址。
安装前请注意
create_monitor 只返回一次 ingest token 和 manage token,无法找回,需妥善保存;持有 manage token 的人可修改或删除监控。update_monitor 与 delete_monitor 会更改或永久删除数据,删除不可撤销。webhook 告警会把监控名称、状态和时间戳发送到你选择的第三方地址。

安装

在 SourceWeft 中

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

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.dougalpaw%2Fpawpulse/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "paw-pulse": {
      "type": "http",
      "url": "https://pulse.dougalpaw.com/mcp"
    }
  }
}

README

Paw Pulse

Push-based heartbeat and performance monitor for self-hosted LLM servers (Ollama, llama.cpp, vLLM, anything OpenAI-compatible). Know when your home AI box dies or slows down, without exposing it to the internet.

Live instance: https://pulse.dougalpaw.com

[Demo: Ollama fails, Paw Pulse posts a DOWN alert to Discord, then a recovery]

Built, deployed, and operated by Pup, an AI agent, as part of the Dougal Paw project. No accounts, no IP storage, no personal data: monitors are anonymous, identified only by a random id plus an ingest token and a manage token.

How it works

A tiny client script (pawpulse.sh) runs on the box hosting your LLM server and POSTs a heartbeat out to this service every few minutes. If heartbeats stop arriving within the configured grace period, the monitor flips to down. Your LLM server never accepts an inbound connection.

No LLM on the box? LLM_KIND=none sends a plain heartbeat, so the same alerts work for a NAS, a backup job or any cron task.

On Ollama it can also catch the quiet failures: set slow_tps_threshold to hear when generation crawls, or min_gpu_pct to hear when a model has fallen back from GPU to CPU (the client reads size_vram from /api/ps; needs jq).

Guides:

Stack

  • Cloudflare Workers (free tier) + D1 + Cron Triggers.
  • TypeScript, Hono as a thin router.
  • No other runtime dependencies.

Project layout

src/  index.ts       Hono app: routes, pages, cron entrypoint  service.ts     Business logic shared by REST and MCP  db.ts          D1 queries  state.ts       Pure state-machine logic (unit tested)  validation.ts  Pure input validation (unit tested)  cron.ts        Per-minute sweep: state transitions + alert dispatch  webhook.ts     Outbound alert delivery (Discord-aware, generic JSON fallback)  mcp.ts         Remote MCP server (Streamable HTTP, stateless)  openapi.ts     OpenAPI 3.1 document served at /openapi.json  llms.ts        /llms.txt content  templates.ts   HTML pages (/, /privacy, /s/:id)  badge.ts       Shields-style SVG badge renderer  static/        Served static assets (pawpulse.sh)migrations/      D1 schema (0001_init.sql)test/            node:test unit tests for state.ts and validation.ts

API

See /openapi.json for the full spec and /llms.txt for a terse summary.

  • POST /v1/monitors — create a monitor.
  • POST /v1/monitors/:id/beat — send a heartbeat (Authorization: Bearer <ingest_token>).
  • GET /v1/monitors/:id/status — current state; public monitors need no auth.
  • GET /v1/monitors/:id/heartbeats — recent heartbeats.
  • PATCH / DELETE /v1/monitors/:id — manage/remove (Authorization: Bearer <manage_token>).
  • GET /s/:id — public HTML status page. GET /badge/:id.svg — status badge.
  • GET /pawpulse.sh — the client script.
  • POST /mcp — remote MCP server (see below).

MCP

https://pulse.dougalpaw.com/mcp is a remote MCP server (Streamable HTTP). It is stateless: each POST carries one JSON-RPC message and gets a JSON response, with no sessions and no SSE stream, which the spec allows. It supports protocol versions 2025-06-18, 2025-03-26 and 2024-11-05.

Tools: create_monitor, setup_instructions, get_status, list_heartbeats, update_monitor, delete_monitor. They use the same service layer as the REST API. No auth is needed to connect; tools that change a monitor take its manage_token as an argument.

json
{ "mcpServers": { "pawpulse": { "type": "http", "url": "https://pulse.dougalpaw.com/mcp" } } }

Alerts

Set a monitor's webhook_url and you get a message when it goes down, gets slow or recovers. The format is picked from the URL: Discord, Slack, Microsoft Teams (Workflows), Telegram (https://api.telegram.org/bot<token>/sendMessage?chat_id=<id>) and Google Chat get native messages; any other https URL gets generic JSON (content, text, monitor_name, alert, state, timestamp). Self-hosters can switch all alerts off with ALERTS_ENABLED = "false" in wrangler.toml.

Development

pnpm installnpm test         # unit tests (node:test, no network/D1 needed)npm run typecheck

Deploy

npx wrangler d1 create pawpulse                 # once; copy the database_id into wrangler.tomlnpx wrangler d1 migrations apply pawpulse --remotenpx wrangler deploy

Cron runs every minute (* * * * *) and sweeps monitors for grace-period expiry and slow-tps thresholds, firing at most one webhook per state change and capping outbound webhook fetches per run to stay under the Workers free-tier 50-subrequest limit.

Privacy

See /privacy. No accounts, no cookies, no analytics, no IP logging — anywhere. DELETE /v1/monitors/:id permanently removes a monitor and all its heartbeats.

Licence

MIT. See LICENSE.

来源:README.md,提交 f984c2a

工具

6

create_monitor

Create monitor

Create a new anonymous Paw Pulse monitor. Returns ingest_token and manage_token exactly once — store them, they cannot be recovered.

输入参数namepublicmin_gpu_pctwebhook_urlgrace_secondsslow_tps_threshold

get_status

Get monitor status

Get the current status of a monitor. Private monitors require manage_token.

输入参数id必填manage_token

list_heartbeats

List recent heartbeats

List recent heartbeats for a monitor (newest first). Private monitors require manage_token.

输入参数id必填limitmanage_token

update_monitor

Update monitor settings

Change a monitor's name, grace period, slow threshold, webhook or visibility. Only the fields you pass change.

输入参数id必填namepublicmin_gpu_pctwebhook_urlmanage_token必填grace_secondsslow_tps_threshold

delete_monitor

Delete monitor

Permanently delete a monitor and all its heartbeats. Cannot be undone.

输入参数id必填manage_token必填

setup_instructions

Get setup instructions

Shell commands to install the heartbeat script on the box being monitored and run it from cron. Pass the id and ingest_token from create_monitor.

输入参数id必填llm_kindingest_token必填

版本历史

1
  1. v0.3.0最新Oct 20, 2026

评分

已满足适用检查项的 100%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分