A lightweight VS Code extension and Model Context Protocol (MCP) server that exposes GitHub Copilot language models (via the official vscode.lm API) to autonomous AI agents, multi-agent frameworks, and command-line tools — with automatic Markdown logging and history indexing.
- Multi-Agent Collaboration: Allow external agents (such as Google Antigravity, Claude Desktop, Cursor, or custom subagents) to delegate tasks to GitHub Copilot as a specialized subagent.
- Cross-Model Validation: Use Copilot for code review, refactoring, edge-case analysis, and unit test generation alongside your primary agent.
- 100% Official & Native: Built on VS Code's official Language Model API (
vscode.lm). No unofficial reverse-engineered API tokens or Terms of Service violations. - Dual-Mode MCP Transport: Connect either directly via local HTTP/SSE (
http://127.0.0.1:9595/sse) or via the zero-latency Stdio Proxy bridge. - Full Traceability: Every interaction and delegated task is automatically logged to
.copilot-mcp/logs/with an interactive summary index in.copilot-mcp/HISTORY.md.
┌────────────────────────────────────────────────────────────────────────┐
│ VS Code / VS Code Insiders │
│ │
│ ┌────────────────────────┐ ┌─────────────────────────────┐ │
│ │ GitHub Copilot │ │ copilot-mcp-bridge │ │
│ │ (Claude 3.5, GPT-4o, │ vscode.lm │ (VS Code Extension) │ │
│ │ o1, Auto, etc.) │◄──────────┤ - McpServer (@modelcontext) │ │
│ └────────────────────────┘ │ - Local SSE Server (:9595) │ │
│ │ - Automated Markdown Logger │ │
│ └──────────────▲──────────────┘ │
└──────────────────────────────────────────────────────┼─────────────────┘
│ SSE / HTTP / Stdio
▼
┌─────────────────────────────┐
│ MCP Client │
│ (Antigravity, Claude, │
│ Cursor, Terminal CLI) │
└─────────────────────────────┘
- VS Code or VS Code Insiders (v1.90.0 or later).
- GitHub Copilot and GitHub Copilot Chat extensions installed and authenticated.
- Node.js (v18 or later).
Clone the repository and link it to your VS Code extensions folder:
git clone https://github.com/DevGiov/copilot-mcp-bridge.git
cd copilot-mcp-bridge
# Install dependencies and build TypeScript
npm install
npm run build
# Link to VS Code (or ~/.vscode-insiders/extensions for Insiders)
ln -sfn "$(pwd)" ~/.vscode/extensions/copilot-mcp-bridge
# Or for VS Code Insiders:
# ln -sfn "$(pwd)" ~/.vscode-insiders/extensions/copilot-mcp-bridgeIn VS Code, open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P), and run:
Developer: Reload Window
Once reloaded, you will see $(hubot) Copilot MCP :9595 in the bottom right of the status bar.
Note
One-Time Permission Prompt: The first time an MCP client makes a request to Copilot, VS Code will display a notification: "Extension Copilot MCP Bridge wants to access language model... [Allow / Don't Allow]". Click Allow once to grant permanent access.
Sends an instruction, task, or question to GitHub Copilot, captures the response, and automatically records the log in Markdown.
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt |
string |
Yes | The prompt, instruction, or task description. |
model |
string |
No | Model identifier or family (e.g. 'auto', 'gpt-4o-mini'). Default: best available. |
system_prompt |
string |
No | System prompt / persona instructions. |
task_name |
string |
No | Short name used for the generated Markdown log file. |
include_active_file |
boolean |
No | If true, automatically attaches active file path, selection, or editor content. |
Lists all language models provided by your GitHub Copilot subscription in VS Code (with IDs, families, and context token limits).
Returns real-time editor state from the active VS Code window:
- Active file path
- Selected text (if any)
- Cursor position
- Diagnostics and linter problems (warnings/errors)
Every conversation or delegated task is saved automatically to the workspace:
- Detailed Task Log:
.copilot-mcp/logs/YYYY-MM-DD_HH-mm-ss_<task_name>.md- Includes timestamp, model used, active file, system prompt, full prompt, and response.
- History Index:
.copilot-mcp/HISTORY.md- A persistent, chronological table linking to each individual log file for easy review.
A standalone CLI script is included in bin/copilot-cli.js:
# List available Copilot models
./bin/copilot-cli.js -l
# Send a prompt
./bin/copilot-cli.js "Explain closures in JavaScript in 2 bullet points"
# Delegate a task with a system prompt and custom task name
./bin/copilot-cli.js -t "auth_review" -s "You are a senior security engineer." "Review the auth middleware in src/auth.ts"
# Include active VS Code editor file automatically
./bin/copilot-cli.js -f -t "write_unit_tests" "Write unit tests for this file"Add the server to ~/.gemini/antigravity/mcp_config.json:
{
"mcpServers": {
"copilot": {
"command": "node",
"args": [
"/path/to/copilot-mcp-bridge/bin/mcp-stdio-proxy.js"
],
"env": {
"COPILOT_MCP_PORT": "9595"
}
}
}
}{
"mcpServers": {
"copilot": {
"command": "node",
"args": [
"/path/to/copilot-mcp-bridge/bin/mcp-stdio-proxy.js"
],
"env": {
"COPILOT_MCP_PORT": "9595"
}
}
}
}Any MCP client supporting SSE can connect directly to:
http://127.0.0.1:9595/sse
# Build TypeScript
npm run build
# Watch mode
npm run watch
# Run Stdio Proxy directly
node bin/mcp-stdio-proxy.jsMIT License © 2026 DevGiov