Skip to main content
Glama
juehang
by juehang

VS Code MCP 服务器

一个 Visual Studio Code 扩展(可在Marketplace获取),允许 Claude 和其他 MCP 客户端直接在 VS Code 中编写代码!灵感源自Serena ,但使用了 VS Code 的内置功能。目前,它比 Serena 简单得多,但仍然有效!请注意,此扩展使用的是可流式传输的 HTTP API,而不是 SSE API。

此扩展允许执行 Shell 命令。这意味着存在潜在的安全风险,因此请谨慎使用,并确保您信任所使用的 MCP 客户端,且该端口未暴露给任何外部设备。身份验证或许能有所帮助,但由于 MCP 身份验证规范仍在不断修订中,因此目前尚未实现身份验证。

欢迎 PR!

演示视频

https://github.com/user-attachments/assets/20b87dfb-fc39-4710-a910-b9481dde1e90

Related MCP server: VS Claude

安装

  1. 从市场安装扩展或克隆此存储库并运行npm install和npm run compile来构建它。

Claude桌面配置

您可以将 Claude Desktop 配置为使用此扩展作为 MCP 服务器。为此,您的claude_desktop_config.json文件应如下所示:

{
  "mcpServers": {
    "vscode-mcp-server": {
        "command": "npx",
        "args": ["mcp-remote@next", "http://localhost:3000/mcp"]
    }

  }
}

我也喜欢在 Claude 项目中使用这个扩展,因为它允许我为 Claude 指定额外的指令。我发现以下提示符效果很好:

You are working on an existing codebase, which you can access using your tools. These code tools interact with a VS Code workspace.

Before running code tools that will make any modification to code, always present a comprehensive and detailed plan to the user, including your confidence level (out of 10). When planning, use your tools to explore the codebase so that you understand the context of the project. If you are not confident in your plan because you require more information, use your tools, such as web search, to look for this information or ask the user.

IMPORTANT: Only run code tools that will modify code after presenting such a plan to the user, and receiving explicit approval. Approval must be given each time; prior approval for a change does not imply that subsequent changes are approved.

此扩展用作模型上下文协议 (MCP) 服务器,向 MCP 客户端公开 VS Code 的文件系统和编辑功能。

特征

VS Code MCP 服务器扩展实现了符合 MCP 标准的服务器,允许 AI 模型和其他 MCP 客户端:

  • 列出 VS Code 工作区中的文件和目录

  • 读取具有编码支持和大小限制的文件内容

  • 在您的工作区中搜索符号

  • 通过行和符号名称获取符号定义和悬停信息

  • 使用 VS Code 的 WorkspaceEdit API创建新文件

  • 在文件中进行行替换

  • 检查工作区中的诊断(错误和警告)

  • 使用shell 集成在集成终端中执行 shell 命令

  • 通过状态栏项打开或关闭服务器

此扩展使 AI 助手和其他工具能够通过标准化 MCP 协议与您的 VS Code 工作区进行交互。

工作原理

该扩展程序会创建一个 MCP 服务器,该服务器可以:

  1. 在可配置端口上本地运行(启用时)

  2. 通过 HTTP 处理 MCP 协议请求

  3. 将 VS Code 的功能公开为 MCP 工具

  4. 提供显示服务器状态的状态栏指示器,可以单击该指示器来打开/关闭服务器

支持的 MCP 工具

文件工具

  • list_files_code :列出工作区中的文件和目录

    • 参数:

      • path :列出文件的路径

      • recursive (可选):是否递归列出文件

  • read_file_code :读取文件内容

    • 参数:

      • path :要读取的文件的路径

      • encoding (可选):文件编码(默认值:utf-8)

      • maxCharacters (可选):最大字符数(默认值:100,000)

编辑工具

  • create_file_code :使用 VS Code 的 WorkspaceEdit API 创建新文件

    • 参数:

      • path :要创建的文件的路径

      • content :要写入文件的内容

      • overwrite (可选):如果文件存在,是否覆盖(默认值:false)

      • ignoreIfExists (可选):是否忽略文件是否存在(默认值:false)

  • replace_lines_code :替换文件中的特定行

    • 参数:

      • path :要修改的文件的路径

      • startLine :起始行号(从 0 开始,含 0)

      • endLine :结束行号(从 0 开始,含 0)

      • content :要替换行的新内容

      • originalCode :验证的原始代码

诊断工具

  • get_diagnostics_code :检查工作区中的警告和错误

    • 参数:

      • path (可选):要检查的文件路径(如果未提供,则检查整个工作区)

      • severities (可选):要包含的严重性级别数组(0=错误,1=警告,2=信息,3=提示)。默认值:[0, 1]

      • format (可选):输出格式('text' 或 'json')。默认值:'text'

      • includeSource (可选):是否包含诊断源。默认值:true

    此工具尤其适用于:

    • 提交更改之前的代码质量检查

    • 验证修复已解决所有报告的问题

    • 识别特定文件或整个工作区中的问题

符号工具

  • search_symbols_code :在工作区中搜索符号

    • 参数:

      • query :符号名称的搜索查询

      • maxResults (可选):返回的最大结果数(默认值:10)此工具适用于:

    • 在代码库中查找符号(函数、类、变量等)的定义

    • 探索项目结构和组织

    • 通过名称定位特定元素

  • get_symbol_definition_code :获取文件中符号的定义信息

    • 参数:

      • path :包含符号的文件的路径

      • line :符号的行号(从 0 开始)

      • symbol :在指定行上查找的符号名称此工具提供:

    • 符号的类型信息、文档和源详细信息

    • 显示符号出现位置的代码上下文

    • 符号范围信息它对于以下情况特别有用:

    • 无需导航即可理解符号的含义

    • 检查函数签名、类型定义或文档

    • API 或库函数的快速参考

Shell 工具

  • execute_shell_command_code :在 VS Code 集成终端中通过 shell 集成执行 shell 命令

    • 参数:

      • command :要执行的 shell 命令

      • cwd (可选):命令的可选工作目录(默认值:'.')

    此工具可用于:

    • 运行 CLI 命令并构建操作

    • 执行 git 命令

    • 执行任何需要终端访问的 shell 操作

    • 获取命令输出以进行分析和进一步处理

注意事项/TODO

目前仅支持一个工作区。该扩展也仅在本地运行,以避免将您的 VS Code 实例暴露给您可能连接的任何网络。

扩展设置

此扩展提供了以下设置:

  • vscode-mcp-server.port :MCP 服务器的端口号(默认值:3000)

与 MCP 客户端一起使用

要将 MCP 客户端连接到此服务器,请将其配置为使用:

http://localhost:3000/mcp

请记住,您需要先通过单击状态栏项来启用服务器!

贡献

欢迎贡献!欢迎提交问题或拉取请求。

执照

麻省理工学院

Available Tools

9 tools
check_extension_statusB

Check if the VS Code MCP Extension is installed and responding

ParametersJSON Schema
NameRequiredDescriptionDefault
targetProjectPathYesPath to the project folder we are working in

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must convey behavioral traits. It only states the check action but does not confirm it is non-destructive, reveal side effects, or indicate required permissions. The agent cannot infer safety or scope.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence with no unnecessary words. It is front-loaded and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple health check tool with one parameter, the description provides the core purpose. However, it lacks contextual details like read-only nature or usage flow, making it barely adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the description adds no additional meaning beyond what the input schema already provides. Baseline 3 is appropriate as the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool checks if the VS Code MCP Extension is installed and responding, providing a specific verb-resource pair. However, it does not differentiate from sibling tools like get_extension_port, but the purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given on when to use this tool versus alternatives. There is no mention of prerequisites or context that would help an agent decide to invoke it, e.g., before other extension-related operations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

create_diffA

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
filePathYesPath to the existing file to modify
newContentYesProposed new content for the file
descriptionNoDescription of the changes being made
targetProjectPathYesPath to the project folder we are working in

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, but description discloses key behavioral trait: shows diff and requires user approval before applying changes. This is critical for a mutation tool. Does not elaborate on what happens if approval is denied or if there are side effects, but the core behavior is clear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences and a short exclusion statement. No fluff, front-loaded with purpose. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 4 parameters, no output schema, and no annotations, the description adequately covers purpose, usage constraints, and behavioral context. Lacks information about return value (e.g., diff preview or approval result), but not essential for invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% (4/4 parameters described). Description adds no extra meaning beyond the schema; e.g., 'filePath' is already described as 'existing file' in schema. Baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it modifies existing files via diff with user approval. Explicitly contrasts with file creation, aiding sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to use (instead of writing files directly) and when not to use (for new files). Lacks reference to a specific alternative creation tool, but sibling tools list does not include a create_file tool, so guidance is practically sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

execute_shell_commandA

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's integrated terminal, showing the command execution to the user and capturing its output. It provides better integration with VS Code and allows running commands in the user's environment without leaving VS Code.

ParametersJSON Schema
NameRequiredDescriptionDefault
commandYesThe shell command to execute
targetProjectPathYesPath to the project folder we are working in
cwdNoOptional working directory for the command. Defaults to the project root.

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must disclose behavioral traits. It mentions showing command execution and capturing output, but does not warn about potential destructive effects of arbitrary commands, auth needs, or side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single paragraph with an important emphasis marker. It is front-loaded with key guidance and avoids unnecessary detail, but could be slightly more concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description should explain return format or error handling. It only states the tool 'captures its output' without specifics, and lacks details on potential risks or limitations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% coverage with descriptions for all three parameters. The description adds no additional parameter-level meaning beyond what the schema provides, so baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it executes shell commands in VS Code's integrated terminal and is the preferred method over run_terminal_cmd. Specific verb 'execute' and resource 'shell command' are well-defined.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs to use this tool instead of the default run_terminal_cmd tool, providing clear when-to-use guidance. However, no when-not-to-use or alternative scenarios are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_active_tabsC

Retrieves information about currently open tabs in VS Code to provide context for the AI agent.

ParametersJSON Schema
NameRequiredDescriptionDefault
targetProjectPathYesPath to the project folder we are working in
includeContentNoWhether to include the file content of each tab (may be large)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description fully bears the burden of disclosing behavior. It only states 'Retrieves' (implying read-only) but lacks details on side effects, permissions, or performance implications. The agent cannot assess safety or cost.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no wasted words. However, it could be more impactful by adding specific usage context. It is appropriately size for the tool's simplicity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description does not explain what information is returned (e.g., tab paths, titles, content). With no output schema, the agent is left guessing. The sibling 'get_context_tabs' may return similar data, increasing ambiguity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers 100% of parameters with descriptions. The description adds minimal new meaning beyond the schema, such as noting that context is provided for the AI agent. This meets the baseline but does not enhance agent understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Retrieves' and the resource 'currently open tabs in VS Code', making the purpose explicit. However, it does not differentiate from the sibling tool 'get_context_tabs', which may have overlapping functionality.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. There is no mention of prerequisites, context, or exclusions, leaving the agent without decision support.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_context_tabsB

Retrieves information about tabs that have been specifically marked for inclusion in AI context using the UI toggle in VS Code.

ParametersJSON Schema
NameRequiredDescriptionDefault
targetProjectPathYesPath to the project folder we are working in
includeContentNoWhether to include the file content of each tab (may be large)
selectionsNoOptional array of file paths with specific line ranges to include

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the full burden. It explains the purpose but lacks details such as whether file content is returned, the potential size impact of includeContent, or any side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that front-loads the purpose with no unnecessary words, making it very concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and moderate complexity (3 params, one required), the description fails to explain the return format or behavior, such as whether it returns metadata or file content, leaving the agent to infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all three parameters. The description adds some context about AI-focused tabs but no additional meaning beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Retrieves' and the resource 'information about tabs marked for AI context', distinguishing it from sibling tool 'get_active_tabs' which likely retrieves all tabs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies use for context-marked tabs, but does not explicitly state when to use this tool over alternatives like get_active_tabs or provide any exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_extension_portA

Get the port number that the VS Code MCP Extension is running on

ParametersJSON Schema
NameRequiredDescriptionDefault
targetProjectPathYesPath to the project folder we are working in

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description omits behavioral details such as whether the tool is read-only, what happens if the extension is not running, or any side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no superfluous words, efficiently conveying the tool's purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple getter with one parameter, the description covers the basic purpose but lacks information on return values or error conditions, which could be expected for completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with a clear parameter description, but the tool description adds no additional meaning or context beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves the port number of the VS Code MCP Extension, with a specific verb ('get') and resource ('port number'), and no sibling tool has a similar purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when needing the extension's port, but provides no explicit guidance on when to use this tool vs alternatives like check_extension_status or execute_shell_command.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_available_projectsA

Lists all available projects from the port registry file. Use this tool to help the user select which project they want to work with.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full responsibility for behavioral disclosure. It mentions the data source ('port registry file') and implies a read-only operation. However, it does not explicitly state read-only or describe any side effects, though none are expected for a listing operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description consists of two concise sentences with no unnecessary words. It is front-loaded with the primary function and immediately specifies the intended usage scenario.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has no parameters, no output schema, and a simple listing purpose, the description covers all necessary context: what it does and when to use it. No additional information is required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has zero parameters, so schema coverage is 100%. The description does not need to add parameter details. According to guidelines, 0 parameters yields a baseline of 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states that the tool lists all available projects from the port registry file, with a specific verb 'Lists' and resource 'available projects'. It effectively distinguishes itself from sibling tools like 'open_project' which would operate on a selected project.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly instructs to use this tool to help the user select a project, providing clear context for when to invoke it. It does not mention when not to use it or alternatives, but the simple nature of a listing tool makes this omission acceptable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

open_fileA

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
filePathYesPath to the file to open
targetProjectPathYesPath to the project folder we are working in
viewColumnNoThe view column to open the file in (1, 2, 3, etc.)
preserveFocusNoWhether to preserve focus on the current editor
previewNoWhether to open the file in preview mode

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. Only states 'opening a file', with no details on side effects, error handling, or what happens if file doesn't exist. Minimal transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero waste. Front-loaded with core purpose, then usage guidance. Efficient and clear.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simplicity of opening a file and rich schema (5 params fully described), the description is adequate but lacks details on return behavior or edge cases. Could improve but not severely lacking.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline 3 applies. Description does not add meaning beyond schema, but schema already describes each parameter well.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it opens a file in VS Code editor, and distinguishes from siblings like open_project. Provides specific usage guidance for new files and after create_diff.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to use: for brand new files or after using create_diff on an existing file. Does not mention when not to use, but provides clear context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

open_projectA

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
projectPathYesPath to the project folder to open in VS Code
newWindowNoWhether to open the project in a new window

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description lacks details on error handling, side effects (e.g., closing previous projects), or return behavior, which is important for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loading critical usage advice, with no superfluous wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool without output schema, the description adequately covers purpose and usage context, though it could mention what the return or state change is.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3; the description does not add significant meaning beyond the schema's parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('opens a project folder in VS Code') and the resource ('project folder'), and it is distinct from sibling tools like open_file and list_available_projects.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance to call at session start and for ensuring active working directory, but does not mention when not to use or alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 9 tool updatesv1.0.0
    • First observedcheck_extension_status
    • First observedcreate_diff
    • First observedexecute_shell_command
    • First observedget_active_tabs
    • First observedget_context_tabs
    • First observedget_extension_port
    • First observedlist_available_projects
    • First observedopen_file
    • First observedopen_project

TDQS

A3.7/5.0

Scored across 9 tools

Disambiguation5/5

Each tool has a clear and distinct purpose: checking extension status, creating diffs, executing commands, retrieving tab information, getting port, listing projects, opening files, and opening projects. No two tools overlap significantly.

Naming Consistency5/5

All tool names use consistent snake_case with verb_noun pattern (e.g., check_extension_status, open_file, list_available_projects). There is no mixing of conventions or vague verbs.

Tool Count5/5

9 tools is well-scoped for a VS Code MCP server. The count covers essential operations without being overwhelming or sparse.

Completeness4/5

The tool set covers core workflows like project setup, file modification, command execution, and context retrieval. However, there is no direct tool for reading file content, which agents must work around using execute_shell_command.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    F
    maintenance
    MCP server that integrates with VS Code to enable file operations, git diffs, and line highlighting via MCP clients like Claude.
    43
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    A portable MCP server enabling AI assistants to operate VS Code, including file management, extension control, and workspace automation.
    6
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to interact with VS Code's language server protocol features (definitions, references, diagnostics) and debugger (breakpoints, stepping, variable inspection) via an MCP server.
    4 npm
    1
    MIT