推送MCP
](https://smithery.ai/server/@AshikNesin/pushover-mcp)
A. 模型上下文协议 通过以下方式发送通知的实现 Pushover.net.
概述
此MCP使AI代理能够通过Pushover.net发送通知。它实现了MCP规范,允许与MCP兼容的AI系统无缝集成。
配置
您需要:
- Pushover.net的应用程序令牌
- 您在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
}
}安装
与光标一起使用
方法1:全局安装
使用npx运行MCP服务器:
npx -y pushover-mcp@latest start --token YOUR_TOKEN --user YOUR_USER在Cursor IDE中
- 首选
Cursor Settings>MCP - 点击
+ Add New MCP Server - 填写表格:
- 姓名: 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可用。你可以:
- 该工具将列在
Available Tools在MCP设置中 - 代理将在相关时自动使用它
- 您可以明确要求代理发送通知
默认情况下,Agent会在发送通知之前请求批准。在设置中启用“Yolo模式”以允许自动发送。
使用Roo代码
通过单击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"
]
}
}
}- Roo Code的人工智能代理将可以使用Pushover通知工具
注: 替换YOUR_TOKEN&YOUR_USER凭你的Pushover证书。
通过Smithery安装
通过以下方式自动安装克劳德桌面推送通知 史密瑟里:
npx -y @smithery/cli install @AshikNesin/pushover-mcp --client claude发展
# Install dependencies
pnpm install
# Build
pnpm build
# Run tests
pnpm test许可证
麻省理工学院
