[BUG] Telegram plugin: inbound MCP notifications (notifications/claude/channel) not injected into conversation
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Environment
- Claude Code: 2.1.89
- OS: Linux
- Plugin: telegram@claude-plugins-official (official marketplace)
- MCP SDK: @modelcontextprotocol/sdk 1.27.1
## Problem
Inbound Telegram messages are never injected into the Claude Code conversation as <channel source="telegram"> tags, even though the MCP
connection is established and notifications are being sent.
## Diagnosis
- Bot process (PID bun/server.ts) is running and connected to Claude Code via Unix socket pair
ss -pconfirms: claude process (fd 45) is connected to the bot's stdout (fd 1/13)straceconfirms: when an allowed user DMs the bot, the MCP notification IS sent:
write(13, "{\"method\":\"notifications/claude/channel\"...", 214) = 214
- The outbound direction works: using the
replytool successfully sends messages to Telegram - Allowlist is configured correctly (user ID in
allowFrom,dmPolicy: allowlist)
## Expected behavior
Telegram messages from allowed users should appear as <channel source="telegram" ...> in the conversation context.
## Actual behavior
Nothing appears. The notification is sent by the MCP server but never injected into the conversation by Claude Code.
What Should Happen?
Telegram messages from allowed users should appear as <channel source="telegram" ...> in the conversation context.
Error Messages/Logs
Steps to Reproduce
- Install the Telegram plugin from the official Claude Code marketplace
- Configure bot token: /telegram:configure <token>
- Add your Telegram user ID to the allowlist in ~/.claude/channels/telegram/access.json
- Send a DM to the bot from the allowed Telegram account
- Observe that no <channel source="telegram"> tag appears in the Claude Code conversation
Verification (confirms the issue is on Claude Code side, not the plugin):
- strace on the bot process shows the notification IS sent: write(13, "{\"method\":\"notifications/claude/channel\"...", 214)
- ss -p confirms Claude Code process is connected to the bot via Unix socket
- The reply tool works correctly (outbound direction functional)
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.89
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗