shutil-mcp
shutil-mcp
aioshutilを使用した非同期シェルユーティリティを提供するMCPサーバー。
このプロジェクトは、AIエージェント向けに設計されたファイルシステムツール群を提供し、 生のテキストではなく構造化されたJSON出力を返します。これにより、AIモデルによる ファイルシステムデータのより正確かつ直接的な消費が可能になります。
機能
非同期操作:
aioshutilとスレッドエグゼキュータを活用し、ノンブロッキングなファイルシステムタスクを実現します。JSON出力: すべてのツールは、AIエージェント向けに最適化された最小化JSONを返します。
ジャイルサポート: セキュリティのため、ファイルシステムアクセスを特定のディレクトリツリーに制限します。
検証と整合性:
mvとcpは、リンク解除または確定の前に宛先データを検証し、部分的な失敗によるデータ損失を防ぎます。可逆的な変更と元に戻す:
chmodとchownは、以前のモードと所有権を返して即時の元に戻す/やり直しを容易にし、失敗時には自動ロールバックします。ソフト削除と復元:
rmはtrash=Trueによるソフト削除と、対応するrestoreツールをサポートします。Zip-Slip保護:
unpack_archiveは、すべてのアーカイブメンバーパスをディレクトリトラバーサル/Zip-Slip攻撃に対して検証します。詳細なメタデータ:
lsやstatなどのツールは、包括的な情報(サイズ、mtime、モード、所有者など)を提供します。HTTPトランスポートサポート: SSEおよびStreamable HTTPトランスポートの組み込みサポートを含みます。
Related MCP server: File Manager MCP Server
利用可能なツール
ls: 詳細なメタデータを含むディレクトリ内容を一覧表示します。cp: 検証付きでファイルまたはディレクトリを再帰的にコピーします。mv: 安全な削除前検証付きでファイルまたはディレクトリを移動/名前変更します。rm: ファイルまたはディレクトリを削除します(trash=Trueによるソフト削除をサポート)。restore: ゴミ箱からファイルまたはディレクトリを復元します。chmod: ロールバックと以前のモード付きでファイル/ディレクトリの権限を変更します。chown: ロールバックと以前の所有者付きでファイル/ディレクトリの所有権を変更します。disk_usage: パスのディスク使用量統計を取得します。which: 実行可能ファイルへのパスを検索します。cat: ファイル内容を読み取ります。オプションで特定の行範囲に制限できます。glob: globパターンに一致するファイルを検索します。grep: 正規表現パターンを使用してファイル内容を検索します。tree: 再帰的なディレクトリツリーをネストされたJSONとして取得します。make_archive: 上書きガード付きでアーカイブファイル(zip、tarなど)を作成します。unpack_archive: Zip-Slip保護付きでアーカイブファイルを安全に展開します。get_archive_formats: サポートされているアーカイブ形式を一覧表示します。
インストール
pip install shutil-mcp使用方法
stdioトランスポートで実行
shutil-mcp --transport stdioジャイル制限付きで実行
shutil-mcp --transport stdio --jail /path/to/projectsSSEサーバーとして実行
shutil-mcp --transport sse --jail /path/to/projects --port 8000開発
詳細な開発手順については、DEVELOPMENT.mdを参照してください。
ライセンス
MIT
This server cannot be installed
Maintenance
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables secure filesystem operations with directory sandboxing and optional read-only mode. Supports file reading/writing, directory management, file searching, and text operations while restricting access to specified directories.12
- FlicenseNot gradedqualityDmaintenanceProvides secure file system operations for AI assistants including directory listing, file reading/writing, deletion, searching, and copying. Features safety controls like path validation, permission checks, and file size limits.
- AlicenseNot gradedqualityCmaintenanceProvides secure, sandboxed file system access for AI assistants to read, write, and manage project files with controlled command execution capabilities, all confined to a designated workspace directory.MIT
- FlicenseNot gradedqualityDmaintenanceProvides secure file read and write operations within a sandboxed directory, allowing AI assistants to safely create, modify, and access files without risk of accessing the broader file system.
Related MCP Connectors
Securely search and manage workspace context files for AI agents and teams.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Project management MCP for AI agents with safe task reads and writes.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/cwt/shutil-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server