Skip to main content
Glama

vscode-mcp

Un servidor MCP (Model Context Protocol) que proporciona capacidades de IDE de Claude dentro de VS Code y Cursor. Claude puede leer, escribir, editar, buscar y ejecutar comandos en tu espacio de trabajo, directamente desde el chat.

Herramientas

Herramienta

Descripción

read_file

Leer el contenido de un archivo, con rango de líneas opcional

write_file

Escribir o sobrescribir un archivo (crea directorios padres)

edit_file

Reemplazar una cadena exacta en un archivo

list_directory

Listar archivos y directorios (opcionalmente recursivo)

create_directory

Crear un árbol de directorios

delete_path

Eliminar un archivo o directorio

move_path

Mover o renombrar un archivo/directorio

search_files

Búsqueda por expresión regular estilo grep en archivos

find_files

Buscar archivos por patrón glob (ej. *.ts)

run_command

Ejecutar cualquier comando de shell, capturar salida

get_workspace_info

Plataforma, versión de Node, rama y estado de git

get_file_info

Metadatos del archivo (tamaño, fecha de modificación, tipo)

Related MCP server: code-context

Instalación

npm install
npm run build

Uso con Cursor

Cursor lee la configuración del servidor MCP desde:

  • Global: ~/.cursor/mcp.json

  • Proyecto: .cursor/mcp.json (en la raíz de tu proyecto)

Opción A — ejecutar mediante node (después de compilar)

Añade a tu configuración de MCP de Cursor:

{
  "mcpServers": {
    "vscode-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/vscode-mcp/dist/index.js"]
    }
  }
}

Opción B — ejecutar mediante npx (no requiere compilación manual)

{
  "mcpServers": {
    "vscode-mcp": {
      "command": "npx",
      "args": ["--yes", "vscode-mcp"]
    }
  }
}

Después de editar la configuración, abre Cursor Settings → Features → MCP y haz clic en Refresh (o reinicia Cursor).

Uso con VS Code + Copilot Chat (soporte MCP)

Añade a tu settings.json de VS Code:

"mcp": {
  "servers": {
    "vscode-mcp": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/vscode-mcp/dist/index.js"]
    }
  }
}

Desarrollo

npm run dev    # watch mode (recompiles on save)
npm start      # run the built server

Consejos

  • Todas las rutas pueden ser absolutas o relativas a la raíz del espacio de trabajo.

  • Pasa workspace_root a cualquier herramienta para anclar rutas relativas a un directorio específico.

  • run_command acepta cualquier comando de shell; úsalo para git, npm, linters, compiladores, etc.

  • search_files omite automáticamente node_modules, dist y carpetas ocultas.

Available Tools

12 tools
create_directoryA

Create a directory (and all parent directories).

Inputs: path (required), workspace_root.

delete_pathB

Delete a file or directory.

Inputs: path (required), recursive, workspace_root.

edit_fileC

Replace an exact string in a file. The old_string must appear exactly once.

Inputs: path (required), old_string (required), new_string (required), workspace_root.

find_filesB

Find files by name glob pattern (e.g. '.ts', 'index.').

Inputs: directory (required), pattern (required), max_results, workspace_root.

get_file_infoB

Get metadata about a file or directory (size, modification time, type).

Inputs: path (required), workspace_root.

get_workspace_infoA

Get information about the current workspace: root directory, platform, Node version, git status summary.

Inputs: workspace_root.

list_directoryB

List files and directories at a given path.

Inputs: path (required), recursive, workspace_root.

move_pathB

Move or rename a file or directory.

Inputs: source (required), destination (required), workspace_root.

read_fileB

Read the contents of a file. Optionally specify a line range.

Inputs: path (required), start_line, end_line, workspace_root.

run_commandA

Execute a shell command in the given working directory. Returns stdout, stderr, and exit code.

Inputs: command (required), cwd, timeout_ms.

search_filesB

Search for a regex pattern inside files. Returns matching lines with file and line number.

Inputs: directory (required), pattern (required), file_glob, ignore_case, +2 more.

write_fileA

Write or overwrite a file with new content. Creates parent directories automatically.

Inputs: path (required), content (required), workspace_root.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 12 tools

    Disambiguation5/5

    Each tool targets a distinct file or workspace operation: create, delete, edit, find, get info, list, move, read, run, search, write. No two tools have overlapping purposes.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case (e.g., create_directory, read_file, write_file). No deviations or mixed conventions.

    Tool Count5/5

    12 tools is well-scoped for a file system and workspace utility server, covering essential operations without being overwhelming or too sparse.

    Completeness4/5

    The tool set covers fundamental file/directory operations and workspace info. Minor gaps exist such as no copy tool (can be done via read+write) and no line-based editing, but core workflows are supported.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
      15
      306
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that provides dynamic codebase context to Claude Code through tools like hybrid search, recent changes, and symbol definitions, enhancing AI-assisted coding with local RAG.
      8
      35 PyPI
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that integrates with VS Code to enable file operations, git diffs, and line highlighting via MCP clients like Claude.
      43
      MIT