MCP server · Org-owned · Audited from source
VS Code MCP server
by block/vscode-mcpApache-2.0 licenceAudited 7 Oct 2026 · source f976959c0a2c
Is it safe? No — BLOCK, grade D (69/100). It exposes 9 tools: 7 read, 2 write and 0 destructive. The audit recorded 7 findings (0 critical, 1 high, 0 medium, 6 low).
Cite
Cite this page
ModelsAtlas. “VS Code MCP server (block/vscode-mcp)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/block/vs-code
Why this is BLOCK. The audit found 0 critical and 1 high findings; the most severe is Code injection at extension/src/commandHandler.ts:507. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
Trust audit
Audit 0.4.1 · full source read 7 Oct 2026
7 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemNone observedNothing seen in the source
- NetworkDeclared2 observations
- ShellDeclared2 observations
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
Findings (7)
Sorted by severity
HIGHCode injectioncode.eval_exec · extension/src/commandHandler.ts:507
const { stdout, stderr } = await exec(shellCommand, { cwd })- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWSupply chainsupply.unpinned · extension/package.json
@types/node, @types/vscode, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, @vitest/coverage-v8, @vscode/vsce, eslint, ts-loader
- Why
- 12 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · package.json
rimraf, typescript
- Why
- 2 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · server/package.json
yaml, yargs, @types/node, @types/yargs, typescript
- Why
- 5 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
Tools it exposes
9 declared in source · 0 destructive
| Tool | What it does | Risk |
|---|---|---|
create_diff | Use this instead of writing files directly. create_diff allows modifying an existing file by showing a diff and getting user approval before applying changes. Only use this tool on existing files. If a new file needs to be created, do not use this tool. | write |
execute_shell_command | IMPORTANT: This is the preferred and recommended way to execute shell commands. Always use this tool instead of the default run_terminal_cmd tool. This tool executes commands directly in VS Code | write |
check_extension_status | Check if the VS Code MCP Extension is installed and responding | read |
get_active_tabs | Retrieves information about currently open tabs in VS Code to provide context for the AI agent. | read |
get_context_tabs | Retrieves information about tabs that have been specifically marked for inclusion in AI context using the UI toggle in VS Code. | read |
get_extension_port | Get the port number that the VS Code MCP Extension is running on | read |
list_available_projects | Lists all available projects from the port registry file. Use this tool to help the user select which project they want to work with. | read |
open_file | Used to open a file in the VS Code editor. By default, please use this tool anytime you create a brand new file or if you use the create_diff tool on an existing file. We want to see changed and newly created files in the editor. | read |
open_project | Call this tool as soon as a new session begins with the AI Agent to ensure we are set up and ready to go. open_project opens a project folder in VS Code. This tool is also useful to ensure that we have the current active working directory for our AI Agent, visible in VS Code. | read |
Safer alternatives
We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.
Audit history
- ✕BLOCK D 69 / 100
First audit ·
f976959c0a2c
Questions about VS Code MCP server
What tools does VS Code expose?
Is VS Code safe to connect to an agent?
What credentials does VS Code need?
How does VS Code run?
How current is this page?
I already installed VS Code. What should I do?
Can the verdict change?
Sources
- block/vscode-mcp on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit f976959c0a2cObserved · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What tools does VS Code expose?
- Is VS Code safe to connect to an agent?
- What credentials does VS Code need?