Pushover Mcp
一个用于通过 Pushover 发送通知的 MCP 实现
概览
什么是 Pushover-MCP?
Pushover-MCP 是一个强大的实现,旨在通过 Pushover 服务发送通知。它允许开发者轻松地将通知功能集成到他们的应用程序中,从而实现实时警报和更新。这个工具对于需要即时用户反馈或监控的应用程序特别有用,例如服务器警报、应用程序状态更新或任何其他关键通知。
Pushover-MCP 的特点
- 易于集成:Pushover-MCP 可以无缝集成到各种应用程序中,使所有技能水平的开发者都能轻松使用。
- 实时通知:用户会收到即时通知,确保他们始终掌握最新信息。
- 可定制的警报:开发者可以根据应用程序的需求自定义通知,包括设置优先级和声音选项。
- 跨平台支持:Pushover-MCP 可以在不同平台上工作,允许将通知发送到移动设备、桌面等。
- 开源:作为一个开源项目,它允许开发者根据需要贡献、修改和增强功能。
如何使用 Pushover-MCP
-
安装:首先通过 npm 安装 Pushover-MCP 包:
npm install pushover-mcp
-
设置:安装后,您需要设置 Pushover 应用程序凭据。这通常涉及在 Pushover 网站上创建一个应用程序以获取您的 API 令牌。
-
发送通知:使用以下代码片段发送通知:
const Pushover = require('pushover-mcp'); const pushover = new Pushover({ user: 'YOUR_USER_KEY', token: 'YOUR_API_TOKEN' }); pushover.send({ message: '你好,这是一个测试通知!', title: '测试通知' });
-
自定义:您可以通过添加额外参数(如
priority
、sound
和title
)来自定义通知,以满足您的需求。
常见问题解答
什么是 Pushover?
Pushover 是一个允许用户向他们的设备发送实时通知的服务。它广泛用于提醒用户重要事件或更新。
Pushover-MCP 是免费使用的吗?
是的,Pushover-MCP 是一个开源项目,您可以免费使用。然而,Pushover 本身可能需要一次性购买移动设备上的应用程序。
我可以在生产环境中使用 Pushover-MCP 吗?
当然可以!Pushover-MCP 设计用于生产环境,提供可靠的通知发送方式。
Pushover-MCP 支持哪些编程语言?
Pushover-MCP 主要设计用于 Node.js,但可以与任何能够发出 HTTP 请求的应用程序集成。
我如何为 Pushover-MCP 贡献?
您可以通过在 GitHub 上分叉该仓库、进行更改并提交拉取请求来为 Pushover-MCP 项目贡献。欢迎您的贡献!
详情
Pushover MCP
A Model Context Protocol implementation for sending notifications via Pushover.net.
Overview
This MCP enables AI agents to send notifications through Pushover.net. It implements the MCP specification, allowing seamless integration with MCP-compatible AI systems.
Configuration
You'll need:
- An application token from Pushover.net
- Your user key from Pushover.net
Get these from your Pushover.net dashboard.
Tool Schema
The MCP provides a single tool:
send
Sends a notification via 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
}
Example MCP Tool Call
{
"name": "send",
"params": {
"message": "Hello from AI",
"title": "AI Notification",
"priority": 1
}
}
Installing
Using with Cursor
Method 1: Install Globally
Run the MCP server using npx:
npx -y pushover-mcp@latest start --token YOUR_TOKEN --user YOUR_USER
In your Cursor IDE
- Go to
Cursor Settings
>MCP
- Click
+ Add New MCP Server
- Fill in the form:
- Name:
Pushover Notification
(or any name you prefer) - Type:
command
- Command:
npx -y pushover-mcp@latest start --token YOUR_TOKEN --user YOUR_USER
- Name:
Method 2: Project-specific Configuration
Add an .cursor/mcp.json
file to your project:
{
"mcpServers": {
"pushover": {
"command": "npx",
"args": [
"-y",
"pushover-mcp@latest",
"start",
"--token",
"YOUR_TOKEN",
"--user",
"YOUR_USER"
]
}
}
}
Using the Tool
Once configured, the Pushover notification tool will be automatically available to the Cursor AI Agent. You can:
- The tool will be listed under
Available Tools
in MCP settings - Agent will automatically use it when relevant
- You can explicitly ask Agent to send notifications
By default, Agent will ask for approval before sending notifications. Enable "Yolo mode" in settings to allow automatic sending.
Using with Roo Code
Access the MCP settings by clicking “Edit MCP Settings” in Roo Code settings or using the “Roo Code: Open MCP Config” command in VS Code's command palette.
{
"mcpServers": {
"pushover": {
"command": "npx",
"args": [
"-y",
"pushover-mcp@latest",
"start",
"--token",
"YOUR_TOKEN",
"--user",
"YOUR_USER"
]
}
}
}
- The Pushover notification tool will be available to Roo Code's AI agents
Note: Replace
YOUR_TOKEN
&YOUR_USER
with your Pushover credentials.
Installing via Smithery
To install Pushover Notification for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @AshikNesin/pushover-mcp --client claude
Development
### Install dependencies
pnpm install
### Build
pnpm build
### Run tests
pnpm test
License
MIT
Server配置
{
"mcpServers": {
"pushover-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--ashiknesin--pushover-mcp--pushover-mcp",
"pnpm run start --token token --user user"
],
"env": {}
}
}
}