P

Pushover推送

@AshikNesin/pushover-mcp
0 Stars 448 次浏览 AshikNesin 更新于 2026-08-23

一种模型上下文协议的实现,使人工智能代理能够通过Pushover.net发送通知,并支持使用优先级、声音和URL等不同参数自定义消息。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "pushover": {
      "args": [
        "-y",
        "pushover-mcp@latest",
        "start",
        "--token",
        "YOUR_TOKEN",
        "--user",
        "YOUR_USER"
      ],
      "command": "npx"
    }
  }
}

该服务需要配置环境变量:token、user

服务介绍

Pushover MCP

smithery badge

一个通过 Pushover.net 发送通知的 Model Context Protocol 实现。

概览

此MCP使AI代理能够通过Pushover.net发送通知。它实现了MCP规范,允许与兼容MCP的AI系统无缝集成。

配置

你需要:

  1. 从Pushover.net获取的应用程序令牌
  2. 你的Pushover.net用户密钥

这些信息可以从你的 Pushover.net仪表板 获取。

工具架构

该MCP提供了一个工具:

send

通过Pushover发送通知。

{
  message: string;          // Required: The message to send
  title?: string;          // Optional: Message title
  priority?: number;       // Optional: -2 to 2 (-2: lowest, 2: emergency)
  sound?: string;         // Optional: Notification sound
  url?: string;          // Optional: URL to include
  url_title?: string;   // Optional: Title for the URL
  device?: string;     // Optional: Target specific device
}

示例MCP工具调用

{
  "name": "send",
  "params": {
    "message": "Hello from AI",
    "title": "AI Notification",
    "priority": 1
  }
}

安装

与Cursor一起使用

方法1:全局安装

使用npx运行MCP服务器:

npx -y pushover-mcp@latest start --token YOUR_TOKEN --user YOUR_USER

在你的Cursor IDE中

  1. 转到Cursor设置 > MCP
  2. 点击+ 添加新MCP服务器
  3. 填写表单:
    • 名称:Pushover Notification(或你喜欢的任何名称)
    • 类型:command
    • 命令:npx -y pushover-mcp@latest start --token YOUR_TOKEN --user YOUR_USER

方法2:特定项目配置

在你的项目中添加一个.cursor/mcp.json文件:

{
  "mcpServers": {
    "pushover": {
      "command": "npx",
      "args": [
        "-y",
        "pushover-mcp@latest",
        "start",
        "--token",
        "YOUR_TOKEN",
        "--user", 
        "YOUR_USER"
      ]
    }
  }
}

使用工具

配置完成后,Pushover通知工具将自动对Cursor AI Agent可用。你可以:

  1. 在MCP设置下的可用工具中列出该工具
  2. 当相关时,Agent会自动使用它
  3. 你可以明确要求Agent发送通知

默认情况下,Agent会在发送通知前请求批准。在设置中启用“Yolo模式”以允许自动发送。

Cursor Agent

与Roo Code一起使用

通过点击Roo Code设置中的“编辑MCP设置”或使用VS Code命令面板中的“Roo Code: 打开MCP配置”命令来访问MCP设置。

{
  "mcpServers": {
    "pushover": {
      "command": "npx",
      "args": [
        "-y",
        "pushover-mcp@latest",
        "start",
        "--token",
        "YOUR_TOKEN",
        "--user", 
        "YOUR_USER"
      ]
    }
  }
}
  1. Pushover通知工具将对Roo Code的AI代理可用

注意:YOUR_TOKENYOUR_USER替换为你的Pushover凭据。

通过Smithery安装

要通过Smithery自动为Claude Desktop安装Pushover通知:

npx -y @smithery/cli install @AshikNesin/pushover-mcp --client claude

开发

# Install dependencies
pnpm install

# Build
pnpm build

# Run tests
pnpm test

许可证

MIT

相关 MCP 服务