vscode-copilot-telegram
You can use this MCP server to approve Copilot’s shell commands and exchange questions/status updates through Telegram.
Ask for approval before a shell command runs; the command executes only after you approve in VS Code or Telegram.
Deny a command, deny with a note, or block dangerous commands without asking.
Answer Copilot’s questions from Telegram using buttons or free-text replies, with a timeout fallback.
Receive one-way status notifications from Copilot on Telegram.
Return the command decision, exit code, and combined output to Copilot; unanswered approvals are treated as denied.
Provides tools for GitHub Copilot agent mode in VS Code to run shell commands only after Telegram approval, ask the user questions, and send status updates.
Connects Copilot agent mode to a Telegram bot for command approval requests, user questions, and status notifications, and receives button taps or typed replies from the authorized Telegram user.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vscode-copilot-telegram Run the test suite, but ask me on Telegram before executing anything"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vscode-copilot-telegram
Follow GitHub Copilot from Telegram, and approve its shell commands from your phone.
It has two small Python programs (Python 3.11 or newer, Windows, macOS and Linux):
Program | What it does |
| An MCP server that VS Code starts. It gives Copilot three tools: |
| You start it. It reads the chat files of VS Code and sends your prompts and Copilot's answers to Telegram. |
What you can do
Approve or deny each command Copilot wants to run. A command does not run until you approve it, in VS Code or on Telegram.
Answer questions from Copilot (
ask_user), in VS Code or on Telegram, with buttons or a typed reply.Step away from the computer. Copilot asks you in VS Code first. If you do not answer in 3 minutes, the same question goes to Telegram, so you can answer from your phone and Copilot continues.
Read the Copilot chat in Telegram (the watcher).
Block dangerous commands (like
rm -rf /orgit push --force) without asking.
Related MCP server: mcp-telegram-claudecode
How it works
Copilot calls
run_commandinstead of its built-in terminal.The server checks the command and shows you a form in VS Code: approve or deny, with an optional note.
If you do not answer in 3 minutes (
vscode_wait_s), the same question also goes to Telegram, with three buttons: Approve, Deny, Deny with note. The form in VS Code stays open.The first answer wins. Only on Approve the command runs. Copilot gets the exit code and the output.
ask_user works the same way for questions.
Copilot also has a built-in terminal. You cannot switch it off in the Copilot harness, so the instructions file tells Copilot to use run_command instead. See step 7 of SETUP.
Everything is outbound HTTPS to Telegram. You do not need open ports or a public URL.
flowchart LR
subgraph PC["Your computer"]
subgraph VSC["VS Code"]
CP["Copilot Chat<br/>(agent mode)"]
BT["Built-in terminal<br/>(turned off)"]
end
MCP["vscode-copilot-telegram<br/>MCP server"]
SH["Shell in the<br/>project folder"]
CS[("Chat files<br/>of VS Code")]
W["vscode-copilot-telegram-watch"]
end
TG["Telegram"]
PH["Your phone"]
CP -- "run_command / ask_user / notify" --> MCP
CP -. "not used" .-> BT
MCP -- "message + buttons" --> TG
TG -- "your taps and replies" --> MCP
MCP -- "only after Approve" --> SH
VSC -- "saves chat" --> CS
CS --> W
W -- "prompts and answers" --> TG
TG <--> PHQuick start
You need Python 3.11+, git, VS Code with GitHub Copilot (agent mode) and Telegram.
This is a short overview. Every step, with the commands for Windows and macOS, is in docs/SETUP.md.
Download and install the tool (do this once):
git clone https://github.com/weslylaboy/vscode-copilot-telegram.git cd vscode-copilot-telegram python3 -m venv .venv && source .venv/bin/activate # Windows: py -3 -m venv .venv; .\.venv\Scripts\Activate.ps1 pip install -e .Create a Telegram bot with @BotFather, and get your user id from @userinfobot.
Save the bot token and your user id in
~/.config/vscode-copilot-telegram/.env.Test the connection. Use the folder of your own project, the project you want Copilot to work on:
vscode-copilot-telegram --test --workspace /full/path/of/your/projectIn the project you want to get Telegram notification, add the file
.mcp.jsonwith the server.In VS Code, turn off the built-in terminal of Copilot. Add
.github/copilot-instructions.mdin your project, so Copilot usesrun_command.
Limits
Read these two before you use it:
Only shell commands are gated. Copilot edits files with its own tools, and those do not ask you on Telegram. Work on a git branch and check
git diff.The gate works only while the built-in terminal of Copilot is off.
Docs
File | What is inside |
Install and first approval, step by step | |
The chat mirror, and how to keep it running | |
Variables, TOML file, allow and block lists, flags | |
Common problems and fixes | |
What is protected and what is not | |
Modules, request flow, design decisions | |
Tests, CI, manual checklist, roadmap | |
How we write the docs | |
Release notes |
License
MIT. See LICENSE.
Available Tools
3 toolsask_userA
Ask the user a question on Telegram and wait for the answer.
Returns the user's answer text, or the string 'timeout' if they did not answer in time.
Inputs: question (required), options, timeout_s. Returns: result
notifyA
Send a one-way status message to the user's Telegram (does not wait for a reply).
Inputs: message (required). Returns: result
run_commandA
Run a shell command in the workspace after the user approves it on Telegram.
Returns decision (approved, auto-approved, denied, denied-timeout, denied-error, blocked, rejected), exit_code (null if not run), and output (combined stdout/stderr, truncated). If denied, the command did not run: do not retry it in another form; adjust your plan or ask_user.
Inputs: reason (required), command (required), cwd, timeout_s. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: ask_user waits for a reply, notify sends one-way, and run_command executes with approval. There is no meaningful overlap between them.
ask_user and run_command follow a clear verb_noun pattern, but notify is a bare verb. The deviation is minor and the names remain readable.
Three tools is well-scoped for a narrow Telegram-mediated interaction layer. Each tool earns its place without redundancy.
The surface covers the core lifecycle: one-way notification, interactive questions, and approved command execution. Minor gaps exist, such as no way to send richer interactive messages or update prior messages, but core workflows are covered.
Maintenance
Related MCP Connectors
Give your AI assistant its own private email. Create mailboxes in seconds, send and schedule messages, and let the agent wait for incoming emails to pick up verification codes and confirmation links — without exposing your personal address. Works with Claude, ChatGPT, Cursor and VS Code: just sign in with your GhosterMail account. Requires GhosterMail Full Access.
LinkedIn MCP server for ChatGPT, Claude and any AI agent: create post, comment on post, send message, send connection invitation, search people, search companies, list connections and read conversations in your own LinkedIn account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to LinkedIn yourself; Cotlet does not store your password and you need no LinkedIn API key. About the official LinkedIn API: LinkedIn has an official API, but most of it needs an approved application (checked 6 Nov 2026). The open Share on LinkedIn permission lets an app post, comment and like on behalf of a member. Setup and FAQ: https://cotlet.dev/integrations/linkedin-api-mcp-server
Teachable MCP server for ChatGPT, Claude and any AI agent: update lecture, create coupon, send email, reply to comment and list enrollments in your own Teachable account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Teachable yourself; Cotlet does not store your password and you need no Teachable API key. About the official Teachable API: Teachable has a public API, but only on the Growth plan and up, and it reads courses and lecture content and manages users, enrollments, pricing plans and transactions (checked 11 Oct 2026). Lesson editing, coupons, emails to students and comments are not in it. Setup and FAQ: https://cotlet.dev/integrations/teachable-api-mcp-server
Connecteam MCP server for ChatGPT, Claude and any AI agent: list timesheets, approve timesheet, copy previous week, publish shifts, list time off requests, approve time off request, create task and send message in your own Connecteam account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Connecteam yourself; Cotlet does not store your password and you need no Connecteam API key. About the official Connecteam API: Connecteam has a REST API with read and write endpoints, but only on the Expert plan or higher, and its official MCP server only looks up API endpoints and cannot act on your account (checked 20 Oct 2026). Basic and Advanced plans get no API. Setup and FAQ: https://cotlet.dev/integrations/connecteam-api-mcp-server
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects 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.MIT
- AlicenseAqualityDmaintenanceEnables Claude Code to send and receive messages via Telegram for remote interaction and approval of sensitive operations.8266 npm8MIT
- FlicenseNot gradedqualityNot gradedmaintenanceIntegrates Kiro IDE with Telegram to send notifications and request interactive confirmations via inline keyboard buttons.-
- AlicenseAqualityDmaintenanceEnables bidirectional communication between AI coding assistants and Telegram, allowing interactive confirmations via inline buttons, media and screenshot ingestion, and on-demand message polling without a background daemon.6MIT