AI任务通知服务

Message MCP是一款提供桌面通知、自定义声音、移动通知、邮件通知和API推送的AI任务通知服务,帮助用户在等待AI任务完成时减少焦虑,提高工作效率。

  • by gimjin
  • TypeScript
  • 本地部署
  • 9 星标
  • 更新于
在 GitHub 查看 gimjin/message-mcp

使用说明

💬 Message MCP

🌐 Available in: 中文 | 한국어 | 日本語

Desktop notifications, custom sounds, ntfy mobile notifications, email notifications, and API pushes reduce anxiety while waiting for AI tasks, allowing you to comfortably enjoy a cup of coffee.

🚀 提高人工智能效率,释放更多时间

在等待人工智能完成任务时,你希望自己能同时处理其他工作吗?现在,当人工智能执行长时间运行的任务时,你可以自信地处理其他事情。

消息MCP使您的AI协作更加高效!

🧑: Make a Tetris web game, notify when completed.
🤖: I'll start making the Tetris game
   ...
💬: Message MCP executed, message sent.

[!提示]

  • 允许MCP自动执行 在客户端设置中。
  • 在中添加“完成时通知”提示 用户规则 或 规则文件 以避免重复的手动提示。

⚡️ 快速安装

支持通过smithery.ai进行云安装(例如Dify等SaaS服务),并提供一键式本地部署。由于Message-MCP实际上在smithery.ai的云上运行,因此尚不支持桌面通知。端到端加密贯穿始终,以确保数据安全。 了解更多

⚙️ 标准安装

MacOS、Linux、WSL2

{
  "mcpServers": {
    "message-mcp": {
      "command": "npx",
      "args": ["-y", "message-mcp@latest"]
    }
  }
}

视窗

{
  "mcpServers": {
    "message-mcp": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "message-mcp@latest"]
    }
  }
}

🎛️ 可选配置

修改桌面通知

{
  "mcpServers": {
    "message-mcp": {
      "command": "npx",
      "args": ["-y", "message-mcp@latest"],
      "env": {
        "DISABLE_DESKTOP": "true",
        "SOUND_PATH": "/path/to/your/sound.mp3"
      }
    }
  }
}
  • 默认情况下启用桌面通知
  • 默认声音由zappalt提供。如果您不喜欢默认声音,可以从下载并配置 zappalt.com.

ntfy移动通知

安装应用程序: 应用商店, Google Play, F-Droid

{
  "mcpServers": {
    "message-mcp": {
      "command": "npx",
      "args": ["-y", "message-mcp@latest"],
      "env": {
        "NTFY_TOPIC": "your-unique-topic"
      }
    }
  }
}

电子邮件通知

{
  "mcpServers": {
    "message-mcp": {
      "command": "npx",
      "args": ["-y", "message-mcp@latest"],
      "env": {
        "SMTP_HOST": "smtp.gmail.com",
        "SMTP_PORT": "587",
        "SMTP_SECURE": "false",
        "SMTP_USER": "user@gmail.com",
        "SMTP_PASS": "your_password"
      }
    }
  }
}

API通知

{
  "mcpServers": {
    "message-mcp": {
      "command": "npx",
      "args": ["-y", "message-mcp@latest"],
      "env": {
        "API_URL": "https://httpbin.org/post",
        "API_METHOD": "POST", // POST, PUT, PATCH
        "API_HEADERS": "{\"Authorization\": \"Bearer token\"}"
      }
    }
  }
}
fetch(API_URL, {
  method: API_METHOD,
  headers: {
    'Content-Type': 'application/json'
    ...JSON.parse(API_HEADERS)
  },
  body: JSON.stringify({
    title: notifyTitle,
    message: notifyMessage,
  }),
})

📌 系统要求

  • Node.js:18或更高
  • macOS:本机通知要求>=10.8
  • Linux:通知osd或libnotify bin已安装(默认情况下Ubuntu包括在内)
  • Windows:>=8,或Windows<8的任务栏气球通知

❗️ 故障排除

未启用Windows系统通知

设置>通知和操作>从应用程序和其他发件人获取通知→ 启用

WSL2(Ubuntu)没有通知声音

sudo apt install -y pulseaudio mpg123

WSL2环境缺少操作系统通知

sudo find / -type f -name "snoretoast-*.exe" 2>/dev/null
/path/to/.../node_modules/snoretoast-x64.exe
/path/to/.../node_modules/snoretoast-x86.exe

chmod +x /path/to/.../node_modules/snoretoast-*.exe

如果这个项目对你有帮助,请给它一个⭐️ 支持它,让更多的人看到它!