vscode-context-mcp

vscode-context-mcp

3.4

If you are the rightful owner of vscode-context-mcp 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 Model Context Protocol (MCP) server that provides VSCode context and filesystem operations for AI assistants.

VSCode Context MCP creates a bridge between AI assistants and your VSCode environment. It enables AI models to access the current VSCode context, perform filesystem operations, and execute shell commands in a controlled environment. This allows AI assistants to provide more relevant and context-aware help for software development tasks.

Features

  • VSCode Context Access: Get current project path, retrieve active file contents and metadata, list open editor tabs, access diagnostic problems, retrieve terminal output, and access files attached to the workspace.
  • Filesystem Operations: Read/write files, edit files with line-based changes, create directories, list directory contents, generate directory trees, search for files, get file metadata, move/rename files.
  • Command Execution: Run shell commands with output capture in a controlled execution environment.

Tools

  1. get_vscode_context

    Retrieve complete VSCode context information.

  2. get_attached_files

    Retrieve a list of files attached to the workspace.

  3. get_project_path

    Get current project root directory.

  4. get_current_file

    Get details and content of the active file.

  5. get_open_tabs

    List all open editor tabs.

  6. get_problems

    Retrieve diagnostics (errors/warnings).

  7. get_terminal_content

    Get terminal output and history.

  8. run_command

    Execute a shell command.

  9. read_file

    Read contents of a file.

  10. read_multiple_files

    Read multiple files at once.

  11. write_file

    Create or overwrite a file.

  12. edit_file

    Make line-based edits to a file.

  13. create_directory

    Create directory structure.

  14. list_directory

    List files and directories.

  15. directory_tree

    Get recursive directory structure.

  16. move_file

    Move or rename files and directories.

  17. search_files

    Find files matching a pattern.

  18. get_file_info

    Get detailed file metadata.