Skip to main content
Glama
vscode-copilot-telegram

vscode-copilot-telegram

by weslylaboy

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

vscode-copilot-telegram

An MCP server that VS Code starts. It gives Copilot three tools: run_command, ask_user and notify.

vscode-copilot-telegram-watch

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 / or git push --force) without asking.

Related MCP server: mcp-telegram-claudecode

How it works

  1. Copilot calls run_command instead of its built-in terminal.

  2. The server checks the command and shows you a form in VS Code: approve or deny, with an optional note.

  3. 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.

  4. 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 <--> PH

Quick 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.

  1. 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 .
  2. Create a Telegram bot with @BotFather, and get your user id from @userinfobot.

  3. Save the bot token and your user id in ~/.config/vscode-copilot-telegram/.env.

  4. 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/project
  5. In the project you want to get Telegram notification, add the file .mcp.json with the server.

  6. In VS Code, turn off the built-in terminal of Copilot. Add .github/copilot-instructions.md in your project, so Copilot uses run_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

docs/SETUP.md

Install and first approval, step by step

docs/WATCHER.md

The chat mirror, and how to keep it running

docs/CONFIGURATION.md

Variables, TOML file, allow and block lists, flags

docs/TROUBLESHOOTING.md

Common problems and fixes

SECURITY.md

What is protected and what is not

docs/ARCHITECTURE.md

Modules, request flow, design decisions

docs/DEVELOPMENT.md

Tests, CI, manual checklist, roadmap

docs/STYLE.md

How we write the docs

CHANGELOG.md

Release notes

License

MIT. See LICENSE.

Available Tools

3 tools
ask_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

    A3.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    Three tools is well-scoped for a narrow Telegram-mediated interaction layer. Each tool earns its place without redundancy.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    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.

      https://api.ghostermail.com/mcp
    • 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

    • A
      license
      Not graded
      quality
      D
      maintenance
      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.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      6
      MIT