mcpField
L
linkfox-temu-fulfillment-us

linkfox-temu-fulfillment-us

github.com/linkfox-aiOther113322 installsUpdated 2w ago
Repository

About linkfox-temu-fulfillment-us

A skill for Temu US fulfillment and shipping, combining Buy-Shipping, Co-Warehouse, Self-Fulfilled Shipments, and Tracking APIs. It provides Python scripts, a general proxy, and signed file downloads.

Key features

  1. 01Cover 27 fulfillment APIs
  2. 02Handle label purchasing and shipping labels
  3. 03Manage co-warehouse fulfillment
  4. 04Submit self-fulfilled tracking numbers
  5. 05Query shipment tracking
  6. 06Download signed files

Use cases

  1. 01Purchase shipping labels for orders
  2. 02Submit co-warehouse or self-fulfillment details
  3. 03Check parcel tracking status

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/linkfox-ai/linkfox-skills --skill linkfox-temu-fulfillment-us

After installing, type/linkfox-temu-fulfillment-usin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
access-token.md
api.md
references/apis/
bg-cooperativewarehouse-fulfill-cancel.md
bg-cooperativewarehouse-fulfill-submit.md
bg-cooperativewarehouse-provider-list.md
bg-cooperativewarehouse-token-authorization.md
bg-logistics-companies-get.md
bg-logistics-shipment-create.md
bg-logistics-shipment-document-get.md
bg-logistics-shipment-result-get.md
bg-logistics-shipment-shippingtype-update.md
bg-logistics-shipment-sub-confirm.md
bg-logistics-shipment-update.md
bg-logistics-shipment-v2-confirm.md
bg-logistics-shipment-v2-get.md
bg-logistics-shipped-package-confirm.md
bg-logistics-shippingservices-get.md
bg-logistics-warehouse-list-get.md
bg-order-unshipped-package-get.md
README.md
temu-logistics-candidate-scanform-list-get.md
temu-logistics-label-list-get.md
temu-logistics-scanform-create.md
temu-logistics-scanform-document-get.md
temu-logistics-scanform-get.md
temu-logistics-shiplogisticstype-get.md
temu-logistics-shipment-pickup-reservation-cancel.md
temu-logistics-shipment-pickup-reservation-create.md
temu-logistics-shipment-pickup-reservation-result-get.md
temu-track-trackinginfo-get.md

Details

From the project README

Temu 美国站 — 电商履行 / 发货(Fulfillment)

本 skill(linkfox-temu-fulfillment-us)合并原 Buy-Shipping、Co-Warehouse、Self-Fulfilled Shipments、Tracking 四个 skill,覆盖 Partner US Fulfillment 域 27 个已接入 type。

域脚本前缀接口数
Buy-Shippingus_buy_shipping_*17
Co-Warehouseus_co_warehouse_*4
Self-Fulfilledus_self_fulfilled_*5
Trackingus_tracking_*1

详见 partner-us-catalog.md。

网关:

能力方法路径
履约 OpenAPIPOSThttps://tool-gateway.linkfox.com/temu/proxy
加签文件下载POSThttps://tool-gateway.linkfox.com/temu/fileDownload

调用方式

  • API 端点:POST /temu/proxy(不同操作通过请求体区分;完整参数/响应/错误码见 references/api.md)
  • Python 脚本:python scripts/<脚本名>.py '<JSON 参数>' [--inline](可用脚本见上文脚本一览)
  • 成本约束:本工具会消耗算力;失败/空结果不得自动换关键词、翻页或连续试探;需要继续检索时先向用户说明会产生额外消耗。

输出策略(脚本默认行为):

  • 始终将完整响应写入 <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json(<cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session> 取自环境变量 SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)
  • 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
  • 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 total/costToken、最大列表字段的长度 + 前 3 条样本)
  • 加 --inline 强制全量打印到 stdout(同样落盘)

读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq或ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。

解决认证和算力问题

发生以下异常情况时,采用 references/onboarding.md 引导解决问题:

异常情况
  • 未配置API Key:环境变量未配置 LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY。
  • 响应401或402状态码
  • 响应提示算力或余额不足:消息含"算力余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。

相关 skill

场景skill
订单列表/详情/地址linkfox-temu-order-us
取消订单linkfox-temu-cancel-order-us
商品管理linkfox-temu-manage-product-us
退货退款linkfox-temu-returns-refunds-us
全球站履约linkfox-temu-fulfillment-global(无 Scan Form)

默认参数

字段默认
siteus
managementTypesemi-managed
tokenPurposeorder-shipping

Scripts(按域)

Buy-Shipping(us_buy_shipping_*)

购标、面单、Scan Form、上门揽收等 — 见 apis/README.md。

Co-Warehouse(us_co_warehouse_*)

bg.cooperativewarehouse.* — 合作仓授权、提交/取消履约。

Self-Fulfilled(us_self_fulfilled_*)

bg.logistics.shipment.v2.*、shippingtype.update 等 — 卖家自带运单号。

Tracking(us_tracking_*)

temu.track.trackinginfo.get

通用
脚本说明
temu_us_proxy.py任意 type
temu_us_file_download.py加签文件下载

薄封装统一调用 _us_fulfillment_script.run_cli。

示例

export LINKFOXAGENT_API_KEY="<key>"

# Buy-Shipping 购标
python scripts/us_buy_shipping_logistics_shipment_create.py '{
  "accessToken": "TOKEN",
  "tokenPurpose": "order-shipping",
  "request": { }
}'

# 卖家自发货更新跟踪号
python scripts/us_self_fulfilled_logistics_shipment_shippingtype_update.py '{
  "accessToken": "TOKEN",
  "request": { "editPackageRequestList": [{ "packageSn": "PKG-1", "trackingNumber": "1Z..." }] }
}'

算力消耗规则

不消耗算力。

Feedback: skillName:linkfox-temu-fulfillment-us

Comments

Markdown supported