---
name: munition-onboarding
description: Set up Munition for your agent - MCP install, anonymous account, USDC x402 wallet, and pay-per-use services
homepage: https://munition.io
metadata:
  version: 5
---

# Munition Onboarding

Munition is agentic x402 infrastructure for small paid services. The local MCP adapter creates a Munition account and wallet when an account-backed tool needs it. Direct HTTP clients use their own compatible funded payment wallet; separate provider API keys are not required. This skill guides the user through one-time setup for the local MCP adapter: install the Munition MCP server, create the local anonymous account, and fund the account wallet with USDC when needed. `flight_booking_links` constructs external URLs locally for free and requires no account, wallet, payment, or API call.

Direct x402 routes advertise USDC on Base, Polygon, Arbitrum, and Solana. Separate MPP routes support upload, flight search, upload renewal/deletion and the web search / page reading / Google proxies on Base, Polygon, and Arbitrum. PDF rendering is direct HTTP x402 or the account-funded MCP tool `render_pdf`. Read the live challenge for accepted networks and amounts. The per-account topup wallet is Base-only.

Current Munition services include **Munition Upload** for temporary public file URLs, **Munition HTML to PDF**, **web search / page reading / Google results proxies** (Exa, Firecrawl, Serper — HTTP x402 or MPP), **Munition Flight Search** for live flight offer search, **Munition Airport Search** for airport reference data, **Munition Flight Offer Details** for paid offer lookups, and free **Munition Flight Booking Links** for external Kayak and Kiwi searches.

## Important Files

| File | URL |
|------|-----|
| **SKILL.md** (this file) | `https://munition.io/skill.md` |
| **Remote MCP server** | `https://api.munition.io/mcp` (guide: `https://munition.io/connect.md`) |
| **Upload service page** | `https://munition.io/upload` |
| **MCP package** | `https://www.npmjs.com/package/@munition/mcp` |
| **MCP package metadata** | `https://api.munition.io/.well-known/mcp-server.json` |
| **API catalog** | `https://api.munition.io/.well-known/api-catalog` |
| **Agent payment OpenAPI** | `https://api.munition.io/openapi.json` (alias `https://api.munition.io/openapi-agents.json`) |
| **Full OpenAPI (includes account endpoints)** | `https://api.munition.io/openapi-full.json` |
| **Current prices** | `https://api.munition.io/v1/tools/prices` |
| **x402 resources** | `https://api.munition.io/.well-known/x402.json` |
| **MPP resources** | `https://api.munition.io/.well-known/mpp.json` |
| **API instructions** | `https://api.munition.io/llms.txt` |
| **Munition API origin** | `https://api.munition.io` |
| **Direct Upload API** | `https://api.munition.io/v1/uploads` |
| **Direct Flight Search API** | `https://api.munition.io/v1/flights/search` |
| **Direct Airport Search API** | `https://api.munition.io/v1/airports/search` |
| **Direct Flight Offer Details API** | `https://api.munition.io/v1/flights/offers/{id}` |
| **Files CDN** | `https://files.munition.io` |
| **Top-up web app** | `https://munition.io` |

**Check for updates:** Re-fetch this file anytime to see new tools, pricing, install commands, and operational guidance.

## What Munition Provides

- A local stdio MCP server installed with `npx -y @munition/mcp`
- A wrapper for multiple paid agent services
- A direct x402 HTTP API for services that can be bought without installing MCP
- A current service catalog, including Munition Upload, Munition HTML to PDF, Exa/Firecrawl/Serper proxies, Munition Flight Search, Munition Airport Search, and Munition Flight Offer Details, plus free Flight Booking Links
- Anonymous account creation when an account-backed tool needs it
- Local account state stored at `~/.munition/config.json`
- deposit funding into a per-account USDC wallet on Base
- x402 settlement signed from the account wallet
- Account-funded MCP tools for upload, flight search, flight offer details and, from `@munition/mcp` 0.0.15, web research and HTML to PDF
- Free local `flight_booking_links` URL generation without onboarding or payment

## Remote MCP (no install)

If the user's app supports remote MCP connectors (Claude.ai, Claude Desktop/mobile chat, ChatGPT developer mode, Claude Code, Codex, Cursor), the fastest setup is the remote server instead of the npm package:

- Add `https://api.munition.io/mcp` as a custom connector (Claude: Settings → Connectors → Add custom connector; Claude Code: `claude mcp add --transport http munition https://api.munition.io/mcp`).
- The app opens a Munition consent page; one click creates an anonymous Munition account for that browser (no email, password or API key) and connects.
- Free tools: `catalog`, `balance`, `topup_link`, `get_run`, `flight_booking_links`. Paid tools (`web_search`, `web_contents`, `web_scrape`, `google_search`, `render_pdf`, `search_flights`, …) are charged to the account balance at the same fixed per-call prices as the HTTP routes.
- When the balance is too low, the tool result contains a one-click top-up link: give it to the user, wait for funding, then retry.
- When a web research or flight tool fails after its payment, the error carries `paidCallId` and a note: the payment was kept, and calling the same tool again with the same arguments within 24 hours retries it without a second charge. Do not pay for it another way.
- Users of the local `@munition/mcp` can reuse their account and balance: run its `connect_link` tool (0.0.16+), open the link in the browser used for the connector, then connect.
- File upload tools that read local paths (`upload`, `renew_upload`, `delete_upload`, `recent_uploads`) stay local-only.

Full per-client guide: https://munition.io/connect.md

## Current Services

### Munition Upload

Use Munition Upload when the user needs an agent to publish a local artifact and return a public URL. Good fits include generated PDFs, screenshots, images, rendered reports, JSON files, logs, and temporary files that need to be shared with browsers, webhooks, collaborators, tests, or chat.

Munition Upload is not the whole Munition product. It is one paid service exposed through the Munition wrapper.

Direct x402/Bazaar clients can buy an upload slot at `POST https://api.munition.io/v1/uploads`. Cost: `0.005 USDC` via x402 on Base, Polygon, Arbitrum, or Solana, or via MPP on Base, Polygon, or Arbitrum at `POST /v1/mpp/uploads`. Local MCP clients should still use `@munition/mcp` because it can read local file paths before uploading.

Uploads can include optional `tags` metadata. The `tags` field is always a JSON array of strings such as `["agent-output", "report"]`; it is supported by direct upload slot creation and by the MCP `upload` tool. Tags are returned on upload responses and recent upload history so agents can categorize generated artifacts. `tags` may be omitted for backward compatibility, or set to `[]` when no labels are needed. If provided, use at most 20 non-empty string tags, each 64 characters or shorter.

### Munition Flight Search

Use Munition Flight Search to retrieve Duffel-backed live flight offers. The MCP tool name is `search_flights`, and direct x402/Bazaar clients can call `POST https://api.munition.io/v1/flights/search`. Keep this service separate from external flight search links; do not use Duffel results to redirect a traveler to another seller.

Cost: `0.05 USDC` via x402 on Base, Polygon, Arbitrum, or Solana, or via MPP on Base, Polygon, or Arbitrum per search.

Input shape:

```json
{
  "origin": "SFO",
  "destination": "NRT",
  "departureDate": "2027-08-10",
  "returnDate": "2027-08-21",
  "adults": 1,
  "children": 0,
  "infants": 0,
  "travelClass": "ECONOMY",
  "nonStop": false,
  "maxResults": 10,
  "maxPrice": 900,
  "currency": "USD"
}
```

Required fields are `origin`, `destination`, and `departureDate`. `origin` and `destination` are 3-letter IATA airport codes; dates use `YYYY-MM-DD`. The result contains normalized offers with prices, currency, airline codes, itineraries, and search metadata.

### Munition Airport Search

Use Munition Airport Search when an AI agent needs normalized airport records before travel planning. Direct x402/Bazaar clients can call `POST https://api.munition.io/v1/airports/search`.

Cost: `0.001 USDC` via x402 on Base, Polygon, Arbitrum, or Solana per search. MPP is not advertised for this route.

### Munition Flight Offer Details

Use Munition Flight Offer Details when an AI agent already has a Duffel flight offer id and needs its baggage, cabin, fare conditions, itinerary segments, and total price details. Direct x402/Bazaar clients can call `GET https://api.munition.io/v1/flights/offers/{id}`. This does not create an external booking link.

Cost: `0.01 USDC` via x402 on Base, Polygon, Arbitrum, or Solana per lookup. MPP is not advertised for this route.

### Munition Flight Booking Links

Call `flight_booking_links` when the traveler wants to start a new search on Kayak or Kiwi from their route and dates. The tool generates URLs locally for free: no Munition onboarding, account, wallet, payment, provider API key, or affiliate setup is needed to construct them.

```json
{
  "origin": "SFO",
  "destination": "NRT",
  "departureDate": "2027-08-10",
  "returnDate": "2027-08-21"
}
```

Use 3-letter IATA codes and `YYYY-MM-DD` dates. Omit `returnDate` for one-way travel. This example generates:

- `https://www.kayak.com/flights/SFO-NRT/2027-08-10/2027-08-21`
- `https://www.kiwi.com/deep?from=SFO&to=NRT&departure=2027-08-10&return=2027-08-21`

Present these as new external searches. The traveler must review passenger counts, cabin, itinerary, availability, seller, and final price on the external site before booking. Munition does not reserve a seat, charge airfare, or receive booking confirmation through this tool. It accepts no Duffel offer ID and does not preserve or guarantee a Duffel fare. Do not use it to redirect Duffel results to another seller.

The URLs have no Munition tracking or affiliate identifiers, and no affiliate commission is attached. Commercial and affiliate use remains subject to provider terms; an accepted program is required before adding affiliate identifiers.

HTTP clients can use the same input with `POST https://api.munition.io/v1/tools/flight-booking-links`. This endpoint is free and unauthenticated; the server only constructs URLs and does not call a travel provider.

### Munition Upload Renew/Delete Direct Routes

Direct clients can renew upload links at `POST https://api.munition.io/v1/uploads/{id}/renew` for `0.005 USDC` via x402 on Base, Polygon, Arbitrum, or Solana, or via MPP on Base, Polygon, or Arbitrum. Direct clients can delete uploads at `DELETE https://api.munition.io/v1/uploads/{id}` for `0.001 USDC` on the same direct route networks.

### Munition HTML to PDF

Direct x402/Bazaar clients can call `POST https://api.munition.io/v1/render/pdf`.
Access: paid via x402 on Base/Polygon/Arbitrum/Solana, 0.020 USDC (20000 atomic units), direct HTTP x402 or the account-funded MCP tool `render_pdf` (`@munition/mcp` 0.0.15+); there is no MPP route.
Use when an AI agent has produced a report, invoice, comparison or summary as self-contained HTML and needs to hand a real PDF file to a human or another system.
Input: JSON { html, filename? }; self-contained HTML up to 1 MiB UTF-8 with inline CSS and data: images only (no scripts, iframes, external or relative resources); filename 1–180 characters without consecutive dots (..). Output is A4, at most 20 pages / 10 MiB: { id, publicUrl, expiresAt, bytes, pages, sha256, renderMs }. OpenAPI components RenderPdfInput and RenderPdfOutput are the full contract.
PDF URLs are public, not private: do not submit confidential content. expiresAt is seven-day deletion eligibility, not a hard public-access/privacy cutoff; daily cleanup, asynchronous lifecycle deletion and caches can extend access. PDF render/ artifacts are not renewable via direct x402 or MPP upload-renew endpoints; ordinary uploads remain renewable.
Unsigned POST requests (no payment header) receive the standard 402 PAYMENT-REQUIRED challenge before body validation. Signed requests validate JSON, schema and forbidden HTML before payment verification, reservation or settlement; HTTP 400 exposes only a bounded reason, up to three allowlisted issues (path/rule) and a minimal valid example, never submitted content. Minimal valid JSON: {"html":"<h1>Report</h1>"}. The challenge's canonical body schema is at extensions.bazaar.schema.properties.input.properties.body. GET /health is API liveness only; GET/HEAD /v1/render/pdf answer with the same unpaid 402 challenge and never render.
render_settlement_unknown is ambiguous settlement, not proof of payment; known-paid interrupted effects need manual reconciliation. Preserve paidCallId, selected chain, original payment envelope and transaction/receipt evidence securely. Do not pay again or create a new paid attempt as recovery. Any replay must use the identical envelope, Idempotency-Key and body; changing keys with the same envelope is not globally deduplicated. No global exactly-once guarantee or automatic PDF recovery/refund exists.
Owner-approved manual paid-without-PDF policy: do not pay again. Reconcile the actual chain outcome first; ambiguous settlement is not proof of payment. For verified payment and non-delivery, Munition manually delivers the artifact without another charge or issues an explicitly authorized refund after verification. No automatic refund and no promised resolution SLA.

### Web search, page reading and Google results (wave 1 proxies)

Ten pay-per-call routes that forward a validated JSON request to a third-party API. No API key, no subscription; x402 on Base/Polygon/Arbitrum/Solana, fixed price per call. Each route also has an MPP mirror at the same path under `/v1/mpp/` (for example `POST https://api.munition.io/v1/mpp/exa/search`) with the same price, input and output: stablecoin-only USDC on Base/Polygon/Arbitrum via `Authorization: Payment`; call without Authorization to receive the `WWW-Authenticate: Payment` challenge. Every route: POST JSON; without a payment header it answers 402 with the challenge before reading the body; with one, invalid input gets 400 before the payment is verified; Idempotency-Key replays return the stored result without a second charge; 422/502 after payment means the upstream provider failed and the response carries paidCallId — do not pay again: the same request with the same Idempotency-Key calls the provider again without a second charge. Full schemas: https://api.munition.io/openapi.json (components ExaSearchInput, FirecrawlScrapeOutput, …).

- POST https://api.munition.io/v1/exa/search — 0.01 USDC. Neural web search (Exa): up to 25 ranked results with title, url, date, author; add contents.text / highlights / summary to get page content in the same call; category (news, research paper, company, github, people…), domain include/exclude and date filters. Best first choice for research questions and finding sources.
- POST https://api.munition.io/v1/exa/contents — 0.002 USDC. Clean text of up to 20 URLs from Exa's index, with live-crawl fallback. Cheapest way to read many known pages.
- POST https://api.munition.io/v1/exa/find-similar — 0.01 USDC. Pages semantically similar to a URL (competitors, related articles).
- POST https://api.munition.io/v1/exa/answer — 0.01 USDC. Direct answer to a question with the source pages as citations.
- POST https://api.munition.io/v1/firecrawl/scrape — 0.015 USDC. One URL rendered with JavaScript and converted to markdown (optionally html, links, summary). Use when a plain fetch returns empty, JS-only or 403 content.
- POST https://api.munition.io/v1/firecrawl/search — 0.03 USDC. Web search returning up to 20 results, optionally with the full markdown of each result in the same call.
- POST https://api.munition.io/v1/serper/search — 0.004 USDC. Google web results (organic with snippets, answer box, knowledge graph, people-also-ask, related searches); country gl and language hl selectable.
- POST https://api.munition.io/v1/serper/news — 0.004 USDC. Google News with source, date and time filter (tbs=qdr:d/w/m).
- POST https://api.munition.io/v1/serper/images — 0.004 USDC. Google Images with image URLs, dimensions and source pages.
- POST https://api.munition.io/v1/serper/shopping — 0.004 USDC. Google Shopping products with price, seller and rating.

## Choose the service from the task

| User intent | Service and integration |
| --- | --- |
| "Share the PDF or screenshot you just generated" | Local MCP `upload` with an absolute path; return its public URL. Maximum 10 MiB, 7-day retention. |
| "Turn this HTML report into a PDF" | HTTP x402 `POST /v1/render/pdf`; supply self-contained HTML and return the resulting `publicUrl`. This is rendering, so there is no separate upload step. |
| "Research a topic and read the sources" | HTTP x402 Exa search and contents, or Firecrawl search/scrape. Choose using the schemas and per-call prices below. |
| "Find Google news, images, or shopping results" | HTTP x402 Serper news/images/shopping route; use the returned source links in the result. |
| "Compare flights" | MCP `search_flights` or direct flight-search HTTP route. Use an actual returned offer ID for a subsequent details lookup; search and details do not book a ticket. |
| "Find my previous report" | MCP `recent_uploads`; inspect returned filenames and tags and paginate if needed. There is no tag-filter parameter. |
| "Keep this uploaded report available another week" | MCP `renew_upload` with its file ID, or the direct upload-renew route. Generated PDF render artifacts are not renewable through these routes. |

Example agent request: "Research this topic with Munition web search, read the relevant sources, create a self-contained HTML report with source links, and render it as a PDF using Munition. Return the public PDF URL." This uses separate paid HTTP requests; choose their scope and count within the user's spending instructions. With `@munition/mcp` 0.0.15 or later the same flow works through MCP tools (`web_search`, `web_contents`, `web_scrape`, … and `render_pdf`), each paid from the account wallet at the HTTP price; older MCP versions do not expose these tools.

## Direct HTTP discovery and upload

1. Fetch the free API catalog and `https://api.munition.io/openapi.json` for pay-per-call routes. Use `https://api.munition.io/openapi-full.json` when account endpoints are needed. Read protocol-specific metadata for x402 or MPP. These are Munition-hosted documents; they do not establish an external marketplace listing.
2. Use a compatible payment client to read the live challenge and submit payment credentials. Direct x402 upload uses `POST https://api.munition.io/v1/uploads`; MPP uses `POST https://api.munition.io/v1/mpp/uploads`. A plain HTTP client can inspect metadata and unpaid challenges but cannot complete paid calls without a payment wallet/client.
3. For an upload, calculate `size`, `sha256` (hex) and `sha256Base64` from the same bytes. Submit those with `mime`, optional `filename`, and optional `tags`. The HTTP server cannot read a local path in JSON. Reuse one `Idempotency-Key` and identical input for retries of the same operation.
4. The paid upload response reserves a slot. Transfer the original bytes using the returned `uploadMethod`, `uploadUrl`, and every `uploadHeaders` entry before `uploadUrlExpiresAt`. Check the PUT succeeds before returning `publicUrl`, `id`, and `expiresAt`. Do not call the account finalize endpoint in this direct flow.

Free discovery commands:

```bash
curl -fsS https://api.munition.io/.well-known/api-catalog
curl -fsS https://api.munition.io/openapi.json
curl -fsS https://api.munition.io/v1/tools/prices
```

MPP flight search uses `/v1/mpp/flights/search`; the web search, page reading and Google routes use `/v1/mpp/exa/*`, `/v1/mpp/firecrawl/*` and `/v1/mpp/serper/*`; MPP upload renewal and deletion use `/v1/mpp/uploads/{id}/renew` and `/v1/mpp/uploads/{id}`. Follow the methods and contracts in OpenAPI rather than sending MPP credentials to x402 paths. Direct upload deletion is paid; account MCP `delete_upload` is free. Direct renewals cannot extend expiration beyond 30 days after initial upload. Keep the route-specific recovery instructions for PDF and proxy failures above: a failed response after payment does not justify starting another paid attempt.

## Pick the Right Install Path

### Local MCP clients

Use the `npx -y @munition/mcp` install path when the user's agent client can run a local stdio MCP server. This includes Codex, Cursor, Claude Code, Claude Desktop, Windsurf, Gemini CLI, and similar local MCP-capable tools.

Local clients are the primary Munition path today because Munition Upload reads local files before uploading them.

### ChatGPT Web, Claude Web, and remote connector clients

ChatGPT Web and Claude Web do not run `npx` packages on the user's machine. They can use Munition only through a public remote MCP server that speaks ChatGPT/Claude's supported remote MCP transport.

The current public npm package, `@munition/mcp`, is a local stdio server. Do not tell the user to paste `npx -y @munition/mcp` into ChatGPT Web or Claude Web.

If Munition publishes a remote MCP endpoint, add it through:

- ChatGPT: Settings -> Apps or Connectors -> Advanced settings -> Developer mode -> create/add the Munition remote MCP app.
- Claude: Customize -> Connectors -> + -> Add custom connector -> add the Munition remote MCP URL.

Do not use `https://api.munition.io` as a ChatGPT or Claude remote MCP URL unless Munition documentation explicitly says that endpoint now supports remote MCP. In this document, `https://api.munition.io` is the HTTP API origin used by the local MCP package.

## Ephemeral Sandbox Warning

Some agents run shell commands inside an ephemeral sandbox rather than on the user's local machine. Munition stores account credentials locally at `~/.munition/config.json`, so installing or initializing Munition in a temporary VM may not persist.

If you are in an ephemeral environment, do not run `npx -y @munition/mcp` just to "install Munition" inside the sandbox. Instead, give the user the appropriate local client command or MCP JSON config below and ask them to add it to their real MCP client.

This warning does not apply when the agent is running directly in the user's intended MCP client and can persist MCP configuration and `~/.munition/config.json`.

## Onboarding Flow

When the user wants to set up or use Munition:

For external flight search links only, install or use the available MCP tool and call `flight_booking_links` directly. Skip account setup, balance checks, and funding. URL generation does not call the Munition API.

1. **Check the environment.** If the client can run local stdio MCP servers, use the local install path. If it is ChatGPT Web or Claude Web, use a remote MCP connector only when Munition has published one.
2. **Install the MCP server** in the user's MCP-capable client.
3. **Restart or refresh the MCP client** so the Munition tools become available.
4. **For account-backed services, call `balance`.** The adapter creates an anonymous local account when needed and stores it in `~/.munition/config.json`.
5. **If USDC is needed**, call `topup_link`, open the returned deposit URL, and add USDC on Base.
6. **Use a Munition service.** Today that means Munition Upload for files, Munition Flight Search for live flight offers, Airport Search for airport reference data, or Flight Offer Details for paid offer lookups through MCP; HTML to PDF and the Exa/Firecrawl/Serper proxies are direct x402 HTTP routes.

## Quick Start Prompt

Paste this into an AI coding tool that can read URLs and configure MCP:

```text
Set up https://munition.io/skill.md
```

If the agent can make persistent local changes, it should install Munition with the commands below. If not, it should show the user the exact command or JSON config to add manually.

## Local Install Commands

### Cursor One-Click

Open this install URL in a browser:

```text
https://cursor.com/en/install-mcp?name=munition&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBtdW5pdGlvbi9tY3AiXSwiZW52Ijp7Ik1VTklUSU9OX0FQSV9VUkwiOiJodHRwczovL2FwaS5tdW5pdGlvbi5pbyJ9fQ%3D%3D
```

### Claude Code

Run this on the user's local machine:

```bash
claude mcp add munition --scope user --env MUNITION_API_URL=https://api.munition.io -- npx -y @munition/mcp
```

Then restart Claude Code or run `/mcp` to verify the server is available.

### Codex

Run this on the user's local machine:

```bash
codex mcp add munition --env MUNITION_API_URL=https://api.munition.io -- npx -y @munition/mcp
```

### Claude Desktop

Add this JSON block to Claude Desktop's MCP configuration, save the file, and fully restart Claude Desktop:

```json
{
  "mcpServers": {
    "munition": {
      "command": "npx",
      "args": [
        "-y",
        "@munition/mcp"
      ],
      "env": {
        "MUNITION_API_URL": "https://api.munition.io"
      }
    }
  }
}
```

### Manual MCP Config

For any local MCP client that supports stdio servers, add:

```json
{
  "mcpServers": {
    "munition": {
      "command": "npx",
      "args": [
        "-y",
        "@munition/mcp"
      ],
      "env": {
        "MUNITION_API_URL": "https://api.munition.io"
      }
    }
  }
}
```

Restart the MCP client after editing the config.

### ChatGPT Web

ChatGPT Web supports remote MCP apps/connectors in Developer mode. It does not run local stdio MCP packages such as `@munition/mcp`.

Use this only when Munition has a documented remote MCP endpoint:

```text
Settings -> Apps or Connectors -> Advanced settings -> Developer mode
Create or add a Munition remote MCP app
Server URL: <Munition remote MCP URL>
```

If the user only has the local npm package today, direct them to Codex, Cursor, Claude Code, Claude Desktop, or another local MCP client.

### Claude Web / Claude Custom Connectors

Claude custom connectors use remote MCP. They do not install the local npm package on the user's machine.

Use this only when Munition has a documented remote MCP endpoint:

```text
Customize -> Connectors -> + -> Add custom connector
Name: Munition
URL: <Munition remote MCP URL>
```

If the user wants local-file upload from their machine, use Claude Code or Claude Desktop with the local MCP config above.

## First Top-Up

Ask the agent:

```text
Use Munition topup_link.
```

Open the returned deposit URL and add USDC on Base. Check the balance with:

```text
Use Munition balance.
```

## Current Service Tools

> Release scope: `setup_link()` preserves an existing account in the published v0.0.14 package. Use the current published package; outdated clients may lack this behavior. See the account-state troubleshooting section before handling missing or damaged credentials.

| Tool | Cost | What it does |
| --- | ---: | --- |
| `upload(path, filename?, tags?)` | 0.005 USDC | Upload a local file up to 10 MiB (10,485,760 bytes) and return a public URL plus tags metadata, retained for 7 days. |
| `search_flights(origin, destination, departureDate, returnDate?, adults?, children?, infants?, travelClass?, nonStop?, maxResults?, maxPrice?, currency?)` | 0.05 USDC | Search live flight offers and return normalized itineraries, prices, carriers, and metadata. |
| `flight_booking_links(origin, destination, departureDate, returnDate?)` | Free | Generate new Kayak and Kiwi searches locally; no account, wallet, or payment required. |
| `renew_upload(id)` | 0.005 USDC | Extend an uploaded file by 7 more days. |
| `delete_upload(id)` | Free | Delete a previously uploaded file. |
| `recent_uploads(limit?, cursor?)` | Free | List recent non-deleted uploads. |
| `balance()` | Free | Return the Munition USDC wallet balance. |
| `topup_link()` | Free | Return an deposit URL for funding the x402 wallet. |
| `setup_link()` | Free | Return a deposit link for the existing account; create an account only when credentials are absent. No reset option. |

## Common Prompts

```text
Use Munition flight_booking_links for SFO to NRT departing 2027-08-10, returning 2027-08-21. Give me the Kayak and Kiwi search links.
```

```text
Use Munition Upload to upload /absolute/path/to/report.pdf and return the URL.
```

```text
Use Munition Upload to upload /absolute/path/to/report.pdf with tags ["agent-output", "report"] and return the URL.
```

MCP tool input shape for tagged uploads:

```json
{
  "path": "/absolute/path/to/report.pdf",
  "filename": "report.pdf",
  "tags": ["agent-output", "report"]
}
```

```text
Use Munition Flight Search to search flights from SFO to NRT departing 2027-08-10 for 1 adult.
```

MCP tool input shape for flight search:

```json
{
  "origin": "SFO",
  "destination": "NRT",
  "departureDate": "2027-08-10",
  "adults": 1,
  "maxResults": 10
}
```

```text
Use Munition to list my recent uploads.
```

```text
Use Munition to renew file_abc123.
```

```text
Use Munition to delete file_abc123.
```

```text
Use Munition to check my balance.
```

```text
Use Munition to create a deposit link.
```

## Triggers

Use this skill when the user says they want to:

- Set up Munition
- Use Munition as an agentic wrapper for paid services
- Install the Munition MCP server
- Discover available Munition services
- Use Munition Upload
- Use Munition Flight Search or the `search_flights` tool
- Generate Kayak and Kiwi search links with `flight_booking_links`
- Upload a local file and get a public URL
- Share generated artifacts, screenshots, PDFs, JSON files, logs, or reports
- Renew, delete, or list agent-created uploads
- Check Munition balance or create a deposit link
- Use paid agent tools without provider accounts

## Storage and Retention

Munition Upload currently has these storage rules:

- Uploaded files are served from `https://files.munition.io`
- Files are public to anyone with the URL
- Default retention is 7 days
- `renew_upload` extends retention by 7 days
- `delete_upload` removes a file from active uploads
- Maximum upload size is 10 MiB (10,485,760 bytes)

Do not upload secrets, private keys, regulated data, or files that should not be accessible by URL.

## Troubleshooting

### Not enough USDC

Call `topup_link`, open the returned deposit URL, and add USDC on Base.

### MCP client does not show Munition tools

Check that:

- The MCP config uses `npx -y @munition/mcp`
- `MUNITION_API_URL` is set to `https://api.munition.io`
- The client was restarted after editing MCP settings
- Node.js 20 or newer is available

### ChatGPT or Claude Web cannot add Munition

ChatGPT Web and Claude Web need a remote MCP endpoint. The local npm package is for clients that can run stdio MCP servers. Use a local MCP client today, or add Munition's remote MCP URL when Munition publishes one.

### Local account state is broken

**Do not delete or overwrite the account config to troubleshoot, and do not use `setup_link()` to recover missing credentials.** The active file is `~/.munition/config.json`, or the path set by `MUNITION_CONFIG` in the MCP client environment. It contains `accountId` and the secret `accountToken`; keep it private and never paste it into prompts, logs, issues, or support email.

1. Stop the Munition MCP process before inspecting or changing local state. Preserve the original file and make a private backup with owner-only permissions (directory `0700`, file `0600`) in a persistent, trusted location. Do not overwrite an existing backup.
2. Check that the client runs as the intended OS user, uses the intended `MUNITION_CONFIG` path, can read that file, and uses the correct `MUNITION_API_URL`. If you expected an existing account but its file or both credentials are missing, stop before retrying: a tool call can create a different account. Unreadable, malformed, or incomplete configuration instead fails closed without network requests or writes; preserve it and resolve the configuration error before retrying.
3. If you have a known-good backup for this account, preserve the current file first, then restore that backup to the active path with owner-only permissions while the MCP process is stopped. Restart the client only after verifying the intended configuration.
4. If credentials are missing or you are unsure, stop and contact **hello@munition.io** with a redacted error and, if known, the public wallet address or account id. Never send `accountToken` or the config file. Recovery is not guaranteed; a wallet address or deposit receipt alone does not authenticate account ownership.

`setup_link()` reuses the existing account and returns its deposit link without clearing or rewriting saved credentials. It creates an anonymous account only when both credentials are absent in otherwise valid configuration (including a missing config file). Malformed, incomplete, or unreadable configuration fails closed before network requests or writes. Existing-account API or network errors preserve credentials rather than creating a replacement. There is no reset option and this is not an account-recovery tool. Losing the original credentials can mean losing access to that account, not that its funds were deleted; creating a new account or deposit link does not transfer an old balance or upload history.

## Requirements

- Node.js 20 or newer
- A local MCP-capable client for the current npm package
- Network access to `https://api.munition.io` for API-backed tools
- Network access to `https://files.munition.io` for uploaded files

Generating `flight_booking_links` URLs is local. Opening them requires browser access to the external sites.

## Support

- **API:** `https://api.munition.io`
- **Files:** `https://files.munition.io`
- **Top-up:** `https://munition.io`
- **Email:** `hello@munition.io`
