ks0318 p sound notification mcp

ks0318 p sound notification mcp avatar

by ks0318-p

What is ks0318 p sound notification mcp

Sound Notification MCP (JPN followed By ENG)

このプロジェクトは、WindsurfやCursorなどのAIコーディングアシスタントがユーザーの注意が必要な場合に通知音を鳴らすMCPサーバーです。コーディングの終了時やユーザーの承認が必要なときに通知音を鳴らすことができます。

注意事項&免責

  • ※設定を追加する際は必ずセットでrules(windsurfにはメモリ)に記載を追加してください。
  • 現状MacOSにのみ対応しています。
  • MCPのCALLはLLMの判断に任せることになるため、予想外のタイミングで音が鳴ったり想定通りに動作しない可能性があります。
  • Cursor/Windsurf共通でコマンド実行前の承認は鳴らないことが多いです。
  • Windsurfは終了時に通知音を複数回鳴らしてしまう現象があります。(クレジット消費しますのでご注意ください。)

セットアップ

前提条件

  • Node.js (v18以上)
  • Yarn

インストール

# リポジトリをクローン
git clone <repository-url>
cd sound-notification-mcp

# 依存関係のインストール
yarn install

# ビルド
yarn build

これで準備完了です。

WindsurfやCursorでの設定

Cursor

サンプルを/.cursor/mcp.jsonに記載しました。 (/.cursor/mcp.jsonに書くとプロジェクト毎に記載が必要になります。Globalで有効にしたければ設定アイコンから設定してください。)

Windsurf

mcp_config.jsonに設定を記載します。 /.cursor/mcp.jsonと全く同じ内容で問題ありません。

カスタマイズ

通知音の変更

src/index.tsファイル内の以下の部分を変更します:

const SYSTEM_SOUND_PATH = '/[System](/mcp/category/system)/Library/Sounds/Glass.aiff'; // macOSのデフォルトサウンド

macOSで利用可能なシステムサウンドは /System/Library/Sounds/ ディレクトリにあります:

  • Bottle.aiff
  • Frog.aiff
  • Funk.aiff
  • Glass.aiff
  • Hero.aiff
  • Morse.aiff
  • Ping.aiff
  • Pop.aiff
  • Purr.aiff
  • Sosumi.aiff
  • Submarine.aiff
  • Tink.aiff

トラブルシューティング

音が鳴らない場合

  1. システム音量が適切に設定されているか確認してください。
  2. 指定した音声ファイルが存在するか確認してください。
  3. ターミナルの出力でエラーメッセージを確認してください。

MCPサーバーが起動しない場合

  1. Node.jsとYarnが正しくインストールされているか確認してください。
  2. 依存関係が正しくインストールされているか確認してください:
    yarn install
    
  3. ビルドエラーがないか確認してください:
    yarn build
    

ライセンス

MIT


English Version

This project is an MCP server that plays notification sounds when AI coding assistants like Windsurf or Cursor require user attention. It can play notification sounds when coding is complete or when user approval is needed.

Notes & Disclaimer

  • ※ When adding settings, please always add corresponding entries to the rules.
  • Currently only supports MAC as the creator uses a Mac and cannot verify on Windows.
  • Since MCP CALLS depend on LLM judgment, sounds may play at unexpected times or not work as expected.
  • For Cursor, sounds may sometimes not play before command execution approval.
  • With Windsurf, there is a phenomenon where notification sounds may play multiple times.

Setup

Prerequisites

  • Node.js (v18 or higher)
  • Yarn

Installation

# Clone the repository
git clone <repository-url>
cd sound-notification-mcp

# Install dependencies
yarn install

# Build
yarn build

Now you're ready to go.

Configuration for Windsurf and Cursor

Cursor

A sample configuration is provided in /.cursor/mcp.json (Writing to /.cursor/mcp.json requires configuration for each project. If you want to enable it globally, please configure it from the settings icon.)

Windsurf

Add configuration to mcp_config.json. The content can be exactly the same as /.cursor/mcp.json.

For Windsurf, it is also strongly recommended to:

  1. Add the notification instructions to your global_rules.md file
  2. Add the notification settings to your memories

This ensures that the AI assistant consistently uses sound notifications when needed.

Customization

Changing the Notification Sound

Modify the following section in the src/index.ts file:

const SYSTEM_SOUND_PATH = '/[System](/mcp/category/system)/Library/Sounds/Glass.aiff'; // macOS default sound

System sounds available on macOS can be found in the /System/Library/Sounds/ directory:

  • Bottle.aiff
  • Frog.aiff
  • Funk.aiff
  • Glass.aiff
  • Hero.aiff
  • Morse.aiff
  • Ping.aiff
  • Pop.aiff
  • Purr.aiff
  • Sosumi.aiff
  • Submarine.aiff
  • Tink.aiff

Troubleshooting

If No Sound Plays

  1. Check that the system volume is properly set.
  2. Verify that the specified sound file exists.
  3. Check the terminal output for error messages.

If the MCP Server Fails to Start

  1. Verify that Node.js and Yarn are correctly installed.
  2. Check that dependencies are properly installed:
    yarn install
    
  3. Check for build errors:
    yarn build
    

License

MIT

Leave a Comment

Frequently Asked Questions

What is MCP?

MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.

What are MCP Servers?

MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.

How do MCP Servers work?

MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.

Are MCP Servers secure?

Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.

Related MCP Servers

chrisdoc hevy mcp avatar

chrisdoc hevy mcp

mcp
sylphlab pdf reader mcp avatar

sylphlab pdf reader mcp

An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.

pdf-parsetypescriptnodejs
aashari mcp server atlassian bitbucket avatar

aashari mcp server atlassian bitbucket

Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.

atlassianrepositorymcp
aashari mcp server atlassian confluence avatar

aashari mcp server atlassian confluence

Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.

atlassianmcpconfluence
prisma prisma avatar

prisma prisma

Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

cockroachdbgomcp
Zzzccs123 mcp sentry avatar

Zzzccs123 mcp sentry

mcp sentry for typescript sdk

mcptypescript
zhuzhoulin dify mcp server avatar

zhuzhoulin dify mcp server

mcp
zhongmingyuan mcp my mac avatar

zhongmingyuan mcp my mac

mcp
zhixiaoqiang desktop image manager mcp avatar

zhixiaoqiang desktop image manager mcp

MCP 服务器,用于管理桌面图片、查看详情、压缩、移动等(完全让Trae实现)

mcp
zhixiaoqiang antd components mcp avatar

zhixiaoqiang antd components mcp

An MCP service for Ant Design components query | 一个减少 Ant Design 组件代码生成幻觉的 MCP 服务,包含系统提示词、组件文档、API 文档、代码示例和更新日志查询

designantdapi

Submit Your MCP Server

Share your MCP server with the community

Submit Now