XC

x51xxx/copilot-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

5 stars 4 forks 质量 71 趋势 13MIT

MCP server for GitHub Copilot CLI integration

概览

is an open‑source Model Context Protocol (MCP) server that connects your IDE or AI assistant (Claude, Cursor, etc.) to . It enables non‑interactive automation, safe tool execution with permissions, and large‑scale code analysis via @ file references. Built for reliability and speed, it streams progress updates, and integrates cleanly with standard MCP clients for code review, refactoring, documentation, and CI automation. - : Ask GitHub Copilot CLI questions from your MCP client, with comprehensive tool management - : Batch processing, code review, and brainstorming capabilities : Use GitHub Copilot CLI directly from your MCP-enabled editor to analyze and edit code efficiently. Before using this tool, ensure you have: Type /mcp inside Claude Code to verify the Copilot MCP is active. If you already have it configured in Claude Desktop: Register the MCP server with your MCP client: Add this configuration to your Claude Desktop config file:

README

以下为原文 README 节选,完整内容请查看原文。

Copilot MCP Tool

Copilot MCP Tool is an open‑source Model Context Protocol (MCP) server that connects your IDE or AI assistant (Claude, Cursor, etc.) to GitHub Copilot CLI. It enables non‑interactive automation, safe tool execution with permissions, and large‑scale code analysis via @ file references. Built for reliability and speed, it streams progress updates, and integrates cleanly with standard MCP clients for code review, refactoring, documentation, and CI automation.

  • Primary: Ask GitHub Copilot CLI questions from your MCP client, with comprehensive tool management
  • Advanced: Batch processing, code review, and brainstorming capabilities

TLDR: + GitHub Copilot CLI

Goal: Use GitHub Copilot CLI directly from your MCP-enabled editor to analyze and edit code efficiently.

Prerequisites

Before using this tool, ensure you have:

  1. Node.js (v18.0.0 or higher)
  2. GitHub Copilot CLI - Required

One-Line Setup

claude mcp add copilot-cli -- npx -y @trishchuk/copilot-mcp-server

Verify Installation

Type /mcp inside Claude Code to verify the Copilot MCP is active.


Alternative: Import from Claude Desktop

If you already have it configured in Claude Desktop:

  1. Add to your Claude Desktop config:
"copilot-cli": {
  "command": "npx",
  "args": ["-y", "@trishchuk/copilot-mcp-server"]
}
  1. Import to Claude Code:
claude mcp add-from-claude-desktop

Configuration

Register the MCP server with your MCP client:

Add this configuration to your Claude Desktop config file:

{
  "mcpServers": {
    "copilot-cli": {
      "command": "npx",
      "args": ["-y", "@trishchuk/copilot-mcp-server"],
      "env": {
        "COPILOT_MODEL": "claude-sonnet-4.5"
      }
    }
  }
}

For Global Installation

If you installed globally, use this configuration instead:

{
在 GitHub 查看完整 README

安装

npx -y @trishchuk/copilot-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "copilot-cli": { "command": "npx", "args": ["-y", "@trishchuk/copilot-mcp-server"], "env": { "COPILOT_MODEL": "claude-sonnet-4.5" } } } }