
Cline Notification Server

2025.03.12
0
JavaScript通知服务交互服务交流协作
Cline Notification Server 是一个 MCP 服务器,用于通过 Telegram 发送通知并接收用户的响应。当 Cline 需要询问用户问题时,会通过 Telegram 发送消息并等待用户的回复。
View on GitHub
Overview
基本能力
产品定位
Cline Notification Server 是一个用于通过 Telegram 进行通知和交互的 MCP 服务器。
核心功能
- 发送不同紧急级别的通知(低、中、高)
- 自动等待用户响应
- 可配置的超时时间(默认为 30 秒)
- 当用户不可用时停止 Cline,以防止不必要的操作
适用场景
- 当 Cline 需要用户确认或输入时
- 需要紧急通知用户时
- 需要远程控制 Cline 行为时
工具列表
send_notification
: 发送通知并等待用户响应
常见问题解答
- 如何获取 Telegram 机器人令牌?通过 @BotFather 创建机器人并获取令牌
- 如何获取聊天 ID?通过发送消息并访问 Telegram API 获取
- 超时时间可以配置吗?目前默认为 30 秒,暂不支持自定义
使用教程
使用依赖
需要安装 Node.js 和 npm
安装教程
npm install cline-notification-server
调试方式
- 确保正确配置了 Telegram 机器人令牌和聊天 ID
- 运行服务器并检查是否能正常发送和接收消息
- 使用示例代码测试通知功能
const response = await use_mcp_tool({
server_name: "notification",
tool_name: "send_notification",
arguments: {
message: "Should I proceed with deploying to production?",
project: "MyApp",
urgency: "high"
}
});