{
  "openapi": "3.1.0",
  "info": {
    "version": "1.0.0",
    "title": "CarrierCloud MCP Server",
    "description": "Remote Model Context Protocol server for CarrierCloud. AI assistants connect to this endpoint with a standard CarrierCloud API key and get 35 read-only tools over loads, orders, equipment, drivers, carriers, partners, geocoding and reference data. Every tool call re-enters the gateway's policy pipeline (API key, Partner Network authorisation, sandbox limits), so an assistant can never see more than the key's company may see.",
    "contact": {
      "name": "Tranztec Solutions",
      "email": "support@tranztec.com",
      "url": "https://www.tranztec.com"
    }
  },
  "paths": {
    "/mcp": {
      "x-zuplo-path": {
        "pathMode": "open-api"
      },
      "post": {
        "operationId": "mcp_server",
        "summary": "CarrierCloud MCP Server",
        "description": "Streamable-HTTP MCP endpoint. Connect Claude, ChatGPT, Cursor, VS Code or any MCP client to this URL with your API key as a bearer token. The 35 tools are read-only mirrors of v1 operations; each tool's arguments are the operation's path and query parameters, so every partner-scoped tool needs the partner code.",
        "x-zuplo-route": {
          "corsPolicy": "portal-cors",
          "handler": {
            "export": "mcpServerHandler",
            "module": "$import(@zuplo/runtime)",
            "options": {
              "name": "carriercloud-mcp",
              "version": "1.0.0",
              "operations": [
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_active_partners"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_tractors"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_tractor"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_tractor_by_number"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_tractor_positions"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_tractor_performance_events"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_drivers"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_driver"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_drivers_hours_of_service"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_active_offers"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_loads"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_load_detail"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_orders"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_order_detail"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_order_by_number"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_order_documents"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_order_positions"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_quote_details"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_locations"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_carriers"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_carrier"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_trailer"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_trailer_by_number"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "geocode_reverse"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "geocode_search"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "geocode_structured"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_equipment_types"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_service_types"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_note_types"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_trailer_statuses"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_tractor_statuses"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_commodities"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_accessorials"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_weight_units"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_quantity_units"
                },
                {
                  "file": "./config/routes-v1.oas.json",
                  "id": "get_volume_units"
                }
              ]
            }
          },
          "policies": {
            "inbound": [
              "api-key-inbound"
            ]
          }
        },
        "tags": [
          "MCP"
        ],
        "x-mcp-server": {
          "name": "carriercloud-mcp",
          "version": "1.0.0",
          "security": [
            {
              "bearerAuth": []
            }
          ],
          "securitySchemes": {
            "bearerAuth": {
              "type": "http",
              "scheme": "bearer"
            }
          },
          "tools": [
            {
              "name": "get_loads",
              "description": "List loads for a partner."
            },
            {
              "name": "get_load_detail",
              "description": "Get full load detail by load id. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_active_offers",
              "description": "List active load offers for a partner. Currently gated: answers 401 Sandbox Limit until enabled for your key."
            },
            {
              "name": "get_orders",
              "description": "List orders for a partner."
            },
            {
              "name": "get_order_detail",
              "description": "Get full order detail by order id. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_order_by_number",
              "description": "Get order detail by order number. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_order_documents",
              "description": "List documents attached to an order. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it. Currently gated: answers 401 Sandbox Limit until enabled for your key."
            },
            {
              "name": "get_order_positions",
              "description": "Get GPS positions reported for an order. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_quote_details",
              "description": "Get order quote details by quote id. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it. Currently gated: answers 401 Sandbox Limit until enabled for your key."
            },
            {
              "name": "get_locations",
              "description": "List locations for a partner."
            },
            {
              "name": "get_tractors",
              "description": "List tractors for a partner."
            },
            {
              "name": "get_tractor",
              "description": "Get a single tractor by its id. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_tractor_by_number",
              "description": "Get a single tractor by its tractor number. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_tractor_positions",
              "description": "Get GPS position history for a tractor. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_tractor_performance_events",
              "description": "Get performance events recorded for a tractor. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_trailer",
              "description": "Get a single trailer by its id. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_trailer_by_number",
              "description": "Get a single trailer by its trailer number. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_drivers",
              "description": "List drivers for a partner."
            },
            {
              "name": "get_driver",
              "description": "Get a single driver by id. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_drivers_hours_of_service",
              "description": "Get driver hours of service records for a specific date. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it. Currently gated: answers 401 Sandbox Limit until enabled for your key."
            },
            {
              "name": "get_carriers",
              "description": "List carriers for a partner."
            },
            {
              "name": "get_carrier",
              "description": "Get a single carrier by id. Requires the partner's code (the company whose data you are reading, e.g. MIST); call get_active_partners first if you do not have it."
            },
            {
              "name": "get_active_partners",
              "description": "List the partner companies you have an active CarrierCloud partnership with."
            },
            {
              "name": "geocode_search",
              "description": "Geocode a free-form address search string."
            },
            {
              "name": "geocode_structured",
              "description": "Geocode from structured address fields."
            },
            {
              "name": "geocode_reverse",
              "description": "Get an address from a latitude/longitude."
            },
            {
              "name": "get_equipment_types",
              "description": "List valid equipment type dropdown options for a partner."
            },
            {
              "name": "get_service_types",
              "description": "List valid service type dropdown options for a partner."
            },
            {
              "name": "get_note_types",
              "description": "List valid note type dropdown options for a partner."
            },
            {
              "name": "get_trailer_statuses",
              "description": "List valid trailer status dropdown options for a partner."
            },
            {
              "name": "get_tractor_statuses",
              "description": "List valid tractor status dropdown options for a partner."
            },
            {
              "name": "get_commodities",
              "description": "List valid commodity dropdown options for a partner."
            },
            {
              "name": "get_accessorials",
              "description": "List valid accessorial dropdown options for a partner."
            },
            {
              "name": "get_weight_units",
              "description": "List valid weight unit dropdown options for a partner."
            },
            {
              "name": "get_quantity_units",
              "description": "List valid quantity unit dropdown options for a partner."
            },
            {
              "name": "get_volume_units",
              "description": "List valid volume unit dropdown options for a partner."
            }
          ]
        },
        "responses": {
          "200": {
            "description": "MCP JSON-RPC response (application/json or text/event-stream, per the client's Accept header)."
          },
          "401": {
            "description": "Missing or invalid API key (problem JSON)."
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://carriercloud.ai",
      "description": "Production"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Your CarrierCloud API key, the same one used for the REST API."
      }
    }
  },
  "tags": [
    {
      "name": "MCP",
      "description": "Model Context Protocol endpoint for AI assistants."
    }
  ]
}