b

burkeholland

app-automationos-automation

317 查看 · 2026-07-07 更新

MCP 通知服务器

在 VS Code 中使用 NPX 安装 在 VS Code Insiders 中使用 NPX 安装 smithery 徽章

这是一个 Model Context Protocol (MCP) 服务器,它使用 node-notifier 提供系统通知功能。

Node-Notifier 服务器 MCP 服务器

工具

show-notification

使用当前平台的默认通知器显示系统通知。

所有通知工具的通用参数:

  • title: 通知标题
  • message: 通知消息内容
  • sound (可选): 播放通知声音 (默认: false)
  • wait (可选): 在用户操作前不移除通知 (默认: false)
  • icon (可选): 图标文件路径 (.ico, .png, .jpg 或特定于平台)
  • timeout (可选): 通知过期前的时间(秒)(Linux/Windows)

show-notification-macos

使用 macOS 通知中心显示通知。 额外参数:

  • actions: 动作按钮标签数组
  • closeLabel: 关闭通知的标签
  • dropdownLabel: 下拉菜单标签
  • reply: 启用回复功能

show-notification-linux

使用 Linux notify-send 显示通知。 额外参数:

  • urgency: 通知紧急程度 ("low", "normal", "critical")
  • category: 通知类别
  • hint: 通知显示提示
  • app-name: 应用程序名称

show-notification-windows-toast

使用 Windows Toast 通知 (Windows 8+) 显示通知。 额外参数:

  • appID: 应用程序标识符
  • shortcutPath: 通知快捷方式文件路径
  • install: 点击通知时的安装程序路径

show-notification-windows-balloon

使用 Windows Balloon 通知 (Windows 7 及更早版本) 显示通知。 额外参数:

  • type: 通知类型 ("info", "warn", "error")

show-notification-growl

使用 Growl 显示通知。 额外参数:

  • name: Growl 的应用程序名称
  • host: Growl 服务器主机
  • port: Growl 服务器端口
  • sticky: 保持通知可见
  • label: 通知标签
  • priority: 通知优先级 (-2 到 2)
  • sender: 通知发送者

开发

  1. 安装依赖项: bash npm install

  2. 构建项目: bash npm run build

  3. 启动服务器: bash npm start

在 VS Code 中使用

为了快速安装,请使用此 README 顶部的一键安装按钮之一。

对于手动安装,请将以下 JSON 块添加到 VS Code 的用户设置 (JSON) 文件中。您可以通过按 Ctrl + Shift + P 并输入 Preferences: Open User Settings (JSON) 来完成此操作。

或者,您可以将其添加到工作区中的 .vscode/mcp.json 文件中。这将允许您与他人共享配置。

注意,在 .vscode/mcp.json 文件中不需要 mcp 键。

json { "mcp": { "servers": { "notify": { "command": "npx", "args": ["-y", "mcp-notify"] } } } }

通过 Smithery 安装

要通过 Smithery 自动为 Claude Desktop 安装 Notify Server:bash npx -y @smithery/cli install @burkeholland/mcp-notify --client claude

手动安装

将MCP Notify服务器条目添加到您的Claude设置中,以便自动使用它。

来源