Telegram channel MCP server disconnects after 5s, drops messages
Resolved 💬 3 comments Opened Apr 10, 2026 by 4bdul7ah Closed May 31, 2026
Bug
The Telegram channel plugin (v0.0.4) MCP server cleanly disconnects after ~5s of inactivity, making the channel unusable for ongoing conversation. After every single message exchange, the bot dies and requires manual /mcp reconnection.
Debug log
MCP server "plugin:telegram:telegram": UNKNOWN connection closed after 5s (cleanly)
MCP server "plugin:telegram:telegram": Cleared connection cache for reconnection
The server connects on-demand, successfully calls the reply tool, then immediately shuts down:
MCP server "plugin:telegram:telegram": Starting connection with timeout of 30000ms
MCP server "plugin:telegram:telegram": Successfully connected (transport: stdio) in 134ms
MCP server "plugin:telegram:telegram": Calling MCP tool: reply
MCP server "plugin:telegram:telegram": Tool 'reply' completed successfully in 430ms
...
MCP server "plugin:telegram:telegram": UNKNOWN connection closed after 5s (cleanly)
Also seeing repeated Tool mcp__plugin_telegram_telegram__reply not found errors because the server isn't connected when Claude tries to call it (deferred/lazy-loaded).
Expected behavior
Channel MCP servers should remain persistent for the lifetime of the Claude Code session, since they need to listen for incoming messages continuously.
Reproduction
claude --channels plugin:telegram@claude-plugins-official --debug- Send a message from Telegram
- Bot replies once, then disconnects after ~5s
- Next Telegram message is never received
Environment
- Claude Code: 2.1.98
- Telegram plugin: 0.0.4
- macOS, Bun runtime
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗