Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Copilot Cowork

БесплатноНе проверен

Bridges GitHub Copilot CLI with Microsoft 365 Copilot for terminal-based M365 access.

GitHubEmbed

Описание

Bridges GitHub Copilot CLI with Microsoft 365 Copilot for terminal-based M365 access.

README

An MCP server that connects GitHub Copilot CLI to Microsoft 365 Copilot (Cowork).

Ask questions about your emails, calendar, Teams messages, meetings, documents, contacts, and org data — all from the terminal. Send Teams messages (with image attachments), emails (with attachments), and perform other actions too.

Requirements

Quick Start

  1. Clone and install dependencies

    git clone https://github.com/msartem/copilot_cowork_mcp.git
    cd copilot_cowork_mcp
    pip install -r requirements.txt
    
  2. Launch Copilot CLI from the repo directory

    copilot
    

    The .mcp.json in the repo auto-configures the MCP server.

  3. Sign in (first time only)

    Copilot will automatically call cowork_sign_in when needed. An Edge browser window opens — sign in with your Microsoft 365 account. The auth code is captured automatically via Playwright (no manual copy-paste).

  4. Try it out

    Summarize my unread emails from today
    What meetings do I have tomorrow?
    Send a Teams message to myself saying hello from CLI
    Send an email to John saying the report is ready
    Send this image to my Teams DM: ./screenshot.png
    

After first sign-in, auth is silent via cached refresh tokens (~90 day lifetime, auto-renewing). No browser window on subsequent uses.

Alternative: Plugin Install

If you prefer the Copilot CLI plugin system (works from any directory):

# Install the plugin (clones repo + registers MCP server)
/plugin install msartem/copilot_cowork_mcp

# Still need to install Python dependencies from the cloned location
pip install -r ~/.copilot/installed-plugins/copilot_cowork_mcp/requirements.txt

Note: Since this is a Python project, both approaches require git clone + pip install. The plugin approach manages the clone and MCP config for you, so the server is available globally instead of only from the repo directory.

How It Works

  1. You ask Copilot CLI a question about your M365 data
  2. Copilot routes it to the cowork_send_message tool
  3. The MCP server forwards it to Microsoft 365 Copilot
  4. The response streams back to your terminal

For actions (send message, send email, etc.), cowork_send_message returns the action details for review, then cowork_action_approve executes it. This gives you a chance to confirm before anything is sent.

You → Copilot CLI → cowork MCP → M365 Copilot → your M365 data

Tools

Tool Description
cowork_sign_in Sign in to Microsoft 365 (opens Edge, one-time)
cowork_send_message Send a message to M365 Copilot (multi-turn)
cowork_send_image Send an image (with optional text) to M365 Copilot — for Teams messages or email attachments
cowork_action_approve Approve and execute a pending action (send email, Teams message, etc.)
cowork_new_session Start a fresh conversation
cowork_session_info Show session state (user, runtime, turn count)

Authentication

Authentication uses Playwright to automate browser sign-in via Microsoft Edge. This works identically on macOS, Linux, and Windows — no platform-specific code.

First sign-in

  1. Copilot calls cowork_sign_in (or you trigger it manually)
  2. An Edge window opens to the Microsoft sign-in page
  3. Sign in with your M365 account (SSO may auto-complete this)
  4. The auth code is captured automatically — the browser closes
  5. Tokens are cached locally

Subsequent runs

Cached refresh tokens are used — no browser window, no interaction needed. Tokens auto-refresh in the background every 45 minutes.

Browser selection

Playwright uses Microsoft Edge by default. To use a different Chromium-based browser:

export COWORK_BROWSER=chrome    # or: msedge (default), chromium

Note: chromium requires playwright install chromium. Edge and Chrome use your installed browser directly — no extra install needed.

Manual auth

python auth.py          # Interactive sign-in
python auth.py logout   # Clear cached tokens

Token storage

Platform Cache location
macOS / Linux ~/.copilot-cowork-mcp/token_cache.json
Windows %LOCALAPPDATA%\copilot-cowork-mcp\token_cache.json

Environment Variables

Variable Description
COWORK_TOKEN Manual JWT override (skips browser auth)
COWORK_TENANT Azure AD tenant ID (default: common)
COWORK_BROWSER Browser for sign-in: msedge, chrome, chromium
COWORK_SHOW_THINKING Show Cowork's reasoning in action responses (default: false)

Technical Details

See TECHNICAL.md for details on authentication, communication protocol, SSE events, and action approval flow.

Disclaimer

This is an independent community project — not affiliated with or supported by Microsoft.

It works by communicating with the same undocumented web APIs that power the M365 Copilot web app. These APIs may change or break without notice. Use at your own risk.

from github.com/artlovan/copilot_cowork_mcp

Установка Copilot Cowork

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/artlovan/copilot_cowork_mcp

FAQ

Copilot Cowork MCP бесплатный?

Да, Copilot Cowork MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Copilot Cowork?

Нет, Copilot Cowork работает без API-ключей и переменных окружения.

Copilot Cowork — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Copilot Cowork в Claude Desktop, Claude Code или Cursor?

Открой Copilot Cowork на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Copilot Cowork with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development