MCP

MCP rovat

AI ügynökök biztonságos csatlakoztatása: User MCP üzemeltetéshez, Developer MCP integrációhoz — profilok, confirm, dry-run és jóváhagyások.

MCP track_package(tracking_number) Tool
RPC tools/list JSON-RPC 2.0
RPC tools/call JSON-RPC 2.0
Documentation

MCP rovat áttekintés

Ez az útmutató a Superroute MCP rovat a Developer Centerben: mindkét szerver, ügynökbiztonság és élő eszközkatalógus.

Mi az MCP?

A Model Context Protocol (MCP) egy nyílt szabvány, amely lehetővé teszi az AI asszisztensek, mint a Claude, Cursor és ChatGPT számára, hogy külső eszközökkel és szolgáltatásokkal kommunikáljanak. Lehetővé teszi az AI számára valós műveletek végrehajtását — például csomag követését — közvetlenül a beszélgetésben.

A Superroute MCP szerver konfigurálásával AI asszisztense hozzáférhet a logisztikai eszközökhöz anélkül, hogy elhagyná a munkafolyamatát.

Két MCP szerver

A megfelelő szervert válassza. Ne adjon felügyelet nélküli ügynököknek teljes hozzáférésű Developer szervert.

Szervernév Végpont Célközönség Auth
superroute https://api.miliexpress.com/mcp Ops / support / üzleti ügynökök Bearer + opcionális profil/scope (teljes, ha nincs megadva)
superroute-developer https://api.miliexpress.com/mcp/developer Integrációs fejlesztők és kódoló ügynökök Connection Bearer preferált; tool api_token kivezetés alatt

Gyors indulás

A nyilvános eszközök, mint a csomagkövetés, hitelesítés nélkül működnek. Adja hozzá ezt a konfigurációt az MCP klienshez:

JSON
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp"
    }
  }
}
Próbálja ki! A beállítás után kérdezze meg AI asszisztensét: „Kövesse nyomon a SR100012345 csomagot"

Hitelesített hozzáférés

A felhasználói jogosultságokat igénylő eszközök használatához adja hozzá API Bearer tokenjét a konfigurációhoz:

A tokeneket mindig az MCP kapcsolat fejléceibe tegye — soha ne tool argumentumokba vagy promptokba.

JSON
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-token>",
        "X-MCP-Profile": "ops-readonly"
      }
    }
  }
}

Hogyan szerezhet API tokent

Hívja meg a bejelentkezési végpontot a hitelesítő adataival:

Bash
curl -X POST https://api.miliexpress.com/api/v1/user/login \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "password": "your-password"}'

A válasz tartalmazza a hozzáférési tokent:

JSON Response
{
  "access_token": "eyJ0eXAiOiJKV1Qi...",
  "token_type": "Bearer",
  "expires_at": "2026-02-20 00:00:00"
}

Használja az access_token értéket az MCP konfiguráció Authorization fejlécében.

Ügynök-biztonsági modell

A User MCP least privilege ügynökökre épül. Token MCP profillal (alap: ops csak olvasható) vagy headerekkel.

Profilok (X-MCP-Profile)

Elnevezett scope csomagok. Felügyelet nélküli ügynökökhöz ops-readonly vagy support.

Profil Címke Scope-ok
ops-readonly Ops csak olvasható orders:read, labels:read, routes:read, drivers:read, analytics:read, address:read, approvals:read
support Támogatás (ügyfélszolgálat) orders:read, analytics:read, address:read, approvals:read
ops-write Ops írás (megrendelések + címkék + útvonalak) orders:read, orders:write, labels:read, labels:write, routes:read, routes:write, drivers:read, analytics:read, address:read, approvals:read, approvals:write
wms-readonly WMS csak olvasható wms:read, orders:read
datasets-readonly Adathalmazok csak olvasható datasets:read
alliance-readonly Szövetség csak olvasható alliance:read
full Teljes hozzáférés (minden MCP eszköz) — nem felügyelet nélküli ügynököknek *
.mcp.json — ajánlott ügynökkonfig
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp",
      "headers": {
        "Authorization": "Bearer <ops-readonly-token>",
        "X-MCP-Profile": "ops-readonly"
      }
    }
  }
}

Opcionális headerek

Header Cél
Authorization: Bearer …API Bearer token (kapcsolat szint).
X-MCP-ProfileProfil: ops-readonly, support, ops-write, wms-readonly, datasets-readonly, alliance-readonly, full.
X-MCP-ScopesVesszővel elválasztott explicit scope-ok (felülírja a profilt).
X-MCP-Dry-Run: 1Írási toolok előnézete mutáció nélkül.
X-MCP-Require-Approval: 1Magas kockázatú írások sorba állítása emberi jóváhagyásra.

Magas kockázatú megerősítés

Ezek a toolok confirm=true-t igényelnek tools/call-nál (vagy a jóváhagyási sort):

Emberi jóváhagyási sor

Felügyelet nélküli ügynökök javasoljanak írásokat; ember hagyja jóvá.

  1. Ügynök: propose_write vagy X-MCP-Require-Approval: 1
  2. Ember: MCP Approvals az appban vagy list_pending_approvals
  3. Ember: approve_pending_write confirm=true-val vagy reject_pending_write

Web UI útvonal (bejelentkezés szükséges): /mcp-approvals

Developer MCP hitelesítés

Preferálja az Authorization: Bearer-t a kapcsolaton. A tool api_token elavult, 2026-12-31 után megszűnik.

Elérhető eszközök

Az alábbi eszközök jelenleg elérhetők az MCP szerveren: 93 élő tool a szerverkatalógusból

Ez a tábla futásidőben a UserMcpToolCatalogból jön, és szinkronban marad a tools/list-tel.

Eszköz Hitelesítés Kockázat Scope-ok Leírás
track_package Nyilvános low — Track a package by its tracking number. Returns delivery status, tracking events timeline, and proof of delivery if available.
otep_tracking Nyilvános low — Get the unified OTEP (Open Tracking Event Protocol) timeline for a tracking number — self-delivery, third-party and carrier events normalize...
get_capabilities Nyilvános low — List MCP tools available to the current connection, with risk level, required scopes, and whether confirm=true is needed. Call this first wh...
get_orders Szükséges low orders:read List orders with filtering and pagination. Returns order details including status, tracking, and delivery info.
get_order_detail Szükséges low orders:read Get full details of a specific order by ID, including address, status, packages, and tracking info.
find_order Szükséges low orders:read Fuzzy-find orders across tracking number, external tracking, ref, recipient name, and phone in a single query. Use this instead of get_order...
get_operation_events Szükséges low orders:read Get the full audit trail for orders — every status change, who performed it, GPS coordinates, and photos.
create_order Szükséges medium orders:write Create a delivery/pickup order. D=delivery (warehouse→customer), P=pickup (customer→warehouse), P2P=peer-to-peer. Returns order ID and track...
cancel_order confirm Szükséges high orders:write Cancel an existing order by order ID. Only works for orders not yet delivered.
bulk_create_orders confirm Szükséges high orders:write Create up to 100 delivery orders in one call. Returns a per-order success/failure summary; partial failures do not abort the batch unless st...
reroute_to_address confirm Szükséges high orders:write Change the delivery address of an order that has not been picked up yet: cancels the original order and recreates it with the new address. R...
update_delivery_instruction Szükséges medium orders:write Update only the delivery_instruction field on an existing order (PATCH). Safer than full order rewrite.
update_order_note Szükséges medium orders:write Update only the internal note field on an existing order (PATCH).
update_time_window_by_refs Szükséges medium orders:write Bulk-update delivery time windows (and optional schedule_date) for orders identified by external refs.
hold_order confirm Szükséges high orders:write Put an order on HOLD so it is not dispatched until release_order. HIGH-RISK: requires confirm=true.
release_order confirm Szükséges high orders:write Release an order from HOLD back to NEW_ORDER. HIGH-RISK: requires confirm=true.
propose_write Szükséges low approvals:read Queue a write/high-risk tool for human approval instead of executing it. Reviewers use list_pending_approvals + approve_pending_write.
list_pending_approvals Szükséges low approvals:read List pending MCP write approvals for this business (or mine_only).
approve_pending_write confirm Szükséges high approvals:write Approve and execute a pending write proposal. HIGH-RISK: requires confirm=true. Reviewer must have scopes for the underlying tool.
reject_pending_write Szükséges medium approvals:write Reject a pending write proposal without executing it.
get_routes Szükséges low routes:read List delivery routes with their status, assigned driver, and order count.
get_route_detail Szükséges low routes:read Get one route with its stop/order list. Prefer this over get_routes when you already know route_id.
get_drivers Szükséges low drivers:read List drivers for the authenticated business (ids, names, capacity defaults). Use driver id with get_driver_routes_today or route tools.
get_driver_routes_today Szükséges low routes:read, drivers:read Orders assigned to a driver on a given date (defaults to today). Useful for "what is driver X running today?"
get_build_route_options Szükséges low routes:read List routing engines, balance modes, capacity types, and defaults before calling build_route.
build_route confirm Szükséges high routes:write Build/optimize a delivery route (POST /api/v3/client/build-route). HIGH-RISK: assigns orders to drivers. Call get_build_route_options first....
order_snapshot Szükséges low orders:read One-call order context for support: order detail + operation events + public tracking (when tracking number is known). Pass order_id or trac...
list_exceptions Szükséges low orders:read List failed/returned/exception-like orders for a schedule date (default today). Read-only ops triage helper.
get_shipping_methods Szükséges low labels:read List available shipping carriers/methods. Returns IDs and names — use the ID for rate/label tools.
get_shipping_rate Szükséges low labels:read Get a shipping cost quote. Dry-run — no label created. Returns rate options with pricing and transit time.
create_shipping_label Szükséges medium labels:write Book a shipment with a carrier and generate a shipping label with tracking numbers.
quote_and_ship Szükséges medium labels:write One-shot: rate across all enabled carriers, pick the best one by strategy, create the shipping label, return tracking number. Saves 3+ tool...
compare_all_carriers Szükséges low labels:read Get rate quotes from every enabled carrier for the same shipment, in one call. Returns a sorted comparison (cheapest first) with price + tra...
search_address Szükséges low address:read Search and resolve addresses by postal code or free-text query. Returns structured address suggestions.
daily_digest Szükséges low analytics:read One-call summary of today's logistics activity: total orders, by status, exceptions (failed/returned), pending pickups. Designed as the firs...
get_orders_summary Szükséges low analytics:read Aggregate order metrics over a time window: counts by status, top carriers, on-time rate, exception count. Use period=today|week|month or pa...
get_account_credits Szükséges low analytics:read Get the authenticated customer's wallet balance, currency, and recent topup history. Customer (B2C) accounts only — returns an error for cli...
get_warehouses Szükséges low wms:read List WMS warehouses available to the authenticated business.
get_inventory Szükséges low wms:read Query WMS inventory (POST /api/v1/wms/inventory). Pass filters supported by the inventory API (sku, warehouse_id, etc.).
list_datasets Szükséges low datasets:read List custom datasets available to the business.
get_dataset Szükséges low datasets:read Get one dataset by id (metadata/columns).
list_dataset_groups Szükséges low datasets:read List groups inside a dataset.
search_dataset_records Szükséges low datasets:read Search records across groups in a dataset (POST .../search).
list_alliances Szükséges low alliance:read List alliances the authenticated business belongs to.
get_alliance Szükséges low alliance:read Get one alliance by id.
list_alliance_members Szükséges low alliance:read List members of an alliance.
list_accessible_clients Szükséges low alliance:read List clients accessible via alliance partnerships.
quote_delivery Szükséges low orders:read Get the local delivery price for a shipment before creating the order (POST /api/v1/orders/rate). No order is created.
print_local_label Szükséges low orders:read Get the printable label of a local delivery order as a base64 PDF, with its label code and tracking numbers (POST /api/v2/shipping/getShippi...
bulk_create_orders_async confirm Szükséges high orders:write Queue a large batch of delivery orders for creation (POST /api/v1/client/batchOrderCreateAsync). Returns an asyncId at once; read the per-or...
get_async_batch_result Szükséges low orders:read Read the status and per-order results of a batch queued with bulk_create_orders_async (GET /api/v1/client/async/{id}).
get_shipping_detail confirm Szükséges high labels:write Get the carrier shipping detail of a label order: tracking numbers, price and the label (POST /api/v1/labelservice/getShippingDetail). The f...
download_shipping_label confirm Szükséges high labels:write Download the label PDF of an order as base64 (POST /api/v1/shipping/getShippingLabel with base64). For a carrier label order whose label was...
cancel_shipping_label confirm Szükséges high labels:write Cancel (void) a carrier label with the carrier (POST /api/v1/labelservice/cancelShippingLabel). Pass the order id, or one package tracking n...
submit_shipping_information confirm Szükséges high labels:write Submit the shipping information of one or more label orders to their carriers (POST /api/v1/labelservice/submitShippingInformation).
end_of_day confirm Szükséges high labels:write Close the day with the carriers: submit the shipping information of every open label order (POST /api/v1/labelservice/endofday).
uniorder_rate Szükséges low uniorder:read Quote one shipment across self delivery and, with quote_labels=true, every label carrier service of the account (POST /api/v1/uniorder/rate)...
uniorder_create Szükséges medium uniorder:write Create an order at a rate_id from uniorder_rate (POST /api/v1/uniorder). The rate decides the service: a self delivery order, or a label ord...
uniorder_get Szükséges low uniorder:read Read one uniorder order in the uniorder shape (GET /api/v1/uniorder/{orderId}).
uniorder_label Szükséges low uniorder:read Get the label PDF of a uniorder order, base64 (GET /api/v1/uniorder/{orderId}/label).
uniorder_tracking Szükséges low uniorder:read Get the tracking timeline of a uniorder order (GET /api/v1/uniorder/{orderId}/tracking).
uniorder_cancel confirm Szükséges high uniorder:write Cancel a uniorder order, self delivery or label (POST /api/v1/uniorder/{orderId}/cancel). A label order voids its carrier label.
uniorder_purchase_label confirm Szükséges high uniorder:write Buy the carrier label of a uniorder label order that was kept without one (LABEL_PURCHASE_FAILED), at the service chosen at create or at a n...
uniorder_rate_batch Szükséges low uniorder:read Quote up to 20 shipments in one call (POST /api/v1/uniorder/rate/batch). Each shipment takes the uniorder_rate shape plus an optional refere...
uniorder_create_batch confirm Szükséges high uniorder:write Create up to 20 orders in one call, each at its own rate_id (POST /api/v1/uniorder/batch). Returns a result per order.
uniorder_rate_batch_async Szükséges low uniorder:read Queue up to 500 shipments to quote (POST /api/v1/uniorder/rate/batch-async). Returns a job id; read the quotes with uniorder_job.
uniorder_create_batch_async confirm Szükséges high uniorder:write Queue up to 500 orders to create, each at its own rate_id (POST /api/v1/uniorder/batch-async). Returns a job id; read the results with unior...
uniorder_job Szükséges low uniorder:read Read a queued uniorder batch and, once done, its results (GET /api/v1/uniorder/jobs/{jobId}).
list_shipping_services Szükséges low customer_shipping:read List the shipping services the customer may order (GET /api/v1/customer/shipping-orders/services). Step 1 of a shipping order. Needs a custo...
get_shipping_service_config Szükséges low customer_shipping:read Get one shipping service's order form: warehouses, surcharges, packaging, supplies, units and form fields (GET /api/v1/customer/shipping-ord...
estimate_shipping_order Szükséges low customer_shipping:read Estimate the price of a shipping order on a service (POST /api/v1/customer/shipping-orders/services/{serviceCode}/estimate-price). No order...
create_shipping_order Szükséges medium customer_shipping:write Create a shipping order on a service (POST /api/v1/customer/shipping-orders/services/{serviceCode}/orders). Note the package list field is `...
pay_shipping_order confirm Szükséges high customer_shipping:write Pay the full remaining balance of a shipping order from the customer wallet (POST /api/v1/customer/shipping-orders/{id}/pay). A fully paid p...
get_shipping_order Szükséges low customer_shipping:read Get one shipping order of the customer (GET /api/v1/customer/shipping-orders/{id}). Needs a customer account token.
list_shipping_orders Szükséges low customer_shipping:read List the customer's shipping orders on one service, paginated (GET /api/v1/customer/shipping-orders/services/{serviceCode}/orders). Needs a...
cancel_shipping_order confirm Szükséges high customer_shipping:write Cancel a pending or confirmed shipping order of the customer (POST /api/v1/customer/shipping-orders/{id}/cancel). Needs a customer account t...
get_storage_order_config Szükséges low storage:read Get what a storage order form needs: warehouses, packaging, supplies, pickup timeframes, units, surcharges and form fields (GET /api/v1/cust...
quote_storage_order Szükséges low storage:read Calculate the price of a storage order before creating it (POST /api/v1/customer/storage-orders/calculate-price). Storage order form fields...
create_storage_order Szükséges medium storage:write Create a storage order (POST /api/v1/customer/storage-orders). Storage order form fields as returned by get_storage_order_config: warehouse_...
pay_storage_order confirm Szükséges high storage:write Pay a storage order from the customer wallet (POST /api/v1/customer/storage-orders/{id}/pay). Needs a customer account token.
get_storage_order Szükséges low storage:read Get one storage order of the customer, with can_edit, can_cancel and each package's received flag (GET /api/v1/customer/storage-orders/{id})...
list_storage_orders Szükséges low storage:read List the customer's storage orders, paginated (GET /api/v1/customer/storage-orders). Needs a customer account token.
cancel_storage_order confirm Szükséges high storage:write Cancel a storage order of the customer while its status allows it (POST /api/v1/customer/storage-orders/{id}/cancel). Needs a customer accou...
list_stored_packages Szükséges low storage:read List the customer's stored packages that can be shipped out: received, not stocked out and not held by another ship-out, grouped by storage...
list_shipout_services Szükséges low storage:read List the shipping services that ship out from a warehouse (GET /api/v1/customer/shipout-orders/services). pricing_method 1 = priced at once,...
estimate_shipout Szükséges low storage:read Estimate the price of a ship-out (POST /api/v1/customer/shipout-orders/services/{serviceCode}/estimate). A manually priced service answers h...
create_shipout Szükséges medium storage:write Create a ship-out of stored packages from one warehouse (POST /api/v1/customer/shipout-orders/services/{serviceCode}/orders). The chosen pac...
pay_shipout confirm Szükséges high storage:write Pay a priced ship-out from the customer wallet (POST /api/v1/customer/shipout-orders/{id}/pay). Default is the full remaining balance. Needs...
get_shipout Szükséges low storage:read Get one ship-out of the customer with paid amount, remaining balance, can_be_paid, can_be_cancelled and its packages (GET /api/v1/customer/s...
list_shipouts Szükséges low storage:read List the customer's ship-outs, paginated (GET /api/v1/customer/shipout-orders). Needs a customer account token.
cancel_shipout confirm Szükséges high storage:write Cancel a pending or confirmed ship-out and release its stored packages (POST /api/v1/customer/shipout-orders/{id}/cancel). A payment is not...
otep_client_tracking Szükséges low orders:read Get the OTEP timeline and details (addresses, dates, proof of delivery, item counts) of one of your own shipments: a parcel tracking number,...
otep_client_locker_storage Szükséges low orders:read Get the OTEP timeline (storage profile) and details of one of your locker storage rentals, by rental id. Requires a token.

Kliens-specifikus beállítás

Válassza ki az AI kliensét az alábbiak közül a testreszabott beállítási utasításokhoz:

Claude Code

A Claude Code a projekt gyökérkönyvtárában vagy a home könyvtárban lévő .mcp.json fájlból olvassa az MCP konfigurációt.

  1. Hozzon létre egy .mcp.json fájlt a projekt gyökérkönyvtárában (vagy ~/.claude/.mcp.json a globális hozzáféréshez).
  2. Adja hozzá a következő konfigurációt:
.mcp.json
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp"
    }
  }
}

A hitelesített eszközök használatához adja hozzá a headers mezőt:

.mcp.json (hitelesítéssel)
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-token>",
        "X-MCP-Profile": "ops-readonly"
      }
    }
  }
}

Cursor

A Cursor beépített konfigurációján keresztül támogatja az MCP szervereket.

  1. Hozzon létre egy .cursor/mcp.json fájlt a projekt gyökérkönyvtárában.
  2. Adja hozzá a következő konfigurációt:
  3. Indítsa újra a Cursort az új MCP szerver betöltéséhez.
.cursor/mcp.json
{
  "mcpServers": {
    "mili-express": {
      "type": "url",
      "url": "https://api.miliexpress.com/mcp"
    }
  }
}

Windsurf

A Windsurf globális MCP konfigurációs fájlt használ.

  1. Szerkessze a ~/.codeium/windsurf/mcp_config.json fájlt (hozza létre, ha nem létezik).
  2. Adja hozzá a következő konfigurációt:
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mili-express": {
      "serverUrl": "https://api.miliexpress.com/mcp"
    }
  }
}

ChatGPT

A ChatGPT támogatja az MCP kapcsolatokat Plus, Pro és Team felhasználók számára.

  1. Nyissa meg a ChatGPT-t és lépjen a Beállításokba.
  2. Navigáljon a „Csatlakoztatott alkalmazások" vagy „Eszközök" részhez.
  3. Adjon hozzá egy új MCP szervert a fent megjelenített végpont URL-lel.
A ChatGPT MCP támogatása az előfizetésétől és régiójától függően változhat. A legújabb utasításokért tekintse meg az OpenAI dokumentációját.

Technikai részletek