zip-packer-mcp

v1.0.1
zip-packer-mcp Checked 1 day ago Published 2 months ago

Model Context Protocol (MCP) server for packing directories into zip files with include/exclude pattern filtering, streaming compression, and npx support.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

zip_directory

Pack a directory into a .zip archive with optional include and exclude glob patterns. If both includes and excludes are specified, excludes are applied on the included set.

ParameterTypeDescription
sourcePath *stringThe directory path to be zipped (absolute or relative).
compressionLevelintegerZip compression level from 0 (no compression) to 9 (maximum compression). Default is 6.
excludesarrayOptional glob patterns of files/directories to exclude (e.g. ["node_modules/**", "*.log"]). Evaluated against the included set.
includesarrayOptional glob patterns of files/directories to include (e.g. ["src/**", "*.json"]). If omitted, all files are included.
outputPathstringOptional destination file path for the .zip file. If omitted, creates `<directory_name>.zip` in the parent directory of sourcePath.
overwritebooleanWhether to overwrite the output file if it already exists. Default is false.
rootPrefixstringOptional top-level folder prefix inside the zip archive (e.g. "my-project/").

preview_zip_contents

Preview the list of files that would be packaged and excluded without actually creating a zip archive.

ParameterTypeDescription
sourcePath *stringThe directory path to inspect.
excludesarrayOptional glob patterns of files/directories to exclude.
includesarrayOptional glob patterns of files/directories to include.
maxPreviewItemsintegerMaximum number of file entries to return in the sample lists.