Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Org-owned · Audited from source

VS Code MCP server

by block/vscode-mcpApache-2.0 licenceAudited 7 Oct 2026 · source f976959c0a2c

npm vscode-mcp-server 0.2.0stdio★ 75
✕BLOCKGrade D · 69/100 · 7 Oct 2026 · f976959

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).

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score69/100✕BLOCK D
0 critical1 high0 medium6 low0 info

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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
const { stdout, stderr } = await exec(shellCommand, { cwd })
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
LOWInventory / provenanceinv.hidden_file · .goosehints
F-13 Inventory / provenanceCWE-1104Layer L0
.goosehints
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .vscodeignore
F-13 Inventory / provenanceCWE-1104Layer L0
.vscodeignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · extension/.vscodeignore
F-13 Inventory / provenanceCWE-1104Layer L0
.vscodeignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWSupply chainsupply.unpinned · extension/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@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
F-08 Supply chainCWE-829 · CWE-1357Layer L1
rimraf, typescript
Why
2 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · server/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
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

7 read2 write0 destructive
ToolWhat it doesRisk
create_diffUse 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_commandIMPORTANT: 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 Codewrite
check_extension_statusCheck if the VS Code MCP Extension is installed and respondingread
get_active_tabsRetrieves information about currently open tabs in VS Code to provide context for the AI agent.read
get_context_tabsRetrieves information about tabs that have been specifically marked for inclusion in AI context using the UI toggle in VS Code.read
get_extension_portGet the port number that the VS Code MCP Extension is running onread
list_available_projectsLists 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_fileUsed 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_projectCall 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

  1. ✕BLOCK D 69 / 100

    First audit · f976959c0a2c

Questions about VS Code MCP server

What tools does VS Code expose?
9 in total: 7 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is VS Code safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on.
What credentials does VS Code need?
No credential environment variables were found in its source, so it appears to need none.
How does VS Code run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as vscode-mcp-server at 0.2.0.
How current is this page?
The grade is for one exact copy of the source (f976959c0a2c), read on 2026-10-07. The repository is watched and re-audited when it changes.
I already installed VS Code. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

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.