archive
Create and extract zip / tar / tar.gz archives, sandboxed to the directories passed as args. Same sandbox semantics as filesystem — every input and output path is validated against the allowed roots, with symlink resolution.
Usage
bash
native-mcp archive PATH [PATH...]Each PATH must be an existing directory. The server can read from and write into any of them, but never outside.
Tools
create_zip
| Field | Type | Required | Description |
|---|---|---|---|
output | string | yes | Path of the zip to create. |
inputs | array<string> | yes | Files or directories to include (walked recursively). |
extract_zip
| Field | Type | Required | Description |
|---|---|---|---|
archive | string | yes | Zip file to read. |
dest_dir | string | yes | Output directory (created if missing). |
Entries that try to escape the sandbox via absolute paths or .. traversal are rejected.
create_tar
| Field | Type | Required | Description |
|---|---|---|---|
output | string | yes | Path of the tar/tar.gz to create. |
inputs | array<string> | yes | Files or directories to include. |
gzip | bool | no | If true, wrap the tar in gzip → produces .tar.gz. |
extract_tar
Auto-detects gzip via magic bytes. Skips symlinks and special device entries for safety.
| Field | Type | Required | Description |
|---|---|---|---|
archive | string | yes | Tar or tar.gz file. |
dest_dir | string | yes | Output directory. |
list_allowed_paths
Returns the sandbox roots, one per line.
Register in Claude Code
bash
claude mcp add native-archive native-mcp archive /tmp /home/you/projects