MCP ExplorerExplorer

Mcp Server Vscode Extensions

@siliconuyon a year ago
2 MIT
FreeCommunity
AI Systems
MCP tool for automatically installing VS Code extensions in Cursor

Overview

What is Mcp Server Vscode Extensions

mcp-server-vscode-extensions is a Model Context Protocol (MCP) server designed for automatically installing Visual Studio Code extensions within the Cursor IDE.

Use cases

Use cases include searching for and installing specific VS Code extensions based on user-defined queries, streamlining the setup of development environments, and ensuring that developers have access to the most relevant and highly-rated extensions for their projects.

How to use

To use mcp-server-vscode-extensions, first install it via npm. Start the MCP server using ‘npm start’. Then, you can search for extensions using natural language queries and install specific extensions by calling the appropriate API methods.

Key features

Key features include natural language search for VS Code extensions, smart ranking based on installs and ratings, automatic downloading and installation of extensions from the official marketplace, proper handling of gzipped VSIX files, validation of downloaded extensions before installation, and installation to the correct Cursor extensions directory.

Where to use

mcp-server-vscode-extensions is primarily used in software development environments, particularly for developers using the Cursor IDE who need to manage and install VS Code extensions efficiently.

Content

MCP Server: VS Code Extensions Installer

A Model Context Protocol (MCP) server for automatically installing VS Code extensions in Cursor IDE.

Features

  • Natural language search for VS Code extensions
  • Smart ranking based on installs and ratings
  • Automatically downloads and installs VS Code extensions from the official marketplace
  • Handles gzipped VSIX files correctly
  • Validates downloaded extensions before installation
  • Installs extensions to the correct Cursor extensions directory

Installation

npm install mcp-server-vscode-extensions

Usage

  1. Start the MCP server:
npm start
  1. Search for extensions using natural language:
const result = await mcpClient.call('search_extensions', {
    query: 'sqlite database viewer and editor'
});

// Result example:
{
    success: true,
    extensions: [
        {
            publisher: "qwtel",
            extensionName: "sqlite-viewer",
            displayName: "SQLite Viewer",
            version: "0.1.5",
            description: "SQLite Viewer and Editor",
            installs: 500000,
            rating: 4.8,
            installCommand: {
                publisher: "qwtel",
                extension: "sqlite-viewer",
                version: "0.1.5"
            }
        },
        // ... more extensions
    ]
}
  1. Install a specific extension:
const result = await mcpClient.call('install_extension', {
    publisher: 'vsls-contrib',
    extension: 'gistfs',
    version: '0.7.0'
});

API

search_extensions

Search for VS Code extensions using natural language queries.

Parameters:

  • query: Natural language description of the extension you’re looking for (e.g., ‘sqlite database viewer’)

Returns:

{
    success: boolean;
    extensions?: Array<{
        publisher: string;
        extensionName: string;
        displayName: string;
        version: string;
        description: string;
        installs: number;
        rating: number;
        installCommand: {
            publisher: string;
            extension: string;
            version: string;
        }
    }>;
    message?: string;
}

install_extension

Installs a VS Code extension in Cursor.

Parameters:

  • publisher: The publisher of the extension (e.g., ‘vsls-contrib’)
  • extension: The name of the extension (e.g., ‘gistfs’)
  • version: The version of the extension (e.g., ‘0.7.0’)

Returns:

{
    success: boolean;
    message: string;
    path: string | null;
}

Development

  1. Clone the repository:
git clone https://github.com/siliconuy/mcp-server-vscode-extensions.git
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Start in development mode:
npm run dev

License

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers