Telegram channel MCP drops mid-session; no way to check/manage context from channel

Resolved 💬 2 comments Opened Mar 20, 2026 by klapshin-paramount Closed Apr 17, 2026

Summary

Two related issues with the Telegram channel plugin (research preview):

1. MCP transport drops mid-session

The Telegram channel MCP server (bun server.ts) stays alive (confirmed via ps aux) but Claude Code loses the MCP connection during normal usage. The channel becomes unresponsive — no messages arrive, reply/react tools disappear.

Repro:

  1. Start session: claude --channels plugin:telegram@claude-plugins-official
  2. Pair account, exchange several messages via Telegram
  3. Send a longer response (e.g. a digest with ~2KB of text via reply tool)
  4. After some time, MCP tools (reply, react, edit_message) disappear with "MCP server disconnected"
  5. The bun server.ts process is still running — only the MCP transport broke

Expected: MCP connection remains stable for the session lifetime, or auto-reconnects.

Environment:

  • Claude Code v2.1.80
  • macOS 14 (Darwin 24.6.0)
  • Bun 1.3.11
  • telegram plugin v0.0.1 from claude-plugins-official

2. Feature request: session context management from channel

When using Claude Code via Telegram (away from terminal), there's no way to:

  • Check context window usage (/cost equivalent)
  • Trigger context compaction (/compact equivalent)
  • Get session health status

These are built-in CLI commands with no programmatic API. When the primary interaction is via a channel (the whole point of channels — working while away from terminal), losing visibility into session health is a gap.

Proposed:

  • Expose /cost and /compact as MCP tools or allow channels to invoke them
  • Or add a channel-aware auto-compact that notifies via the channel when context is getting high (e.g. >70%)
  • At minimum, let channel users query context usage percentage

This would make channels viable for longer unattended sessions.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗