Telegram Notify Server
FreeNot checkedConnects VS Code Copilot to Telegram for mobile notifications, interactive approval workflows, and remote command input. Enables users to monitor AI agents, app
About
Connects VS Code Copilot to Telegram for mobile notifications, interactive approval workflows, and remote command input. Enables users to monitor AI agents, approve sensitive operations, and provide follow-up instructions from their smartphone.
README
Control GitHub Copilot CLI remotely from Telegram. Send prompts, manage sessions, and approve tool calls — all from your smartphone.
Architecture
📱 Telegram
↕ (Bot API long-polling)
🐍 telegram-copilot-bridge
↕ (stdin/stdout NDJSON — ACP)
🤖 copilot --acp --stdio
Features
- Remote Prompting — Send Copilot prompts from Telegram, receive results on your phone
- Multi-Session — Run multiple Copilot sessions in parallel, switch between them
- Tool Approval — Approve or deny Copilot's tool calls via inline buttons
- Autopilot Mode — Auto-approve all tool calls for hands-free operation
- Session History — Resume past Copilot sessions with one tap
- Folder Picker —
/newshows inline buttons for project directories
Installation
git clone https://github.com/NobufumiMurata/telegram-copilot-bridge.git
cd telegram-copilot-bridge
pip install -e .
Prerequisites: Install Copilot CLI and authenticate:
winget install GitHub.Copilot # or: npm install -g @github/copilot
copilot # then /login to authenticate
Setup
1. Create a Telegram Bot
- Open Telegram and message @BotFather
- Send
/newbotand follow the prompts - Copy the bot token
2. Get Your Chat ID and User ID
Send any message to your bot, then:
curl "https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates"
From the response, note:
"chat": {"id": ...}→ your Chat ID"from": {"id": ...}→ your User ID (for the allowlist)
3. Configure
Copy the example file and fill in your values:
cp .env.example .env
# .env
TELEGRAM_BOT_TOKEN=1234567890:AAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
TELEGRAM_CHAT_ID=-100000000000
TELEGRAM_ALLOWED_USERS=123456789
# Default AI model
COPILOT_MODEL=claude-opus-4.6
# Root folder for /dirs and /new folder picker
COPILOT_DIRS_ROOT=/home/user/projects
The .env file is loaded automatically on startup (from the current directory).
Use TELEGRAM_ENV_FILE=/path/to/.env to point to a different location.
Environment variables set in the shell always take priority over .env.
Usage
# Start (reads .env automatically)
python -m telegram_copilot_bridge
# With options
python -m telegram_copilot_bridge \
--cwd /path/to/project \
--model claude-opus-4.6 \
--timeout 120 \
-v
CLI options:
| Flag | Description | Default |
|---|---|---|
--cwd <dir> |
Default working directory for sessions | current dir |
--model <name> |
AI model (e.g. claude-opus-4.6) |
claude-opus-4.6 |
--timeout <min> |
Auto-shutdown in minutes (0 = no timeout) | 0 |
--autopilot |
Auto-approve all tool calls | off (manual approval via Telegram) |
-v, --verbose |
Enable debug logging | off |
Telegram Commands
| Command | Action |
|---|---|
/new [dir] |
Start a new Copilot session (shows folder picker if COPILOT_DIRS_ROOT is set) |
/history [n] |
List past CLI sessions (default: 3) |
/resume <id> |
Resume a past session |
/dirs [dir] |
Browse directories |
/model [name] |
Show/set AI model |
/mode |
Toggle autopilot/manual approval |
/list |
List active sessions |
/switch <id> |
Switch active session |
/status |
Session status |
/stop [id] |
Stop a session |
/done |
Stop all sessions & exit |
/help |
Show commands |
| (any text) | Send as prompt to active session |
Environment Variables
All variables can be set in .env or in the shell. Shell values take priority.
Telegram:
| Variable | Description | Default |
|---|---|---|
TELEGRAM_BOT_TOKEN |
Bot API token | (required) |
TELEGRAM_CHAT_ID |
Target chat ID | (required) |
TELEGRAM_ALLOWED_USERS |
Comma-separated allowed user IDs | (allow all) |
TELEGRAM_ENV_FILE |
Path to the .env file |
.env in CWD |
TELEGRAM_CONFIG_PATH |
JSON credential file (fallback) | — |
Copilot:
| Variable | Description | Default |
|---|---|---|
COPILOT_CLI_PATH |
Path to copilot executable | copilot (from PATH) |
COPILOT_MODEL |
Default AI model | claude-opus-4.6 |
COPILOT_AUTOPILOT |
Auto-approve tool calls (true/false) |
false |
COPILOT_DIRS_ROOT |
Root directory for /dirs and /new folder picker |
(uses --cwd) |
COPILOT_ALLOWED_DIRS |
Comma-separated allowed working dirs | (any) |
COPILOT_ALLOWED_TOOLS |
Comma-separated tools to allow | shell(git),read,write |
COPILOT_PERMISSION_TIMEOUT_SECONDS |
Permission approval timeout (seconds) | 300 (5 min) |
HUB_LOCK_PORT |
TCP port for singleton lock | 47732 |
Security
- User allowlist: Only messages from
TELEGRAM_ALLOWED_USERSare accepted. All other users are silently ignored. - Timeouts: Configurable auto-shutdown timeout (default: no timeout). Permission requests timeout after 5 minutes (configurable via
COPILOT_PERMISSION_TIMEOUT_SECONDS). - No secrets in repo: All credentials via
.envfile or environment variables. - Tool allowlist: Uses
--allow-tool(not--allow-all-tools) to restrict what Copilot CLI can do. - Directory restrictions: Restrict which directories Copilot sessions can operate in via
COPILOT_ALLOWED_DIRS. - Singleton lock: Only one instance can run per machine (TCP port lock).
Limitations
- VS Code local runs are not observable — There is no way to retrieve what Copilot is doing inside VS Code. MCP tools are one-way calls from VS Code → Bridge only.
- Status of CLI sessions started outside the Bridge is unavailable — If you launch
copilotdirectly on the server, real-time execution status cannot be tracked. The Activity display in/status(estimated fromevents.jsonlmodification time) is the only alternative. - Tool approval requests from CLI sessions started outside the Bridge cannot be relayed — Only sessions launched via the Hub can relay tool approval requests through Telegram inline buttons.
- Single-instance restriction — Only one Hub process per machine (TCP port lock).
- Telegram message length limit — Responses exceeding 4000 characters are split automatically.
License
MIT
Installing Telegram Notify Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/NobufumiMurata/telegram-copilot-bridgeFAQ
Is Telegram Notify Server MCP free?
Yes, Telegram Notify Server MCP is free — one-click install via Unyly at no cost.
Does Telegram Notify Server need an API key?
No, Telegram Notify Server runs without API keys or environment variables.
Is Telegram Notify Server hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Telegram Notify Server in Claude Desktop, Claude Code or Cursor?
Open Telegram Notify Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Gmail
Read, send and search emails from Claude
by GoogleSlack
Send, search and summarize Slack messages
by SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Klavis AI
Open Source MCP Infra. Hosted MCP servers and MCP clients on Slack and Discord.
Work90210/APIFold
Turn any REST API into a hosted MCP server. 18 free public servers (GitHub, Stripe, Slack, OpenAI, Notion, and more) — no setup required, bring your own API key
by Work90210arikusi/deepseek-mcp-server
MCP server for DeepSeek AI with chat, reasoning, multi-turn sessions, function calling, thinking mode, and cost tracking.
by arikusihashgraph-online/hashnet-mcp-js
MCP server for the Registry Broker. Discover, register, and chat with AI agents on the Hashgraph network.
by hashgraph-onlineprofullstack/mcp-server
A comprehensive MCP server aggregating 20+ tools including SEO optimization, document conversion, domain lookup, email validation, QR generation, weather data,
by profullstackWayStation-ai/mcp
Seamlessly and securely connect Claude Desktop and other MCP hosts to your favorite apps (Notion, Slack, Monday, Airtable, etc.). Takes less than 90 secs.
by waystation-aiCompare Telegram Notify Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All communication MCPs
