Cursor Sound MCP

Integrations

  • Used for package management and running scripts to install dependencies, build, and start the MCP server

光标声音 MCP

模型上下文协议 (MCP) 实现,可在 Cursor AI 完成代码生成后播放音效。此 MCP 与 Cursor 集成,可提供音频反馈,从而带来更具互动性的编码体验。

受到 X.com 上的 @EricListin 的启发 - 我对代码做了一些更改,以免出错并保持在线。

特征

  • 当 Cursor 完成代码生成时播放音效
  • 使用模型上下文协议 (MCP) 进行标准化集成
  • 可配置的音效
  • 改进的错误处理和日志记录
  • 稳定的 JSON 响应格式

游标规则

将其添加到您的 Cursor 自定义指令中:

“每次你完成任何任务或者需要我做某事时,请运行 sound-mcp MCP 服务器来引起我的注意。”

安装

  1. 安装依赖项:
npm install
  1. 添加音效:将声音文件放在sounds目录中。默认的预期声音是:
  • sounds/completion.mp3 - 代码生成后播放

您可以在 freesound.org 上找到免费的音效。

  1. 构建项目:
npm run build

用法

运行 MCP 服务器:

npm start

服务器将启动并通过 stdio 传输监听来自 Cursor 的事件。

配置

音效和音量可以通过以下方式定制:

  1. 替换sounds目录中的声音文件
  2. 修改src/index.ts中的声音文件路径

发展

对于使用自动重新编译的开发:

npm run dev
-
security - not tested
F
license - not found
-
quality - not tested

当 Cursor AI 完成代码生成时播放音效,提供音频反馈以获得更具互动性的编码体验。

  1. Features
    1. Cursor Rules
      1. Installation
        1. Usage
          1. Configuration
            1. Development
              ID: ay5aciqqpv