vscode-context-mcp
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
get_vscode_context
Retrieve complete VSCode context information.
get_attached_files
Retrieve a list of files attached to the workspace.
get_project_path
Get current project root directory.
get_current_file
Get details and content of the active file.
get_open_tabs
List all open editor tabs.
get_problems
Retrieve diagnostics (errors/warnings).
get_terminal_content
Get terminal output and history.
run_command
Execute a shell command.
read_file
Read contents of a file.
read_multiple_files
Read multiple files at once.
write_file
Create or overwrite a file.
edit_file
Make line-based edits to a file.
create_directory
Create directory structure.
list_directory
List files and directories.
directory_tree
Get recursive directory structure.
move_file
Move or rename files and directories.
search_files
Find files matching a pattern.
get_file_info
Get detailed file metadata.