$ show VikashLoomba/copilot-mcp
This is a VS Code extension that provides a unified interface for discovering, installing, and managing MCP (Model Context Protocol) servers and AI agent skills. It integrates with multiple sources: the Official MCP Registry, skills.sh, GitHub repositories, and CloudMCP (a hosted alternative). The extension offers a chat participant (`@mcp`) for natural-language search and install, and a sidebar webview with search and management tabs. It supports 30+ AI coding agents including GitHub Copilot, Claude Code, and Codex CLI. The architecture consists of a TypeScript extension backend (using esbuild for bundling) and a React 19 + Vite + Tailwind CSS + shadcn/ui frontend, communicating via typed RPC messages. Telemetry is collected anonymously with standardized error classification. The codebase is well-structured with clear separation of concerns, CI/CD pipelines, and unit tests.
The LLM identified 4 files worth highlighting for reuse:
Defines all RPC message types for communication between the VS Code extension backend and the webview frontend. Uses Zod schemas for runtime validation and TypeScript types for compile-time safety. This pattern ensures both sides of the communication channel are always in sync, preventing silent failures. It is reusable for any VS Code extension that needs a robust, typed messaging layer.
Handles installation of skills for different agents, supporting both symlink and copy fallback strategies. It manages canonical paths, global vs. project scope, and uninstallation. The logic is idempotent and includes safety checks to prevent path traversal. This module can be extracted and reused in any extension that needs to install files into agent-specific directories.
Provides a set of standardized telemetry utilities including event logging, error classification (rate_limit, auth, network, etc.), and performance timers. It wraps the VS Code telemetry API and adds consistent metadata. The error classification heuristic is extensible and can be reused across extensions to ensure uniform telemetry reporting.
Builds install payloads from registry metadata, normalizing server and package data from the Official MCP Registry API. It handles different installation targets (VS Code, Claude Code, Codex, CloudMCP) and constructs the appropriate configuration. This utility can be reused for any project that needs to integrate with the MCP Registry or similar external package registries.