vsc-mcp

vsc-mcp

10

VSC-MCP is a comprehensive tool for AI-driven coding, utilizing LSPs to programmatically manage and analyze code across languages supported by VS Code. It integrates seamlessly with AI clients to enhance coding efficiency without needing an IDE.

VSC-MCP

This project provides tools to expose Language Server Protocol (LSP) functionality as MCP (Model Context Protocol) tools, enabling AI clients to programmatically analyze and edit code through standardized MCP tool calls. Initially focused on TypeScript, it has evolved into a full-featured MCP server supporting languages hosted by VS Code.

Features

  • Standalone Mode: Supports TypeScript/JavaScript with typescript-language-server.
  • Docker Mode: Utilizes OpenVSCode Server for rich LSP support across multiple languages.
  • Unified LSP: Streamlines launching separate language servers.
  • Rich Extensions: Access to VS Code's extensions and APIs.
  • Live Editing: Real-time code editing without an IDE.

How It Works

  • Runs OpenVSCode Server inside Docker.
  • Pre-installed necessary VS Code extensions.
  • Establishes a WebSocket channel between MCP and VS Code.
  • Uses VS Code's internal language servers for LSP operations.

Security Features

  • Restricts OS file operations to specified directories using environment variables.

Available Tools

  • edit_symbol, read_symbol, read_file, write_file, search_replace_file, get_errors, find_references.