A Model Context Protocol (MCP) server that enables Claude to communicate with users via Telegram. Provides two-way communication, notifications, question/answer flows, and message queuing. Features: - MCP server implementation with 5 tools - HTTP bridge for Telegram Bot API - Real-time notifications with priority levels - Question/answer blocking flow - Message queue for async communication - Background daemon support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
12 lines
387 B
JavaScript
12 lines
387 B
JavaScript
const message = process.argv[2] || 'Test notification';
|
|
const priority = process.argv[3] || 'info';
|
|
|
|
fetch('http://localhost:3456/notify', {
|
|
method: 'POST',
|
|
headers: { 'Content-Type': 'application/json' },
|
|
body: JSON.stringify({ message, priority })
|
|
})
|
|
.then(res => res.json())
|
|
.then(data => console.log('✅ Sent:', data))
|
|
.catch(err => console.error('❌ Error:', err.message));
|