Mcp Notifications

io.github.topvisor由 GitHub 账号 topvisor 发布v1.0.3更新于 Oct 24, 2026

MCP server for desktop notifications over stdio

已验证STDIO仅桌面效率与工作流开发者工具

概览

AI 生成的概览

一个本地 stdio MCP 服务器,让 AI 代理在任务完成、失败或需要你输入时发送系统桌面通知。

可以做什么
  • 发送带标题和正文的桌面通知,可选提示音、自定义图标和 Windows app_id 来源标识。
  • 通知在后台队列中发送,代理很快得到“Notification queued”结果而不会被阻塞。
  • 通过环境变量选择投递后端:自动、PowerShell 通知或 node-notifier 包。
  • 既可手动在对话中要求代理通知,也可在对话、项目或技能中加入指令实现自动通知。
适用场景
适合在控制台类 AI 客户端中运行耗时或多步骤任务、而客户端本身没有通知功能时使用,避免频繁查看聊天窗口。主要用于提示任务完成、失败或需要你介入。
运行要求
以 stdio 本地进程运行,需从 npm 全局安装 @topvisor/mcp-notifications,要求 Node.js 20 及以上、npm 10 及以上。需在 MCP 客户端配置(如 Codex 或 Claude)中加入可执行文件 mcp-notifications 并重启客户端。可选环境变量 MCP_NOTIFICATIONS_BACKEND 和 MCP_NOTIFICATIONS_APP_ID 用于调整后端和 Windows 通知来源。
安装前请注意
通知显示在运行服务器的本机上,代理写入标题或正文的内容(包括任务细节或摘要)都会出现在桌面上。自动通知指令若阈值设置过松,可能产生频繁弹窗和提示音。可选图标路径会从本地文件系统读取。未声明任何凭据或网络访问。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Notifications,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-notifications

[npm version]

🚀 Ship faster. Miss nothing.

mcp-notifications lets your MCP agent send desktop notifications for completed tasks, failures, and important updates.

This is especially useful for console AI agents, because they usually have no built-in notifications by default.

No more checking chats every minute.
No more silent agent responses.
Just visible, reliable feedback on your desktop. 🔔

Common problem this solves

You give tasks to several AI agents, then wait and keep checking who already replied.

With mcp-notifications, this gets simpler: the agent can notify you on desktop when it needs your input or when work is done.

Why teams install this

  • ⚡ Immediate feedback from your MCP workflows.
  • 🧠 Better focus: let the agent work while you stay on your main task.
  • 🖥️ Native OS notifications via node-notifier.
  • 🧵 Non-blocking behavior: notification sending is queued in background.

Install globally

Requirements:

  • Node.js >=20
  • npm >=10
bash
npm i -g @topvisor/mcp-notifications

Executable name (use this in MCP config):

bash
mcp-notifications

mcp-notifications is an MCP server entrypoint (stdio), not a one-shot notification command.

Setup: Codex

Add this to ~/.codex/config.toml:

toml
[mcp_servers.notifications]enabled = truecommand = "mcp-notifications"args = []

Restart Codex after config update.

Setup: Claude Agent

Add MCP server config to your Claude client config file:

json
{  "mcpServers": {    "notifications": {      "command": "mcp-notifications",      "args": []    }  }}

Then restart Claude client.

AI Agent Notification Instructions

There are two approaches to notifications: manual and automatic.

Choose the one that works better for your workflow.

Manual

In a task where you want to be notified, explicitly ask the agent. Example:

text
Count files in the project; after the task is fully complete, notify me with sound.

You can also define sound, topic, and frequency rules inside a specific chat. Example:

text
Notify me about your replies without sound, include the reply text, and use title: "Large Refactoring"

Automatic

Automatic notifications can be configured globally or per project.

Example instruction to enable automatic notifications for agent replies:

text
Send `send_notification` after your replies (actual task time >5 seconds or many steps); `play_sound: false`; `app_id: '{put your chat name here}'`

Time is a rough threshold and depends on model behavior, so adjust this instruction to your own preferences.

In Skills

You can also enable notifications in specific skills. Example for a Review skill:

text
After the review, run `send_notification` with a short summary; `play_sound: true`; `app_id: 'Reviewer {put task id here}'`

Tool

send_notification

Input:

  • title string (required)
  • message string (required)
  • play_sound boolean (optional, default: false)
  • icon string (optional, absolute or relative path to image file)
  • app_id string (optional, Windows App User Model ID for toast source)

Example:

json
{  "title": "Codex",  "message": "Deployment completed successfully",  "play_sound": true,  "icon": "/opt/mcp-notifications/icons/custom.png",  "app_id": "Topvisor.Codex"}

app_id (Windows)

  • app_id controls the source shown in Windows toast notifications.
  • If app_id is not set, Windows may show SnoreToast as the source.
  • You can pass app_id in each tool call, or set MCP_NOTIFICATIONS_APP_ID as an environment variable for the server.

Backend selection

You can select notification transport via env MCP_NOTIFICATIONS_BACKEND:

  • auto (default): uses powershell in WSL if available, otherwise node-notifier
  • powershell: force powershell.exe Windows toast transport (recommended for WSL)
  • node-notifier: force node-notifier package

Chat Prompts To Test In Codex

Use these messages directly in chat:

text
Check send_notification
text
Send a notification without sound: title "Test", message "Check"
text
Send a notification with sound: title "Test", message "Check"
text
Send a notification with app_id "Topvisor.Codex": title "Test", message "Check"
text
Send 3 test notifications in a row without sound

Expected tool result in logs/response:

text
Notification queued

Behavior

  • ✅ Uses standard system notification channels.
  • 🔊 Uses the standard system notification sound when play_sound: true.
  • 🤖 Uses bundled Topvisor robot image as default notification icon.
  • 🧰 Returns quickly while notifications are delivered in background queue.

Example

The AI agent is waiting for you:

[example.png]

来源:README.md,提交 9cd5ee5

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分