vscode-as-mcp-server

vscode-as-mcp-server

3.6

If you are the rightful owner of vscode-as-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A VSCode extension that turns your VSCode into an MCP server, enabling advanced coding assistance from MCP clients like Claude Desktop.

VSCode as MCP Server is a powerful extension that transforms your Visual Studio Code environment into a Model Context Protocol (MCP) server. This allows for seamless integration with MCP clients, providing advanced coding assistance and automation features. The extension supports real-time code editing, terminal operations, and URL previews directly within VSCode. It also offers multi-instance switching and experimental relay functionality to expose built-in MCP servers externally. This tool is designed to be an affordable, self-hosted alternative to metered coding tools, offering a range of built-in tools for executing commands, managing debug sessions, and more.

Features

  • Code Editing Support: Review and manage code changes with real-time diagnostics.
  • Terminal Operations: Execute commands with support for background/foreground execution.
  • Preview Tools: Preview URLs within VSCode’s built-in browser.
  • Multi-instance Switching: Switch between multiple VSCode windows easily.
  • Relay Functionality: Expose built-in MCP servers externally for broader access.

Tools

  1. execute_command

    Execute commands in VSCode's integrated terminal

  2. code_checker

    Retrieve diagnostic information for the current code

  3. focus_editor

    Focus on specific locations in the file

  4. list_debug_sessions

    Manage debugging sessions

  5. text_editor

    File operations (view, replace, create, insert, undo)

  6. list_directory

    List directory contents in tree format

  7. get_terminal_output

    Get output from the specified terminal

  8. list_vscode_commands

    List and execute any VSCode commands

  9. preview_url

    Open URL in VSCode's integrated browser