vscode-as-mcp-server

acomagu/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.

Tools

Functions exposed to the LLM to take actions

execute_command

Execute a command in a VSCode integrated terminal with proper shell integration. This tool provides detailed output and exit status information, and supports:

  • Custom working directory
  • Shell integration for reliable output capture
  • Output compression for large outputs
  • Detailed exit status reporting
  • Flag for potentially destructive commands (potentiallyDestructive: false to skip confirmation for read-only commands)

code_checker

Retrieve diagnostics from VSCode's language services for the active workspace. Use this tool after making changes to any code in the filesystem to ensure no new errors were introduced, or when requested by the user.

focus_editor

Open the specified file in the VSCode editor and navigate to a specific line and column. Use this tool to bring a file into focus and position the editor's cursor where desired. Note: This tool operates on the editor visual environment so that the user can see the file. It does not return the file contents in the tool call result.

list_debug_sessions

List all active debug sessions in the workspace.

start_debug_session

Start a new debug session with the provided configuration.

restart_debug_session

Restart a debug session by stopping it and then starting it with the provided configuration.

stop_debug_session

Stop all debug sessions that match the provided session name.

text_editor

A text editor tool that provides file manipulation capabilities using VSCode's native APIs:

  • view: Read file contents with optional line range
  • str_replace: Replace text in file
  • create: Create new file
  • insert: Insert text at specific line
  • undo_edit: Restore from backup

Code Editing Tips:

  • VSCode may automatically prune unused imports when saving. To prevent this, make sure the imported type is actually used in your code before adding the import.

list_directory

List directory contents in a tree format, respecting .gitignore patterns. Shows files and directories with proper indentation and icons. Useful for exploring workspace structure while excluding ignored files.

get_terminal_output

Retrieve the output from a specific terminal by its ID. This tool allows you to check the current or historical output of a terminal, which is particularly useful when working with long-running commands or commands started in background mode with the execute_command tool.

Prompts

Interactive templates invoked by user choice

No prompts

Resources

Contextual data attached and managed by the client

No resources