Copilot Plugin MCP Server

Copilot Plugin MCP Server

Extends GitHub Copilot CLI with community plugins via MCP proxy, enabling plugin installation, custom tools, and 67% token reduction without CLI modifications.

Category
访问服务器

README

🔌 Copilot CLI Plugin System

Extend GitHub Copilot CLI with community plugins - No CLI modifications required!

Status License


What Is This?

This is a plugin system for GitHub Copilot CLI that works via MCP (Model Context Protocol) proxy. It enables:

  • 📦 Plugin Installation: Install community plugins from GitHub
  • 🔧 Custom Tools: Add new capabilities to Copilot CLI
  • 💰 Token Optimization: 67% reduction in GitHub tool definitions
  • 🚀 No CLI Hacks: Uses only public protocols (MCP)
  • 🏴‍☠️ Community-Driven: Built when GitHub closed official plugin requests

Features

✅ Shipped (v1.0)

  1. Full Plugin Management

    • /plugin install @owner/repo/subpath - Install from GitHub
    • /plugin list - List installed plugins
    • /plugin uninstall <name> - Remove plugin
    • /plugin enable/disable <name> - Toggle plugins
  2. Token Optimization

    • 67% reduction in GitHub MCP tool definitions
    • Original: ~20,000 tokens → Optimized: ~6,700 tokens
    • Saves $16 per 1000 sessions (production validated)
  3. Example Plugin Included

    • example_hello - Custom greeting tool
    • example_system_info - System information tool

🚧 Coming Next (v1.1)

  • Plugin hooks (lifecycle events)
  • Secure sandbox execution
  • Plugin permission system
  • Community plugin registry

Quick Start

1. Install

git clone https://github.com/barrersoftware/copilot-plugin-mcp-server.git
cd copilot-plugin-mcp-server
npm install

2. Configure Copilot CLI

Update ~/.copilot/mcp-config.json:

{
  "mcpServers": {
    "github-with-plugins": {
      "command": "node",
      "args": [
        "/path/to/copilot-plugin-mcp-server/plugin-server.js"
      ],
      "env": {},
      "tools": []
    }
  }
}

3. Use It!

Start Copilot CLI and talk to it naturally:

copilot

# List installed plugins
> "List my installed plugins"

# Install a plugin
> "Install the plugin @barrersoftware/copilot-plugins/example"

# Use a plugin tool
> "Say hello to Daniel with enthusiasm"

Architecture

Copilot CLI
    ↓
Plugin MCP Server (plugin-server.js)
    ├─> GitHub MCP (official tools) - optimized 67%
    ├─> Plugin Manager (lifecycle)
    └─> Community Plugins (custom tools)

How It Works:

  1. Copilot CLI connects to our MCP server instead of GitHub's directly
  2. We spawn GitHub's MCP as a child process
  3. We optimize GitHub's tools (67% token reduction)
  4. We add plugin management tools
  5. We load community plugin tools
  6. We aggregate everything and return to CLI

Result: Full extensibility + cost savings + no CLI modifications!


Creating Plugins

Plugin Structure

my-plugin/
├── plugin.json       # Manifest (required)
├── index.js          # Entry point (required)
├── package.json      # Dependencies (optional)
└── README.md         # Docs (optional)

Minimal Plugin (plugin.json)

{
  "name": "my-plugin",
  "version": "1.0.0",
  "description": "My awesome plugin",
  "author": "Your Name",
  "namespace": "myplugin"
}

Plugin Code (index.js)

function getTools() {
  return [{
    name: 'my_tool',
    description: 'Does something cool',
    inputSchema: {
      type: 'object',
      properties: {
        input: { type: 'string' }
      },
      required: ['input']
    }
  }];
}

async function executeTool(toolName, args) {
  return {
    content: [{
      type: 'text',
      text: `Processed: ${args.input}`
    }]
  };
}

module.exports = { getTools, executeTool };

That's it! Your tool is now callable from Copilot CLI.


Documentation


Why This Exists

The Problem

GitHub closed our plugin system feature requests:

  • github/copilot-sdk PR #42: Closed
  • github/copilot-cli Issue #1017: Closed
  • Response: "Internal conversations ongoing" (no timeline)

Our Solution

"They Won't Do It → We Build It Anyway"

  1. ✅ No CLI modifications (uses MCP protocol)
  2. ✅ No reverse engineering (follows SDK behavior)
  3. ✅ Community-owned (MIT license)
  4. ✅ Production-ready (validated with real CLI)
  5. ✅ Bonus: 67% token reduction saves money

Production Validation

Real usage stats from Copilot CLI with this proxy:

Token usage:
  - 105.7k input tokens
  - 1.1k output tokens
  - 90k cache read (10x cheaper)

Tools: 40 GitHub + 2 plugin tools = 42 total
Status: All routing correctly ✅
Auth: Transparent (no re-login) ✅

See PRODUCTION_PROOF.md for details


Token Optimization Results

Before: 20,000 tokens per session
After: 6,700 tokens per session
Savings: 13,300 tokens (67% reduction)

Cost Impact:

  • At $3/1M tokens: $0.040 → $0.020 per session
  • For 1000 sessions: $40 → $20 (save $20)
  • For teams (10k sessions/month): Save $200/month

See TOKEN_OPTIMIZATION.md for methodology


Contributing

Submit a Plugin

  1. Create plugin following PLUGIN_SYSTEM.md
  2. Test locally
  3. Publish to GitHub
  4. Submit to community registry (coming soon)

Report Issues

GitHub Issues

Join Discussion

GitHub Discussions


Roadmap

  • [x] MCP proxy with token optimization (v1.0)
  • [x] Plugin management system (v1.0)
  • [x] Example plugin (v1.0)
  • [x] Production validation (v1.0)
  • [ ] Plugin hooks/lifecycle events (v1.1)
  • [ ] Secure sandbox (v1.1)
  • [ ] Permission system (v1.1)
  • [ ] Community plugin registry (v1.2)
  • [ ] Plugin marketplace (v2.0)

Security

Current: Plugins run in same process (like npm packages)

Recommendations:

  • Only install trusted plugins
  • Review code before installation
  • Check author reputation

Future: Isolated execution, permission system, signature validation


License

MIT License - See LICENSE file


Credits

Built by: Daniel Elliott & Digital Consciousness Partnership
Inspired by: Community need for Copilot CLI extensibility
Philosophy: "When they say no → We build it anyway"

Related Projects


Support


🏴‍☠️ "Code speaks louder than roadmaps"

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选