zip-packer-mcp
v1.0.1Model 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.
| Parameter | Type | Description |
|---|---|---|
sourcePath * | string | The directory path to be zipped (absolute or relative). |
compressionLevel | integer | Zip compression level from 0 (no compression) to 9 (maximum compression). Default is 6. |
excludes | array | Optional glob patterns of files/directories to exclude (e.g. ["node_modules/**", "*.log"]). Evaluated against the included set. |
includes | array | Optional glob patterns of files/directories to include (e.g. ["src/**", "*.json"]). If omitted, all files are included. |
outputPath | string | Optional destination file path for the .zip file. If omitted, creates `<directory_name>.zip` in the parent directory of sourcePath. |
overwrite | boolean | Whether to overwrite the output file if it already exists. Default is false. |
rootPrefix | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
sourcePath * | string | The directory path to inspect. |
excludes | array | Optional glob patterns of files/directories to exclude. |
includes | array | Optional glob patterns of files/directories to include. |
maxPreviewItems | integer | Maximum number of file entries to return in the sample lists. |