co8/cctelegram
If you are the rightful owner of cctelegram and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
CCTelegram is a comprehensive notification ecosystem designed to integrate Claude Code with Telegram using a Model Context Protocol (MCP) server and a high-performance bridge.
CCTelegram : Bridge + MCP Server
TL;DR
Complete Notification Ecosystem for Claude Code over Telegram
CCTelegram consists of two complementary components that work together seamlessly:
π MCP Server (TypeScript) - Integrates directly with Claude Code via MCP protocol
π Bridge (Rust) - High-performance background service for Telegram communication
Get real-time notifications, interactive approvals, and comprehensive development workflow integration.
Built specifically for the Claude Code + developer mindset.
π‘οΈ Security Score: 8.5/10 (LOW RISK) | π OWASP Top 10 2021: 100% Compliant | β Zero Critical Vulnerabilities
β‘ 30-Second Install
1. Get Telegram Ready
- Create bot with @BotFather:
/newbot
- Get your user ID from @userinfobot
2. Install Complete System
# Download both MCP Server and built Bridge
git clone https://github.com/co8/cctelegram.git
cd cctelegram/mcp-server
# Install MCP Server + Slash Commands
./install.sh
# Configure your tokens (installer guides you)
export TELEGRAM_BOT_TOKEN="your_bot_token_here"
export TELEGRAM_ALLOWED_USERS="your_user_id_here"
# Bridge starts automatically in background
3. Test with Claude Code
# Restart Claude Code, then test with MCP tools:
@cctelegram send_telegram_message "π CCTelegram v1.9.0 Enterprise Testing Complete!"
π You should get a Telegram notification within seconds!
How it works: MCP Server processes the command in Claude Code β Bridge detects the event file β Sends to Telegram
Both components work together automatically - no manual management needed.
Architecture Diagram
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Claude Code β β MCP Server β β Bridge App β β Telegram Bot β
β β β (TypeScript) β β (Rust Daemon) β β β
β βββββββββββββββ β β βββββββββββββββ β β βββββββββββββββ β β βββββββββββββββ β
β βMCP Tools βββΌβββββΌβΊβMCP Protocol βββΌβββββΌβΊβFile Watcher β β β βBot Client β β
β β@cctelegram β β β βHandler β β β β β β β β β β
β βββββββββββββββ β β βββββββ¬ββββββββ β β βββββββ¬ββββββββ β β βββββββ²ββββββββ β
βββββββββββββββββββ β βββββββΌββββββββ β β βββββββΌββββββββ β βββββββββΌββββββββββ
β βEvent File β β β βEvent β β β
β βGenerator β β β βProcessor β β βββββββββΌββββββββ
β βββββββββββββββ β β βββββββ¬ββββββββ β β Telegram API β
βββββββββββββββββββ β βββββββΌββββββββ β βββββββββ¬ββββββββ
β βTelegram Bot β β β
~/.cc_telegram/ β βClient β β βββββββββΌββββββββ
βββββββββββββββββββββββ β βββββββββββββββ β β User Device β
βevents/ βββββββββββββββββββ€ β β β
βββ task_123.json β β βββββββββββββββ β β βββββββββββββ β
βββ approval_456.json β β βResponse β β β βTelegram β β
βββ progress_789.json β β βHandler β β β βApp β β
β β β βββββββ²ββββββββ β β βββββββββββββ β
βresponses/ βββββββββββββββββββ€ β β βββββββββββββββββ
βββ approval_456.json β β β β
βββ command_890.json β βββββββββΌββββββββββ
βββββββββββββββββββββββ β
ββββββββΌβββββββ
β Response β
β Files β
βββββββββββββββ
π± Live Notifications
Build Success | Security Audit | Code Review |
---|---|---|
![]() | ![]() | ![]() |
β Comprehensive build metrics | π‘οΈ Zero-vulnerability reports | π Detailed review summaries |
Real-time CI/CD pipeline results with test coverage, bundle optimization, and deployment readiness | OWASP-compliant security scans with vulnerability breakdown and compliance scoring | Pull request analysis with code quality metrics and approval workflows |
π Interactive Approval Workflow
Initial Request and Response Options | Detailed Review | Final Confirmation |
---|---|---|
![]() | ![]() | ![]() ![]() |
π Production Deployment | π Comprehensive Details | β Confirmed Response |
Critical changes with rating icons, pre-flight check status, and interactive approve/deny buttons | Enhanced authentication, performance improvements, security patches, and rollback planning | Real-time confirmation with timestamp and deployment tracking |
π― Key Features
- π‘οΈ Zero Message Loss Architecture - NEW: Enterprise-grade reliability with comprehensive validation and deduplication
- π - Complete development lifecycle monitoring
- π MCP Server Integration - Zero-config Claude Code integration
- π± Real-time Telegram Notifications - Instant alerts with rich formatting
- β Interactive Approvals - Approve deployments, code reviews via Telegram
- β‘ Performance Optimized - NEW: 86.3% payload reduction, microsecond serialization benchmarks
- π Comprehensive Validation - NEW: 14 ValidationError types, field constraints, business logic validation
- π Advanced Authentication - NEW: API keys, HMAC integrity, rate limiting
- π Performance Monitoring - Built-in metrics, health checks, Prometheus integration
- π Comprehensive Audit Logging - NEW: Secure event tracking, data sanitization
β - Complete feature reference
π‘οΈ Enterprise Reliability
Zero Message Loss Achievement - Comprehensive reliability improvements targeting 100% message delivery:
π― Validation & Integrity System
- 14 ValidationError Types with user-friendly messages and severity classification
- Field Constraint Validation - Title (1-200 chars), description (1-2000 chars), UUID/timestamp validation
- Business Logic Validation - Event type-specific rules and required field checking
- Data Consistency Validation - Cross-field validation and logical consistency verification
π Advanced Deduplication
- Primary Deduplication - Exact event_id matching for duplicate prevention
- Secondary Deduplication - Content-based matching within configurable time windows (5 seconds default)
- Intelligent Detection - Hash-based content comparison for efficient duplicate identification
β‘ Performance Optimization
- 86.3% Payload Reduction - Intelligent null field omission and optimized JSON structure
- Serialization Benchmarks - Average 72.82ΞΌs serialization, 60.549ΞΌs deserialization
- Forward Compatibility - Custom deserializers with Unknown variant fallbacks
- Snake_case Consistency - Standardized JSON field naming across all structures
π Comprehensive Test Suite
- 154 Tests (152% increase) with comprehensive validation and reliability testing
- 100% Test Success Rate - All core functionality verified and working
- Cross-Platform E2E Testing - Chrome, Firefox, Safari compatibility verified
- Performance Benchmarks - Serialization/deserialization timing integrated into test suite
- API Validation - Health endpoints, metrics, and error handling tested
- Visual Regression Testing - UI components and mobile responsiveness verified
π§ͺ Quality Assurance & Testing
β Complete Test Coverage (154 Tests Passing)
Rust Library Tests: 122/122 β
- Core integrity validation and cryptographic functions
- Event processing and queue management systems
- Compression and deduplication algorithms
- Security authentication and authorization
- Performance monitoring and metrics collection
End-to-End Tests: 32/32 β
- Bridge health API endpoints validation
- Dashboard UI responsiveness (mobile/desktop)
- Cross-browser compatibility (Chrome/Firefox/Safari)
- Network failure recovery scenarios
- Visual regression testing with screenshot comparison
- Performance benchmarking under various conditions
Test Categories:
π¦ Rust Unit Tests 122 β
# Core business logic
π E2E Integration Tests 32 β
# Full system workflows
π± Cross-Platform Tests 15 β
# Multi-browser support
π Performance Tests 8 β
# Load & stress testing
π¨ Visual Regression 6 β
# UI consistency checks
β‘ API Validation Tests 5 β
# Endpoint functionality
Quality Gates:
- 100% Core Test Success - All critical path functionality verified
- Performance Standards - Load times <3s, API responses <200ms
- Error Handling - Graceful degradation and recovery verified
π Project Structure
cctelegram/
βββ docs/ # π Unified Documentation Hub
β βββ API_REFERENCE.md # π Tools & Events Reference
β βββ INSTALLATION.md # β‘ Setup Guide
β βββ TROUBLESHOOTING.md # π§ Problem Solving
β βββ SECURITY.md # π‘οΈ Security & Compliance
β βββ CONTRIBUTING.md # π€ Developer Guide
β βββ assets/ # πΈ Screenshots & Images
β βββ components/ # π§© Component Documentation
β β βββ mcp-server.md # MCP Server Guide
β β βββ benchmarking.md # Performance Testing
β β βββ observability.md # Monitoring & Metrics
β βββ testing/ # π§ͺ Testing Documentation
β β βββ emulation.md # Bot API Emulation
β β βββ playwright.md # E2E Testing
β β βββ chaos-engineering.md # Chaos Testing
β β βββ contract-testing.md # Contract Testing
β βββ mcp-server/ # π MCP Server Technical Docs
β βββ api/ # API Documentation
β βββ deployment/ # Deployment Guides
β βββ guide/ # User Guides
β βββ examples/ # Code Examples
βββ src/ # π¦ Rust Bridge Source
β βββ config/ # βοΈ Configuration Management
β βββ events/ # π‘ Event Processing & Queuing
β βββ storage/ # πΎ Persistence & Compression
β βββ telegram/ # π± Telegram Bot Integration
β βββ mcp/ # π MCP Protocol Support
β βββ tier_orchestrator/ # ποΈ Advanced Orchestration
β βββ utils/ # π οΈ Utilities & Health Checks
βββ mcp-server/ # π MCP Server (TypeScript)
β βββ src/ # πΌ Server Implementation
β βββ scripts/ # π Build & Deploy Tools
β βββ install.sh # β‘ One-click installer
βββ tests/ # π Unified Testing Hub
β βββ mcp-server/ # MCP Server Test Suite
β β βββ unit/ # Unit Tests
β β βββ integration/ # Integration Tests
β β βββ e2e/ # End-to-End Tests
β β βββ performance/ # Performance Tests
β β βββ chaos/ # Chaos Engineering
β β βββ contract/ # Contract Testing
β βββ playwright/ # π― E2E Browser Tests
β βββ emulation/ # π‘ Bot API Emulation
β βββ *.rs # Rust Integration Tests
β βββ *.sh # Test Scripts
βββ examples/ # π‘ Usage Examples & Demos
βββ scripts/ # βοΈ Automation Scripts
βββ monitoring/ # π Prometheus & Grafana
βββ target/ # ποΈ Rust Build Artifacts
βββ .taskmaster/ # π Task Master Integration
π Documentation
Complete documentation in 7 focused files:
Get Started | Power Users | Contributors & Operators |
---|---|---|
Project overview & quick start | All 20+ tools & 44+ events | Developer guide & workflows |
Complete setup in <10 minutes | Problem-solving & diagnostics | Technical design & system overview |
Security policy & compliance |
Total documentation: 2,400+ lines across 7 core files plus comprehensive component & testing docs (streamlined from 10,000+ lines across 97+ files)
π¨ Visual System Overview
graph LR
A[π©βπ» Claude Code] -->|MCP Protocol| B[π MCP Server v1.9.0]
B -->|Event Files| C[π Bridge v0.9.0]
C -->|Bot API| D[π± Telegram]
style A fill:#FF8C42,color:#fff
style B fill:#2da199,color:#fff
style C fill:#FF6B6B,color:#fff
style D fill:#26A5E4,color:#fff
π― Streamlined Documentation Experience:
- - Gateway with performance stats and user routing
- - Complete setup guide with 95% success rate
- - Comprehensive tool and event catalog
- - Practical problem-solving guide
- - Complete developer lifecycle guide
- - Production security and compliance
π‘ Quick Example
Task Completion Notification:
# Your build system creates this file when a task completes:
echo '{
"type": "task_completion",
"source": "ci_system",
"title": "β
Deploy Complete",
"description": "Production deployment v2.1.0 successful"
}' > ~/.cc_telegram/events/deploy-complete.json
# CCTelegram instantly sends: "β
Deploy Complete β° 14:30 UTC
# Production deployment v2.1.0 successful"
Performance Alert:
# Monitoring system triggers alert:
echo '{
"type": "performance_alert",
"title": "β οΈ Memory High",
"description": "Server memory usage: 85% (threshold: 80%)"
}' > ~/.cc_telegram/events/memory-alert.json
# Get instant notification with threshold details
βοΈ Alternative Installation
Manual Bridge Setup (Advanced Users):
# Download and extract latest release
# Get the latest release URL automatically
LATEST_URL=$(curl -s https://api.github.com/repos/co8/cctelegram/releases/latest | grep "tarball_url" | cut -d '"' -f 4)
curl -L "$LATEST_URL" -o cctelegram-latest.tar.gz
tar -xzf cctelegram-latest.tar.gz
cd co8-cctelegram-*
cargo build --release
# Configure and run
export TELEGRAM_BOT_TOKEN="your_bot_token_here"
export TELEGRAM_ALLOWED_USERS="your_user_id_here"
./target/release/cctelegram-bridge
# Test with file creation
mkdir -p ~/.cc_telegram/events
echo '{"type": "task_completion", "title": "Bridge Test", "description": "Manual setup working"}' > ~/.cc_telegram/events/test.json
Build from Source:
git clone https://github.com/co8/cctelegram.git
cd cctelegram
cargo build --release
./target/release/cctelegram-bridge
Built with β€οΈ in Rust | π Enterprise Security | β OWASP Compliant | π‘οΈ Zero Critical Vulnerabilities