Vscode

8 tools. 3 can modify or destroy data without limits.

1 destructive tool with no built-in limits. Policy required.

Last updated:

3 can modify or destroy data
5 read-only
8 tools total
Read (5) Write / Execute (2) Destructive / Financial (1)

Destructive tools (execute_command) permanently delete resources. There is no undo. An agent calling these in a retry loop causes irreversible damage.

Write operations (open_files, rename_symbol) modify state. Without rate limits, an agent can make hundreds of changes in seconds — faster than any human can review or revert.

One command. Full control.

Intercept sits between your agent and Vscode. Every tool call checked against your policy before it executes — so your agent can do its job without breaking things.

npx -y @policylayer/intercept scan -- npx -y @vscode-mcp/vscode-mcp-server
Scans every tool. Generates a policy. Starts enforcing.
Works with Claude Code · Cursor · Claude Desktop · Windsurf · any MCP client
Deny destructive operations
execute_command:
  rules:
    - action: deny

Destructive tools should never be available to autonomous agents without human approval.

Rate limit write operations
open_files:
  rules:
    - rate_limit: 30/hour

Prevents bulk unintended modifications from agents caught in loops.

Cap read operations
get_diagnostics:
  rules:
    - rate_limit: 60/minute

Controls API costs and prevents retry loops from exhausting upstream rate limits.

Can an AI agent delete data through the Vscode MCP server? +

Yes. The Vscode server exposes 1 destructive tools including execute_command. These permanently remove resources with no undo. Intercept blocks destructive tools by default so they never reach the upstream server.

How do I prevent bulk modifications through Vscode? +

The Vscode server has 2 write tools including open_files, rename_symbol. Set rate limits in your policy file -- for example, rate_limit: 10/hour prevents an agent from making more than 10 modifications per hour. Intercept enforces this at the transport layer.

How many tools does the Vscode MCP server expose? +

8 tools across 3 categories: Destructive, Read, Write. 5 are read-only. 3 can modify, create, or delete data.

How do I add Intercept to my Vscode setup? +

One line change. Instead of running the Vscode server directly, prefix it with Intercept: intercept -c vscode.yaml -- npx -y @@vscode-mcp/vscode-mcp-server. Download a pre-built policy from policylayer.com/policies/vscode and adjust the limits to match your use case.

Other MCP servers with similar tools.

Starter policies available for each. Same risk classification, same one-command setup.

policylayer/intercept

Control every MCP tool call
your agent makes.

Set budgets, approvals, and hard limits across MCP servers.

See what your agent can do
or control your agent now
npx -y @policylayer/intercept
Drop-in. No agent changes required.
// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.