Cover image
Try Now
2025-03-12

MCP Server pour envoyer des notifications via Telegram

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

Cline Notification Server

An MCP server for Cline that enables sending notifications and receiving responses via Telegram. When Cline needs to ask a question, it will send you a Telegram message and wait for your response.

Features

  • Send notifications with different urgency levels (low, medium, high)
  • Automatically waits for user responses
  • Configurable timeout (defaults to 30 seconds)
  • Stops Cline when user is unavailable to prevent unwanted actions

Installation

npm install cline-notification-server

Setup

1. Create a Telegram Bot

  1. Message @BotFather on Telegram
  2. Send /newbot and follow the instructions
  3. Save the bot token you receive (it looks like 123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
  4. Start a chat with your new bot
  5. Message /start to your bot

2. Get Your Chat ID

  1. Send a message to your bot
  2. Open this URL in your browser (replace BOT_TOKEN with your token):
    https://api.telegram.org/botBOT_TOKEN/getUpdates
    
  3. Look for the chat object and note the id field - this is your chat ID

3. Configure Cline

Add the server to your Cline configuration file:

For VSCode extension (cline_mcp_settings.json):

{
  "mcpServers": {
    "notification": {
      "command": "npx",
      "args": ["cline-notification-server"],
      "env": {
        "TELEGRAM_BOT_TOKEN": "your_bot_token",
        "TELEGRAM_CHAT_ID": "your_chat_id"
      }
    }
  }
}

For Claude desktop app (claude_desktop_config.json):

{
  "mcpServers": {
    "notification": {
      "command": "npx",
      "args": ["cline-notification-server"],
      "env": {
        "TELEGRAM_BOT_TOKEN": "your_bot_token",
        "TELEGRAM_CHAT_ID": "your_chat_id"
      }
    }
  }
}

How It Works

When Cline needs to ask you a question:

  1. It sends a message via Telegram using your bot
  2. Waits up to 30 seconds for your response
  3. If you respond within 30 seconds, Cline continues with your answer
  4. If you don't respond within 30 seconds, Cline stops and waits for you to restart it

Example Usage

When this server is configured, Cline can use it to ask you questions:

// Example of how Cline uses the notification tools
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"
  }
});

Messages are formatted with:

  • 🚨 Prefix for high urgency
  • ⚠️ Prefix for medium urgency
  • No prefix for low urgency

Environment Variables

  • TELEGRAM_BOT_TOKEN: Your Telegram bot token from BotFather
  • TELEGRAM_CHAT_ID: Your Telegram chat ID where messages will be sent

Contributing

Feel free to open issues or submit pull requests if you have suggestions for improvements.

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • OffchainLabs
  • Aller la mise en œuvre de la preuve de la participation Ethereum

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

  • deemkeen
  • Contrôlez votre MBOT2 avec un combo d'alimentation: MQTT + MCP + LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocole de connecteur de message) 服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 , 支持员工信息查询和消息发送等功能。

  • pontusab
  • La communauté du curseur et de la planche à voile, recherchez des règles et des MCP

    Reviews

    5 (1)
    Avatar
    user_k4fDw0PQ
    2025-04-17

    I've been using the notification-mcp and it has significantly streamlined my notification management process. The integration was seamless and the functionality is top-notch. MobileVibe did an excellent job at creating a user-friendly and efficient tool. Highly recommend checking it out if you're looking for a robust notification solution!