Skip to main content

MCP server for asynchronous shell utilities using aioshutil

Project description

shutil-mcp

An MCP server providing asynchronous shell utilities using aioshutil.

This project offers a set of file system tools designed for AI agents, returning structured JSON output instead of raw text. This allows for more precise and direct consumption of file system data by AI models.

Features

  • Asynchronous Operations: Leverages aioshutil for non-blocking file system tasks.
  • JSON Output: All tools return minified JSON, optimized for AI agents.
  • Jail Support: Restrict file system access to a specific directory tree for security.
  • Detailed Metadata: Tools like ls provide comprehensive information (size, mtime, mode, owner, etc.).
  • HTTP Transport Support: Includes built-in support for SSE and Streamable HTTP transports.

Available Tools

  • ls: List directory contents with detailed metadata.
  • cp: Copy files or directories recursively.
  • mv: Move/rename files or directories.
  • rm: Remove files or directories recursively.
  • chmod: Change file/directory permissions.
  • chown: Change file/directory ownership.
  • disk_usage: Get disk usage statistics for a path.
  • which: Find the path to an executable.
  • make_archive: Create archive files (zip, tar, etc.).
  • unpack_archive: Unpack archive files.
  • get_archive_formats: List supported archive formats.

Installation

pip install shutil-mcp

Usage

Run with stdio transport

shutil-mcp --transport stdio

Run with jail restriction

shutil-mcp --transport stdio --jail /path/to/projects

Run as SSE server

shutil-mcp --transport sse --jail /path/to/projects --port 8000

Development

See @DEVELOPMENT.md for detailed development instructions.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shutil_mcp-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shutil_mcp-0.1.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file shutil_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: shutil_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.14.3 Linux/6.19.11-200.fc43.x86_64

File hashes

Hashes for shutil_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0a0d65811df18499419648e7d78528aa0a4a3f083d6408e5d826abb7369710ce
MD5 ec3ede1c61fbaa995087c10bcfee700c
BLAKE2b-256 0efeb1496ce8de0f3b08174a7ceafce8658b63229215b230d2cd2f5ede1ca9e2

See more details on using hashes here.

File details

Details for the file shutil_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: shutil_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.14.3 Linux/6.19.11-200.fc43.x86_64

File hashes

Hashes for shutil_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7be976e022c136e616a7b6a9f8df1397bd409119bf178a1be748b85c6f662448
MD5 2a7cd7002b794734e1d9872b59573157
BLAKE2b-256 0a83993b08ab8ccb23cba443e2020d6a7b759fd61ea715769b312935e4841a00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page