Skip to main content
Glama
zuohang20100323

chagang-mcp

病娇AI查岗系统 — ntfy 版

架构

iPhone快捷指令 → Railway后端 → SQLite数据库
                        ↓
OpenClaw/MCP → Vercel MCP代理 → ntfy.sh/shenchi → 手机推送

Related MCP server: ntfy-mcp

Step 1 — iPhone 快捷指令

自动化① 打开App → 上报

  • 触发条件:App → 全选 → 状态「已打开」

  • 动作:获取 URL 内容

    • URL:https://你的Railway域名/report

    • 方法:POST

    • 请求头:Authorization = Bearer 你自己设的密码

    • 请求体:{"app_name": "App", "event": "open"}

  • 关闭「运行前询问」

自动化② 关闭App → 上报

  • 同上,event 改成 "close"

  • 关闭「运行前询问」

Step 2 — Railway 部署后端

  1. 新建 GitHub 仓库,上传 backend/ 内容

  2. https://railway.app → New Project → Deploy from GitHub

  3. 环境变量:AUTH_TOKEN=你自己设的密码

  4. 拿到域名 https://xxx.up.railway.app

Step 3 — Vercel 部署 MCP 代理

  1. 新建 GitHub 仓库,上传 mcp/ 内容

  2. https://vercel.com → Import 该仓库

  3. 环境变量:

    • ORIGIN_API=https://你的Railway域名

    • NTFY_TOPIC=shenchi

  4. 获取域名后:

    • 在 OpenClaw 设置中新增 MCP:

    • URL: https://你的Vercel域名/mcp

    • 协议: Streamable HTTP

可用工具

工具名

功能

check_on_wife

查岗:最近打开的 App + 各 App 使用时长

ntfy_alert

推送通知到手机(支持标题+内容)

⚠️ iOS ntfy 通知权限

在 iPhone 上安装 ntfy 后,务必在 设置 → 通知 → ntfy 中打开「允许通知」,否则收不到推送。

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables AI agents to send push notifications to your phone through ntfy, with built-in security controls to prevent data exfiltration. It exposes a single tool notify_user for notifying when tasks complete or need attention.
    1
    MIT
  • A
    license
    C
    quality
    D
    maintenance
    MCP server for sending notifications to ntfy.sh or self-hosted ntfy instances.
    2
    7 npm
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A lightweight MCP server for sending push notifications via ntfy.sh, supporting customizable titles, priorities, tags, and action buttons.
    1
    9 npm
    7
    MIT