Mcp Notify

io.github.mrfqcentic由 GitHub 账号 mrfqcentic 发布v0.2.1更新于 Oct 25, 2026

Minimal MCP server that plays a sound and shows a system banner when an AI agent finishes a task

已验证STDIO仅桌面效率与工作流

概览

AI 生成的概览

一个极简的本地 MCP 服务器,在 AI 代理完成任务或需要关注时播放提示音并显示系统横幅通知。

可以做什么
播放提示音并显示桌面横幅,标题和消息由代理提供,也可指定音频文件路径作为提示音。列出可用声音及当前选中的默认声音。声音按固定顺序选择:环境变量路径、固定的默认文件、sounds 文件夹中第一个音频文件、生成的提示音,最后是系统声音。
适用场景
适合运行耗时较长的代理任务时,希望在本机通过声音和横幅及时得知代理已完成或需要你输入,而不必一直盯着会话。可与 Claude Desktop、Cursor、VS Code 等 MCP 客户端配合使用。
运行要求
通过 npx 以 stdio 在本地运行,需要 Node.js 20 或更高版本。无需 API 密钥、账号或网络调用。声音和横幅依赖本地系统功能:macOS 使用 afplay 和 osascript,Linux 使用 ffplay、mpg123、paplay 或 aplay 及 notify-send 的回退链,Windows 使用 PowerShell。可选环境变量 NOTIFY_SOUND 用于指定声音文件路径。
安装前请注意
需要告知代理调用 notify 工具,例如在代理指令文件中加一行说明。声音和横幅在 macOS 上经过测试,在 Linux 和 Windows 上为尽力支持。存在任何 CI 环境变量时会静默禁用声音和横幅播放。该工具仅访问本地音频和通知功能。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-notify

Minimal MCP server that plays a notification sound and shows a system banner on your computer whenever your AI agent finishes a task or needs your attention.

Works with any MCP client: Claude Desktop, Claude Code, Cursor, VS Code, opencode, Cline, and more. One 3-line config, no API keys, no network calls — it only touches your local audio and notification facilities.

Install

Add to your client's MCP config (Claude Desktop claude_desktop_config.json, Cursor / VS Code mcp.json, or opencode config):

json
{  "mcpServers": {    "mcp-notify": {      "command": "npx",      "args": ["-y", "@mrfqcentic/mcp-notify"]    }  }}

(opencode users: same shape under the mcp key with "type": "local" and "command": ["npx", "-y", "@mrfqcentic/mcp-notify"].)

Requires Node.js >= 20.

Make the agent call it

Add one line to your AGENTS.md / CLAUDE.md / system prompt:

When a task is done or the user should be alerted, call the `notify` tool with a short title and a 1–2 sentence description of the result.

Tools

notify

Plays the sound and shows a banner. The agent always supplies title (max 50 chars) and message (max 200 chars).

ParamRequiredDescription
titleyesShort banner title, e.g. "Build finished"
messageyes1–2 sentence description, e.g. "All 142 tests passed"
soundnoAbsolute path to any audio/video file with audio (mp4, m4a, mp3, wav, aiff)

list_sounds

Lists available sounds and the currently selected default.

Choosing your sound

Resolution order:

  1. NOTIFY_SOUND env var — absolute path, explicit and deterministic
  2. A file in the sounds/ folder whose name starts with default (your pin)
  3. First audio file in the sounds/ folder (alphabetical — notify-me.mp3 ships here as the bundled default)
  4. The generated chime in assets/
  5. The system sound (macOS Glass.aiff, Linux bell.oga)

Tip: rename or copy your favorite sound to sounds/default.mp3 (or set NOTIFY_SOUND) to make it stick.

The bundled sounds/notify-me.mp3 was generated with ElevenLabs under a commercial license.

json
{  "mcpServers": {    "mcp-notify": {      "command": "npx",      "args": ["-y", "@mrfqcentic/mcp-notify"],      "env": { "NOTIFY_SOUND": "/absolute/path/to/your-sound.mp3" }    }  }}

Tip: MP4 files with an audio track work too (macOS afplay reads the audio stream).

Platforms

OSSoundBanner
macOSafplay (tested)osascript (tested)
Linuxffplay / mpg123 / paplay / aplay fallback chain (best effort)notify-send (best effort)
WindowsPowerShell MediaPlayer (best effort)PowerShell NotifyIcon balloon (best effort)

Any CI env value makes sound and banner playback no-ops (set automatically in CI workflows) so the test suite can run on machines without audio.

Development

sh
npm installnpm run typechecknpm test          # builds, then runs the e2e suite (sound + banner fire locally)

License

MIT — see LICENSE.

来源:README.md,提交 926225e

工具

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

版本历史

1
  1. v0.2.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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