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 分