What is VSCode Context MCP?
VSCode Context MCP is a Model Context Protocol (MCP) server that bridges AI assistants with your VSCode environment. It gives AI models access to current VSCode context (active files, open tabs, terminal output, diagnostics), enables filesystem operations with controls, and allows shell command execution in a controlled way. It is designed for developers who want context-aware AI help during software development.
How to use VSCode Context MCP?
Install the VSCode extension from the provided VSIX package, then build the server with npm install && npm run build. Configure Claude Desktop to invoke the built server via a JSON entry. After setup, prompt an MCP‑compatible assistant like Claude to use VSCode context (e.g., “Check my current VSCode project and tell me what files I have open”). Files can also be added to context using keyboard shortcuts or the command palette.
Key features of VSCode Context MCP
- Access current project path and active file details.
- List open editor tabs and retrieve diagnostics (errors/warnings).
- Fetch terminal output and attached workspace files.
- Read, write, edit, create, move, and search files.
- Run shell commands with output capture in a controlled environment.
Use cases of VSCode Context MCP
- AI assistant understands your active code context to make relevant suggestions.
- Debug issues by giving the assistant access to terminal output and diagnostics.
- Perform file operations (read, edit, create) on your behalf without switching contexts.
- Generate directory trees or search for files to help navigate large projects.
コメント