McpStamp Zip Archives

v0.23.0
io.github.theluckystrike/zip-archive-create-extract-bomb-guard Checked 3 days ago Published 1 month ago

Create zip archives, list their contents with safety flags, and extract without unsafe entries.

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

license_status License status

Report this endpoint's licence state for your token as JSON: the product, the tier free or pro, why it is not Pro, and the checkout URL. Call it to explain a free-tier refusal. No arguments, nothing changes.

license_activate Activate license

Turn Pro on for this connection with key, an MCPL1.<payload>.<signature> issued at checkout for this server or the bundle. Data under your token stays; a wrong or expired key changes nothing. license_status confirms it.

ParameterTypeDescription
key *stringLicense key from checkout, MCPL1.<payload>.<signature>

zip_upload Upload a file or an archive

Send a file to this hosted endpoint. There is no filesystem here, so instead of a path you upload the file once with zip_upload and then pass its name wherever a path is asked for: an archive to zip_list, zip_extract, zip_extract_text or zip_add, a plain file to zip_create. Give exactly one of content_base64 (the file's bytes, the only paste form an archive can take), content (text, for a text file to pack) or url. url: fetch a public file instead of pasting base64 (recommended above about 10 KB): the url is fetched here with a 10 second timeout, at most 3 redirects, public http(s) hosts only,…

ParameterTypeDescription
name *stringName to refer to this file by: 1-64 characters of letters, digits, underscore or dash, with an optional extension. No extension means .zip, e.g. "reports" or "notes.txt"
contentstringThe file as text (a .txt, .csv, .md or source file to pack). Not accepted for a .zip
content_base64stringThe file's bytes, base64-encoded. This is the only paste form an archive can be uploaded in
urlstringurl: fetch a public file instead of pasting base64 (recommended above about 10 KB). Public http(s) only; private, link-local and this endpoint's own zone are refused

zip_files List uploaded files

List the files stored for your token on this endpoint, with their sizes. These are the names every path argument here resolves against.

zip_delete_upload Delete an uploaded file

Delete one uploaded file stored for your token. The register rows zip_history lists are kept.

ParameterTypeDescription
name *string

zip_create Create a zip archive

Call this tool to pack files uploaded with zip_upload into a new .zip and get a download link valid for one hour. Entry names are always relative, so the archive cannot write outside where it is unpacked.

ParameterTypeDescription
out_path *stringName for the archive, e.g. reports. It comes back as a download link valid for one hour; a name already produced in this request is refused without overwrite
dirstringNot available on this hosted endpoint: there are no directories. Passing it is refused rather than ignored, so nobody believes a tree was packed
excludearrayDrop entries matching one of these globs, applied after patterns
levelintegerDeflate level 0 to 9, default 6. 0 stores without compressing
overwritebooleanReplace out_path if a file is already there. Default false: an existing file is never overwritten
passwordstringNot supported. Passing it is refused rather than ignored, so no one believes an archive is encrypted when it is not
pathsarrayNames of files uploaded with zip_upload, each packed under that name
patternsarrayOnly entries matching one of these globs (* and ? inside a segment, ** across segments; a pattern with no slash also matches the file name at any depth)

zip_list List a zip archive

Call this tool to list an archive's entries with sizes and ratios and flag what is dangerous: absolute paths, .., symlinks, encrypted entries, duplicate names and bombs. Read-only. Run it before zip_extract.

ParameterTypeDescription
path *stringPath to the .zip file. Read-only: the archive is never modified and nothing is extracted
limitintegerHow many entries to print, largest first (default 50). The totals always cover every entry
max_rationumberFlag an entry whose uncompressed/compressed ratio is above this. Default 100
patternsarrayOnly entries matching one of these globs

zip_extract Extract a zip archive

Call this tool to unpack an archive; every entry comes back as its own download link valid for one hour. Traversal, absolute-path and symlink entries are refused, a size and ratio cap stops a zip bomb, and dry_run reports exactly what would be written.

ParameterTypeDescription
path *stringPath to the .zip file
dry_runbooleanReport what would be written, byte counts included, and write nothing
max_rationumberRefuse an entry whose uncompressed/compressed ratio is above this. Default 100
max_total_mbnumberRefuse if the selected entries declare more than this uncompressed. Default 1024
out_dirstringIgnored on this hosted endpoint: there are no directories, and every extracted entry comes back as its own download link valid for one hour
overwritebooleanReplace files that already exist in out_dir. Default false: the whole extraction is refused if any would be replaced
patternsarrayOnly entries matching one of these globs (* and ? inside a segment, ** across segments)
skip_unsafebooleanSkip the dangerous entries and extract the rest, naming what was skipped. Default false: one bad entry refuses the whole archive

zip_add Add files to a zip

Call this tool to add files to an existing archive under their own names, or under prefix. A name clash is refused unless replace. An archive holding unsafe entries is refused rather than rewritten.

ParameterTypeDescription
path *stringPath to the existing .zip file
paths *arrayFiles to add, each stored under its own file name. A directory contributes its tree under its own name
levelintegerDeflate level 0 to 9 for the new entries, default 6
passwordstringNot supported. Passing it is refused rather than ignored
prefixstringPut the new entries under this folder inside the archive, for example "invoices"
replacebooleanReplace an entry whose name is already in the archive. Default false: a name clash is refused and nothing is changed

zip_extract_text Read one entry as text

Call this tool to read one text entry out of an archive without unpacking anything: give the entry name and the text comes back inline. Binary entries are refused by name rather than printed as noise.

ParameterTypeDescription
entry *stringExact entry name, as zip_list prints it. A glob is accepted when it matches exactly one entry
path *stringPath to the .zip file
max_charsintegerStop after this many characters (default 200000). The answer says when it was cut

zip_bundle_month Bundle a month of documents

Local (stdio) install only. On this hosted endpoint /mcp/invoice, /mcp/quotes, /mcp/expense-tracker, /mcp/docx and /mcp/resume return their documents as one-hour download links and keep no output folder to read, so there is nothing for this tool to bundle. Pack the files with zip_upload plus zip_create instead.

ParameterTypeDescription
dry_runbooleanReport what would go in and write nothing
monthstringMonth as YYYY-MM. Default: this month. Files are chosen by their modification date
out_pathstringName for the bundle. Default: the month, e.g. 2026-09
overwritebooleanReplace out_path if it exists. Default false
serversarrayOnly these sibling servers: invoice, quotes, expense-tracker, docx, resume. Default: all five

zip_history Archives created

List the archives created for your token, newest first, with entry counts, sizes and names, plus how much of the free 20 a month is used. Each download link expires after an hour; the row keeps the name.

ParameterTypeDescription
limitintegerHow many rows to show, newest first (default 20)