Skip to main content
Glama

光标声音 MCP

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

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

特征

  • 当 Cursor 完成代码生成时播放音效

  • 使用模型上下文协议 (MCP) 进行标准化集成

  • 可配置的音效

  • 改进的错误处理和日志记录

  • 稳定的 JSON 响应格式

Related MCP server: MCP Sound Tool

游标规则

将其添加到您的 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

Available Tools

1 tool
playCompletionSoundC

Plays a completion sound when called

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion or overlap between tools. The single tool has a clear, distinct purpose that cannot be mistaken for another.

    Naming Consistency5/5

    A single tool inherently has perfect naming consistency, as there are no other names to compare it against. The tool name 'playCompletionSound' follows a clear verb_noun pattern.

    Tool Count2/5

    One tool is too few for a server's purpose, as it severely limits functionality and suggests the server is trivial or incomplete. A single sound-playing tool does not justify a full MCP server.

    Completeness1/5

    The server is severely incomplete, as it only offers a single sound-playing tool with no other related operations (e.g., stop sound, list sounds, adjust volume). This minimal surface fails to cover any meaningful domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      F
      maintenance
      A Model Context Protocol implementation that plays sound effects (completion, error, notification) for Cursor AI and other MCP-compatible environments, providing audio feedback for a more interactive coding experience.
      3
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Plays sound effects (completion, newtype, and error sounds) in response to various situations like task completion, insights, or errors. Integrates with Claude Desktop to provide audio feedback for improved workflow efficiency and entertainment.
      2
      6
      MIT