MCP

MCP sloupec

Bezpečně připojte AI agenty: User MCP pro provoz, Developer MCP pro integrace — profily, confirm, dry-run a schválení.

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

Přehled MCP sloupce

Tato příručka je Superroute MCP sloupec v Developer Center: oba servery, bezpečnost agentů a živý katalog nástrojů.

Co je MCP?

Model Context Protocol (MCP) je otevřený standard, který umožňuje AI asistentům jako Claude, Cursor a ChatGPT komunikovat s externími nástroji a službami. Umožňuje vašemu AI provádět skutečné akce — jako je sledování zásilky — přímo v konverzaci.

Konfigurací MCP serveru Superroute získá váš AI asistent přístup k logistickým nástrojům bez opuštění vašeho pracovního postupu.

Dva MCP servery

Vyberte správný server. Nedávejte bezobslužným agentům Developer server s plným přístupem.

Název serveru Endpoint Publikum Auth
superroute https://api.superlabel.ca/mcp Ops / support / business agenti Bearer + volitelný profil/scopes (plný, pokud není nastaven)
superroute-developer https://api.superlabel.ca/mcp/developer Integrátorští vývojáři a kódovací agenti Preferovaný connection Bearer; tool api_token se ukončuje

Rychlý start

Veřejné nástroje jako sledování zásilek fungují bez autentizace. Přidejte tuto konfiguraci do svého MCP klienta:

JSON
{
  "mcpServers": {
    "super-label": {
      "type": "url",
      "url": "https://api.superlabel.ca/mcp"
    }
  }
}
Vyzkoušejte! Po nastavení se zeptejte svého AI asistenta: „Sleduj zásilku SR100012345"

Autentizovaný přístup

Pro použití nástrojů vyžadujících uživatelská oprávnění přidejte svůj API Bearer token do konfigurace:

Tokeny dávejte vždy do hlaviček MCP připojení — nikdy do argumentů nástrojů ani promptů.

JSON
{
  "mcpServers": {
    "super-label": {
      "type": "url",
      "url": "https://api.superlabel.ca/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-token>",
        "X-MCP-Profile": "ops-readonly"
      }
    }
  }
}

Jak získat API token

Zavolejte přihlašovací endpoint se svými přihlašovacími údaji:

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

Odpověď bude obsahovat váš přístupový token:

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

Použijte hodnotu access_token v hlavičce Authorization vaší MCP konfigurace.

Bezpečnostní model agentů

User MCP je pro least privilege. Vytvářejte tokeny s MCP profilem (výchozí ops jen pro čtení) nebo hlavičkami.

Profily (X-MCP-Profile)

Pojmenované balíčky scope. Pro bezobslužné agenty ops-readonly nebo support.

Profil Štítek Scopes
ops-readonly Ops jen pro čtení orders:read, labels:read, routes:read, drivers:read, analytics:read, address:read, approvals:read
support Podpora (zákaznický servis) orders:read, analytics:read, address:read, approvals:read
ops-write Ops zápis (objednávky + štítky + trasy) 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 jen pro čtení wms:read, orders:read
datasets-readonly Datové sady jen pro čtení datasets:read
alliance-readonly Aliance jen pro čtení alliance:read
full Plný přístup (všechny MCP nástroje) — ne pro bezobslužné agenty *
.mcp.json — doporučená konfigurace agenta
{
  "mcpServers": {
    "super-label": {
      "type": "url",
      "url": "https://api.superlabel.ca/mcp",
      "headers": {
        "Authorization": "Bearer <ops-readonly-token>",
        "X-MCP-Profile": "ops-readonly"
      }
    }
  }
}

Volitelné hlavičky

Hlavička Účel
Authorization: Bearer …API Bearer token (úroveň připojení).
X-MCP-ProfileProfil: ops-readonly, support, ops-write, wms-readonly, datasets-readonly, alliance-readonly, full.
X-MCP-ScopesExplicitní scopes oddělené čárkou (přepíše profil).
X-MCP-Dry-Run: 1Náhled zápisů bez mutace.
X-MCP-Require-Approval: 1Zařadit high-risk zápisy k lidskému schválení.

High-risk potvrzení

Tyto nástroje vyžadují confirm=true při tools/call (nebo frontu schválení):

Fronta lidských schválení

Bezobslužní agenti navrhují zápisy; člověk schvaluje.

  1. Agent: propose_write nebo X-MCP-Require-Approval: 1
  2. Člověk: MCP Approvals v appce nebo list_pending_approvals
  3. Člověk: approve_pending_write s confirm=true nebo reject_pending_write

Cesta Web UI (vyžaduje přihlášení): /mcp-approvals

Developer MCP autentizace

Preferujte Authorization: Bearer na připojení. api_token v toolu je zastaralý a končí po 2026-12-31.

Dostupné nástroje

Následující nástroje jsou momentálně dostupné na MCP serveru: 47 živých nástrojů ze serverového katalogu

Tato tabulka se generuje z UserMcpToolCatalog za běhu a je synchronizovaná s tools/list.

Nástroj Autentizace Riziko Scopes Popis
track_package Veřejné low Track a package by its tracking number. Returns delivery status, tracking events timeline, and proof of delivery if available.
otep_tracking Veřejné low Get the unified OTEP (Open Tracking Event Protocol) timeline for a tracking number — self-delivery, third-party and carrier events normalize...
get_capabilities Veřejné 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 Vyžadována low orders:read List orders with filtering and pagination. Returns order details including status, tracking, and delivery info.
get_order_detail Vyžadována low orders:read Get full details of a specific order by ID, including address, status, packages, and tracking info.
find_order Vyžadována 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 Vyžadována low orders:read Get the full audit trail for orders — every status change, who performed it, GPS coordinates, and photos.
create_order Vyžadována 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 Vyžadována high orders:write Cancel an existing order by order ID. Only works for orders not yet delivered.
bulk_create_orders confirm Vyžadována 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 Vyžadována 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 Vyžadována medium orders:write Update only the delivery_instruction field on an existing order (PATCH). Safer than full order rewrite.
update_order_note Vyžadována medium orders:write Update only the internal note field on an existing order (PATCH).
update_time_window_by_refs Vyžadována medium orders:write Bulk-update delivery time windows (and optional schedule_date) for orders identified by external refs.
hold_order confirm Vyžadována high orders:write Put an order on HOLD so it is not dispatched until release_order. HIGH-RISK: requires confirm=true.
release_order confirm Vyžadována high orders:write Release an order from HOLD back to NEW_ORDER. HIGH-RISK: requires confirm=true.
propose_write Vyžadována 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 Vyžadována low approvals:read List pending MCP write approvals for this business (or mine_only).
approve_pending_write confirm Vyžadována 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 Vyžadována medium approvals:write Reject a pending write proposal without executing it.
get_routes Vyžadována low routes:read List delivery routes with their status, assigned driver, and order count.
get_route_detail Vyžadována low routes:read Get one route with its stop/order list. Prefer this over get_routes when you already know route_id.
get_drivers Vyžadována 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 Vyžadována 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 Vyžadována low routes:read List routing engines, balance modes, capacity types, and defaults before calling build_route.
build_route confirm Vyžadována 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 Vyžadována 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 Vyžadována low orders:read List failed/returned/exception-like orders for a schedule date (default today). Read-only ops triage helper.
get_shipping_methods Vyžadována low labels:read List available shipping carriers/methods. Returns IDs and names — use the ID for rate/label tools.
get_shipping_rate Vyžadována low labels:read Get a shipping cost quote. Dry-run — no label created. Returns rate options with pricing and transit time.
create_shipping_label Vyžadována medium labels:write Book a shipment with a carrier and generate a shipping label with tracking numbers.
quote_and_ship Vyžadována 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 Vyžadována 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 Vyžadována low address:read Search and resolve addresses by postal code or free-text query. Returns structured address suggestions.
daily_digest Vyžadována 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 Vyžadována 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 Vyžadována 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 Vyžadována low wms:read List WMS warehouses available to the authenticated business.
get_inventory Vyžadována low wms:read Query WMS inventory (POST /api/v1/wms/inventory). Pass filters supported by the inventory API (sku, warehouse_id, etc.).
list_datasets Vyžadována low datasets:read List custom datasets available to the business.
get_dataset Vyžadována low datasets:read Get one dataset by id (metadata/columns).
list_dataset_groups Vyžadována low datasets:read List groups inside a dataset.
search_dataset_records Vyžadována low datasets:read Search records across groups in a dataset (POST .../search).
list_alliances Vyžadována low alliance:read List alliances the authenticated business belongs to.
get_alliance Vyžadována low alliance:read Get one alliance by id.
list_alliance_members Vyžadována low alliance:read List members of an alliance.
list_accessible_clients Vyžadována low alliance:read List clients accessible via alliance partnerships.

Nastavení pro klienta

Vyberte svého AI klienta níže pro přizpůsobené pokyny k nastavení:

Claude Code

Claude Code čte MCP konfiguraci ze souboru .mcp.json v kořenovém adresáři projektu nebo domovském adresáři.

  1. Vytvořte soubor .mcp.json v kořenovém adresáři projektu (nebo ~/.claude/.mcp.json pro globální přístup).
  2. Přidejte následující konfiguraci:
.mcp.json
{
  "mcpServers": {
    "super-label": {
      "type": "url",
      "url": "https://api.superlabel.ca/mcp"
    }
  }
}

Pro použití autentizovaných nástrojů přidejte pole headers:

.mcp.json (s autentizací)
{
  "mcpServers": {
    "super-label": {
      "type": "url",
      "url": "https://api.superlabel.ca/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-token>",
        "X-MCP-Profile": "ops-readonly"
      }
    }
  }
}

Cursor

Cursor podporuje MCP servery prostřednictvím vestavěné konfigurace.

  1. Vytvořte soubor .cursor/mcp.json v kořenovém adresáři projektu.
  2. Přidejte následující konfiguraci:
  3. Restartujte Cursor pro načtení nového MCP serveru.
.cursor/mcp.json
{
  "mcpServers": {
    "super-label": {
      "type": "url",
      "url": "https://api.superlabel.ca/mcp"
    }
  }
}

Windsurf

Windsurf používá globální konfigurační soubor MCP.

  1. Upravte ~/.codeium/windsurf/mcp_config.json (vytvořte ho, pokud neexistuje).
  2. Přidejte následující konfiguraci:
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "super-label": {
      "serverUrl": "https://api.superlabel.ca/mcp"
    }
  }
}

ChatGPT

ChatGPT podporuje MCP připojení pro uživatele Plus, Pro a Team.

  1. Otevřete ChatGPT a přejděte do Nastavení.
  2. Přejděte do sekce „Připojené aplikace" nebo „Nástroje".
  3. Přidejte nový MCP server s URL endpointu zobrazenou výše.
Podpora MCP v ChatGPT se může lišit v závislosti na vašem plánu a regionu. Aktuální pokyny naleznete v dokumentaci OpenAI.

Technické detaily