Skip to main content
Glama

MCP-Delete

by qpd-v

@qpd-v/mcp-delete

ファイル削除機能を提供するモデルコンテキストプロトコル(MCP)サーバー。このサーバーにより、AIアシスタントは必要に応じて、相対パスと絶対パスの両方をサポートし、安全にファイルを削除できます。

特徴

  • 相対パスまたは絶対パスを使用してファイルを削除する
  • 複数の潜在的なパスを試すスマートなパス解決
  • 詳細なパス解決情報を含む明確なエラーメッセージ
  • 削除前に安全なファイルの存在をチェック
  • Claude やその他の MCP 対応 AI アシスタントと連携します

Claude Desktopでの使用

クロードデスクトップの例

VSCode Roo Cline拡張機能を使用する

VSCode Roo Cline の例

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop の File Deletion を自動的にインストールするには:

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インスペクターを使用してください。

npm run inspector

これにより、ブラウザでデバッグ ツールにアクセスするための URL が提供されます。

ライセンス

マサチューセッツ工科大学

著者

qpd-v

Install Server
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. Claude Desktopでの使用
      2. VSCode Roo Cline拡張機能を使用する
    1. インストール
      1. Smithery経由でインストール
      2. 手動インストール
    2. 構成
      1. クロードデスクトップ
      2. VSCode拡張機能
    3. 利用可能なツール
      1. ファイルを削除
    4. パス解決
      1. 発達
        1. デバッグ
      2. ライセンス
        1. 著者

          Related MCP Servers

          • -
            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 -
            14
            9
            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
            22
            3
            TypeScript
            MIT License
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            A comprehensive MCP (Model Context Protocol) server for file system operations, providing Claude and other AI assistants with access to local files and directories.
            Last updated -
            1
            Python
            MIT License
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            A simple Model Context Protocol server that enables AI assistants to interact with local file systems, allowing them to read, write, update, and delete files within a specified project directory.
            Last updated -
            Python
            MIT License

          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