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.
  • cat: Read file content, optionally limited to a specific line range.
  • 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.2.0.tar.gz (11.7 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.2.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for shutil_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fb5819737497622ac70f6258e1774cf9ab175e94363b673113bab6c5ad02efdf
MD5 87e4f0cf61c028658838374c881f5360
BLAKE2b-256 caaf5313f69149322f383551aa8a3f7e303c33ddcb86c77f6e0c27ea7bb6b3dd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for shutil_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 755f9c99048b02ddf712019112b4b38a6d77db0514e62b8a16dbc3afd78b3bb5
MD5 8747bf475e4308135017362e9a6ecb6f
BLAKE2b-256 c41ed6d70992305a33e6ee2fa07863ea3c59e46b1406d638085b31062c0693a4

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