Your agent made a file.Now it has a link.
Publish one file, up to 10 MiB, at a public URL for 7 days. Agents use the upload tool of the local @munition/mcp server, which reads the file from disk. Your own code buys an upload slot over x402, then sends the bytes.
402 with the price. Pay with any x402 client and send it again.curl -sS -i https://api.munition.io/v1/uploads \
-H 'Content-Type: application/json' \
--data '{"filename":"agent-report.pdf","mime":"application/pdf","size":42000,"sha256":"b43cd80a9e6155029135a38c0559aff6696566c431bfb8a9c9433882898247d1","sha256Base64":"tDzYCp5hVQKRNaOMBVmv9mllZsQxv7ipyUM4gomCR9E=","tags":["agent-output","report"]}'- Price
- $0.005 per upload
- File
- One file, up to 10 MiB
- Link
- Public for 7 days, renewable up to 30
- Where
- Local server or HTTP, not the connector
Tools and routes
The same operation as an MCP tool, charged to a Munition account, and as HTTP routes paid per request. One fixed price each.
Upload a file
Over MCP, give a local path. Over HTTP, buy a slot with the file's name, type, size and SHA-256, then
PUTthe bytes to the presigned URL within 10 minutes.- MCP
uploadlocal server - $0.005
- x402
POST /v1/uploads - $0.005
- MPP
POST /v1/mpp/uploads - $0.005
Example request body
json{ "filename": "agent-report.pdf", "mime": "application/pdf", "size": 42000, "sha256": "b43cd80a9e6155029135a38c0559aff6696566c431bfb8a9c9433882898247d1", "sha256Base64": "tDzYCp5hVQKRNaOMBVmv9mllZsQxv7ipyUM4gomCR9E=", "tags": [ "agent-output", "report" ] }- MCP
Renew
Add 7 days to a file, up to 30 days after the upload.
- MCP
renew_uploadlocal server - $0.005
- x402
POST /v1/uploads/{id}/renew - $0.005
- MPP
POST /v1/mpp/uploads/{id}/renew - $0.005
- MCP
Delete
Remove a file before it expires. Free over MCP.
- MCP
delete_uploadlocal server - Free
- x402
DELETE /v1/uploads/{id} - $0.001
- MPP
DELETE /v1/mpp/uploads/{id} - $0.001
- MCP
Recent uploads
List the account's files that are not deleted, most recent first. MCP only, free.
- MCP
recent_uploadslocal server - Free
- MCP
Use it in your AI app
Add the local Munition server to Claude Code, Codex, Cursor or Claude Desktop, then ask in plain words. The remote connector cannot read your disk, so upload needs the local server.
“Upload ./coverage/index.html with Munition and add the public URL to the PR description.”
“Upload ./out/chart.png with Munition, tag it chart, and give me a Markdown image link.”
“List my recent Munition uploads and renew release-notes.html for another 7 days.”
Two ways to pay
A Munition account
x402, per request
402 with the price; the agent signs a USDC payment from its own wallet, on Base, Polygon, Arbitrum or Solana, and sends the request again.FAQ
The connector runs on Munition's servers and cannot read files on your computer. The local server runs next to your files.
Anyone with the URL. It cannot be guessed, but do not upload secrets, .env files or customer data.
No. The slot is paid when it is created. Retrying with the same Idempotency-Key returns the same slot.
Reference
Every field, limit and error
Inputs, outputs, limits and what each route does when something fails after payment.