Cline 通知服务器
通过 Telegram 发送通知并接收响应的 MCP 服务器。
快速入门
-
安装软件包: 使用 npm 安装
npm install cline-notification-server
-
创建 Telegram Bot:
- 联系 @BotFather
- 发送
/newbot
并按指引操作,保存生成的 bot token。
-
获取 Chat ID:
- 向你的 bot 发送消息。
- 浏览器打开 URL(替换 BOT_TOKEN): https://api.telegram.org/botBOT_TOKEN/getUpdates
- 找到
chat.id
并记录。
-
配置 Cline: 在配置文件中添加以下内容:
{ "mcpServers": { "notification": { "command": "npx", "args": ["cline-notification-server"], "env": { "TELEGRAM_BOT_TOKEN": "your_bot_token", "TELEGRAM_CHAT_ID": "your_chat_id" } } } }
-
使用:当 Cline 需要提问时,它会通过 Telegram 发送消息并等待回复。