Code MCP Server

73 tools. 48 can modify or destroy data without limits.

5 destructive tools with no built-in limits. Policy required.

Last updated:

48 can modify or destroy data
25 read-only
73 tools total

Community server · catalogue entry checked 29/06/2026

How to control Code MCP Server ↓

What Code MCP Server exposes to your agents

Read (25) Write / Execute (42) Destructive / Financial (5)
Critical Risk

The most dangerous Code MCP Server tools

48 of Code MCP Server's 73 tools can modify, destroy, or commit something on every call — and an agent calls them with no built-in limits.

How to control Code MCP Server

PolicyLayer is an MCP gateway — it sits between your AI agents and Code MCP Server, and nothing reaches the server without passing your rules. These are the rules we recommend:

Deny destructive operations
{
  "delete_file": {
    "deny_if": [
      {
        "conditions": [],
        "on_deny": "Blocked by default. Requires approval."
      }
    ]
  }
}

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

Rate limit write operations
{
  "add_allowed_command": {
    "limits": [
      {
        "counter": "add_allowed_command_per_hour",
        "window": "hour",
        "max": 30,
        "scope": "grant"
      }
    ]
  }
}

Prevents bulk unintended modifications from agents caught in loops.

Cap read operations
{
  "analyze_code": {
    "limits": [
      {
        "counter": "analyze_code_per_minute",
        "window": "minute",
        "max": 60,
        "scope": "grant"
      }
    ]
  }
}

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

  1. Create a free account and register Code MCP Server — nothing to install.
  2. Add these rules — paste them, or build them visually. Tune the limits to your setup.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
ENFORCE POLICY ON CODE →

Instant setup, no code required.

All 73 Code MCP Server tools

READ 25 tools
Read analyze_code Analyze code structure and dependencies Read analyze_file_differences Analyze differences between two files with detailed statistics Read compare_commits Compare two commits with detailed analysis Read compare_files Compare two files and show differences with multiple format options Read detect_vscode_workspaces Automatically detect open VS Code instances and their workspaces Read docker_check_availability Check if Docker is installed and available Read enhanced_git_diff Show git diff with multiple format options (unified, side-by-side, stat, word-diff) Read get_allowed_commands Get list of commands that are allowed to run in this project Read get_current_session Get information about the current coding session Read get_diff_stats Get diff statistics (files changed, lines added/removed) Read get_session_history Get history of commits in current session Read get_session_info Get information about the current coding session Read get_workspace Get current workspace path Read git_diff Show git diff Read git_log Show commit history Read git_status Get git repository status Read list_directory List contents of a directory with details Read list_processes List all running processes started by the agent Read list_workspaces List recently used workspaces Read load_project_config Load project-specific configuration from .vscode-mcp.toml Read present_workspace_choice Present detected workspaces to user for selection Read preview_changes Preview all changes before committing Read preview_changes_enhanced Enhanced change preview with multiple format options Read read_file Read the contents of a file Read search_code Search for patterns in code

Related servers

Other MCP servers with similar tools — same risk classification, starter policies for each.

Questions about Code MCP Server

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

Yes. The Code MCP Server server exposes 5 destructive tools including delete_file, docker_cleanup, docker_containers. These permanently remove resources with no undo. PolicyLayer blocks destructive tools by default so they never reach the upstream server.

How do I prevent bulk modifications through Code MCP Server? +

The Code MCP Server server has 21 write tools including add_allowed_command, apply_patch, auto_commit_changes. Set a rate limit in your policy -- for example, 10 calls per hour prevents an agent from making more than 10 modifications per hour. PolicyLayer enforces this at the gateway, before calls reach Code MCP Server.

How many tools does the Code MCP Server MCP server expose? +

73 tools across 4 categories: Destructive, Execute, Read, Write. 25 are read-only. 48 can modify, create, or delete data.

How do I enforce a policy on Code MCP Server? +

Register the Code MCP Server MCP server in PolicyLayer, apply the suggested rules above (adjust the limits to your use case), and point your AI client at the PolicyLayer proxy URL instead of the server directly. Your agents keep the same tools; PolicyLayer evaluates every call against policy before it executes. Nothing to install, live in minutes.

Enforce policy on every Code MCP Server tool call.

Deterministic rules across all 73 Code MCP Server tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.

Instant setup, no code required.

73 Code MCP Server tools catalogued and risk-classified — across an index of 46,500+ MCP servers.

// WHERE THIS COMES FROM

These policies come from Code MCP Server's registry record.

The record behind this page: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

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

Message sent.

We'll get back to you soon.