Claude 桌面通知服务

Claude 桌面通知服务

为 macOS 上的 Claude 桌面应用提供声音和视觉通知的服务。

快速入门

  1. 克隆仓库

    git clone https://github.com/charles-adedotun/notifications-mcp-server.git
    cd notifications-mcp-server
    
  2. 安装依赖

    curl -LsSf https://astral.sh/uv/install.sh | sh
    uv pip install -e .
    
  3. 配置 Claude Desktop 编辑配置文件以包含通知服务器路径:

    {
      "mcpServers": [
        {
          "notify-user": {
            "command": "uv",
            "args": [
              "run",
              "--with",
              "fastmcp",
              "fastmcp",
              "run",
              "/path/to/server.py"
            ]
          }
        }
      ]
    }
    
  4. 运行测试

    python test_notification.py
    
  5. 自定义通知 使用环境变量设置声音或图标:

    export CLAUDE_START_SOUND="/System/Library/Sounds/Ping.aiff"
    export CLAUDE_COMPLETE_SOUND="/System/Library/Sounds/Purr.aiff"