Skip to content

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@thxmxx/telegram-mcp

Telegram bridge for Claude Code. While Claude runs tasks on your machine, it notifies you, asks questions and shows option buttons — on your phone and on the terminal simultaneously. Whichever you answer first wins.

Install (one-time, global)

npx @thxmxx/telegram-mcp init

The wizard asks for your Telegram bot token and user ID, registers the MCP server globally in Claude Code, and installs the /use-telegram slash command. You never need to run this again.

Usage

Start Claude Code without permission prompts so it can work autonomously:

claude --dangerously-skip-permissions

⚠️ This flag disables all tool confirmation prompts — file writes, shell commands, everything. Use only on your own machine for personal workflows.

Then activate Telegram in any session:

/use-telegram

Or just mention it naturally in your prompt:

Refactor the auth module and notify me on Telegram when done.
Deploy to staging — ask me on Telegram if anything is unclear.

Modes

/use-telegram            Full mode — notify + ask + choose
/use-telegram notify     Notifications only, no questions

Combining with other slash commands

Slash commands are independent and composable:

/deploy staging
/use-telegram notify

How it works

Claude Code runs a task
    ↓ calls telegram_choose("Which DB?", ["PostgreSQL", "MySQL", "SQLite"])
You get buttons on Telegram AND a numbered list on the terminal
    ↓ you tap PostgreSQL on your phone (or type 1 in the terminal)
Claude receives "PostgreSQL" and continues

Every message is tagged with an auto-generated instance label like [backend#a3f2] or [frontend#9c11] — so when you have multiple Claude Code sessions open you always know which one is talking.

If you answer from the terminal, Telegram confirms it:

[backend#a3f2] ✅ PostgreSQL (via terminal)

Tools Claude gains

Tool Description
telegram_notify Send a progress update. No reply needed.
telegram_ask Ask a free-form question. Waits for reply.
telegram_choose Show option buttons. Waits for a tap.

Updating

npx @thxmxx/telegram-mcp@latest init

Re-runs the setup with the latest version — updates the MCP server and the /use-telegram slash command automatically.

Requirements

Permissions

On first use, Claude Code will ask you to approve the three tools this MCP server registers (telegram_notify, telegram_ask, telegram_choose). This is standard Claude Code behaviour — you can review exactly what is being granted before accepting.

Always-on per project

To activate Telegram automatically every time you open Claude Code in a project, add to your CLAUDE.md:

## Communication

Always use /use-telegram in this session.

Per project — inside the repo (can be committed and shared with the team):

/your-project/CLAUDE.md

Global — applies to every project on your machine:

~/.claude/CLAUDE.md

Security

  • The MCP server only accepts responses from your configured Telegram user ID
  • Credentials are stored in ~/.claude.json by Claude Code — never in this repo
  • If your token is ever exposed, revoke it immediately via @BotFather /revoke then re-run init

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages