Skip to main content
Glama

MCP-Delete

by qpd-v

@qpd-v/mcp-删除

提供文件删除功能的模型上下文协议 (MCP) 服务器。该服务器允许 AI 助手在需要时安全地删除文件,并支持相对路径和绝对路径。

特征

  • 使用相对或绝对路径删除文件
  • 尝试多条潜在路径的智能路径解析
  • 清晰的错误信息,包含详细的路径解析信息
  • 删除前进行安全文件存在性检查
  • 与 Claude 和其他兼容 MCP 的 AI 助手配合使用

示例

与 Claude Desktop 一起使用

Claude 桌面示例

与 VSCode Roo Cline 扩展一起使用

VSCode Roo Cline 示例

安装

通过 Smithery 安装

要通过Smithery自动安装 Claude Desktop 的文件删除功能:

npx -y @smithery/cli install @qpd-v/mcp-delete --client claude

手动安装

npx @qpd-v/mcp-delete

或者全局安装:

npm install -g @qpd-v/mcp-delete

配置

克劳德桌面

将服务器配置添加到您的 Claude Desktop 配置文件:

视窗:

// %APPDATA%/Claude/claude_desktop_config.json { "mcpServers": { "mcp-delete": { "command": "npx", "args": ["@qpd-v/mcp-delete"] } } }

MacOS:

// ~/Library/Application Support/Claude/claude_desktop_config.json { "mcpServers": { "mcp-delete": { "command": "npx", "args": ["@qpd-v/mcp-delete"] } } } }

VSCode 扩展

将服务器配置添加到您的 Cline 设置中:

视窗:

// %APPDATA%/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json { "mcpServers": { "mcp-delete": { "command": "npx", "args": ["@qpd-v/mcp-delete"] } } }

MacOS:

// ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json { "mcpServers": { "mcp-delete": { "command": "npx", "args": ["@qpd-v/mcp-delete"] } } } }

可用工具

删除文件

删除指定路径下的文件。

参数:

  • path (字符串,必需):要删除的文件的路径(相对于工作目录或绝对路径)

Claude 中的用法示例:

You can ask me to delete a file like this: "Please delete the file example.txt" I will use the delete_file tool to safely remove the file.

路径解析

服务器通过尝试多种方法智能地处理路径解析:

  1. 提供的确切路径
  2. 相对于当前工作目录的路径
  3. 相对于指定基目录的路径

这使得它更加用户友好,因为文件可以通过相对路径引用,并且服务器将尝试正确定位它们。

发展

克隆存储库:

git clone https://github.com/qpd-v/mcp-delete.git cd mcp-delete

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。请使用 MCP Inspector 进行调试:

npm run inspector

这将提供一个 URL 来访问浏览器中的调试工具。

执照

麻省理工学院

作者

qpd-v

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

提供文件删除功能的模型上下文协议 (MCP) 服务器。该服务器允许 AI 助手在需要时安全地删除文件,并支持相对路径和绝对路径。

  1. 特征
    1. 示例
      1. 与 Claude Desktop 一起使用
      2. 与 VSCode Roo Cline 扩展一起使用
    2. 安装
      1. 通过 Smithery 安装
      2. 手动安装
    3. 配置
      1. 克劳德桌面
      2. VSCode 扩展
    4. 可用工具
      1. 删除文件
    5. 路径解析
      1. 发展
        1. 调试
      2. 执照
        1. 作者

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol (MCP) server that provides tools for managing todo items, including creation, updating, completion, deletion, searching, and summarizing tasks.
            Last updated -
            10
            4
            TypeScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            Implements the Model Context Protocol (MCP) to provide AI models with a standardized interface for connecting to external data sources and tools like file systems, databases, or APIs.
            Last updated -
            90
            Python
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol (MCP) server that allows AI models to safely access and interact with local file systems, enabling reading file contents, listing directories, and retrieving file metadata.
            Last updated -
            47
            1
            JavaScript
            MIT License
            • Linux
          • A
            security
            A
            license
            A
            quality
            A server that uses the Model Context Protocol (MCP) to allow AI agents to safely execute shell commands on a host system.
            Last updated -
            1
            76
            2
            TypeScript
            MIT License
            • Linux
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/qpd-v/mcp-delete'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server