implement MCP connector with Streamable HTTP transport

Replaces simple Telegram forwarder with a proper MCP server deployable
to Cloudflare Workers and connectable from Claude.ai web interface.
This commit is contained in:
2026-03-31 17:13:17 +07:00
parent b10bfe55fb
commit 163fb0708d
2 changed files with 157 additions and 131 deletions

View File

@@ -1,3 +1,8 @@
name = "telegram-mcp"
main = "index.js"
compatibility_date = "2026-01-01"
# Required secrets (set via: wrangler secret put <NAME>):
# TELEGRAM_TOKEN — your bot token from @BotFather
# TELEGRAM_CHAT_ID — target chat/group ID
# MCP_SECRET — optional bearer token for auth