# Reference · meitu-ota-product-import

## MCP endpoint

| Item | Value |
|------|--------|
| Transport | Streamable HTTP |
| URL | `https://service.meitu.io/api/mcp` |
| Auth | `Authorization: Bearer <API_Token>` |
| Docs | https://meitu.io/mcp |

Session headers after `initialize`: send `Mcp-Session-Id` on subsequent requests.

## Tools used

### `create_product`

Write tool — requires `confirm: true`.

Important args: `lineName`, `lineMainTitle`, `lineSubhead`, `lineDays`, `lineNights`, `fromCityName`, `toCityName`, `goTransport`, `returnTransport`, `keyWords`, `recommendReason`, `character`, `status`, `tripList`, `confirm`.

Success payload (inside tool text JSON): `{ productId, tripCount, message }`.

### `import_product_images`

Write tool — requires `confirm: true`.

Args: `productId`, `imageUrls` (string array), `confirm`.

Server downloads each URL, stores to tenant OSS, links `Pro_LinePictures`.

Same capability via REST:

`POST /api/open/erp/v1/products/images/import`  
Body: `{ "productId": 123, "imageUrls": ["https://..."] }`

Cap: **10 URLs per call** (default). Batch if more.

### `get_product`

Optional verify: `productId` → check `linePicList` length.

## OTA extract tips

1. Start from the product detail page; open the full multi-day itinerary when needed.
2. Day markers often look like `DAY` + day number, or `第N天` / `D1` … `Dn`.
3. Collect absolute album image URLs only; dedupe by stable image id when present.
4. Skip static UI assets (stars, security badges, logos, avatar icons).

## Install (human)

1. Download https://meitu.io/skills/meitu-agent-skills.zip
2. Unzip into the project’s `.cursor/skills/` (or user skills dir).
3. Configure Meitu MCP with PAT.
4. Ask the agent: “用美途 skill 把这个 OTA 线路链接导入 ERP：{url}”

## AI-friendly URLs (no unzip)

| Resource | URL |
|----------|-----|
| Catalog | https://meitu.io/skills/index.json |
| This skill | https://meitu.io/skills/meitu-ota-product-import/SKILL.md |
| This reference | https://meitu.io/skills/meitu-ota-product-import/reference.md |
| Pack README | https://meitu.io/skills/README.md |
