Freightlane

io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 7, 2026

Morocco-Europe shipping data: quotes, couriers, routes, tracking and customs estimates.

已驗證STDIO僅桌面位置與生活商業與電商

概覽

AI 產生的概覽

連接 EuroCollis 的本機橋接服務,讓助理查詢摩洛哥—歐洲路線的運費報價、路線、承運人、貨件追蹤與關稅估算。

可以做什麼
  • 查詢服務說明、可託運物品目錄與禁運物品
  • 列出支援的歐洲—非洲路線及各國取件/配送城市
  • 取得箱包或目錄商品的權威運費報價
  • 尋找近期有行程的已驗證承運人,查看其公開資料與店鋪頁面
  • 以貨件編號加配送城市查詢公開貨件狀態
  • 估算關稅與營業稅,並在支援的貨幣間換算金額
適用情境
適合讓助理為歐洲與摩洛哥或其他非洲路線的貨運估價、比較承運人、確認海關禁運品,或查詢貨件的公開狀態。此服務為唯讀,實際下單仍須在其他管道完成。
執行需求
透過 npx(需 Node.js)或 Docker 映像在本機執行,需要能連線至 EuroCollis 上游端點。可選擇設定 EUROCOLLIS_MCP_URL 覆寫端點,設定 EUROCOLLIS_API_KEY 以送出 x-eurocollis-key 標頭;未設定金鑰時不會送出驗證標頭。
安裝前請注意
所有工具呼叫都會轉送至第三方 EuroCollis 端點,因此城市、貨件編號、申報價值等查詢內容會離開本機。若設定了 EUROCOLLIS_API_KEY,每次請求都會將其送往上游。關稅估算僅供參考,報價不應在本機重新計算。不提供下單、付款或寫入類工具。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Freightlane,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

freightlane

freightlane is a thin local bridge to EuroCollis, a shipping service running corridors between Europe and Africa — Morocco in particular. Its hosted MCP server publishes the read-only logistics data behind the service's public pricing and tracking: the shippable item catalogue, supported routes and cities, price quotes from the same engine the website uses, live courier trips and storefronts, shipment tracking, and indicative customs estimates.

The bridge stores nothing and prices nothing itself. It serves the upstream server's tool list locally — exactly as captured from the live endpoint — and forwards each tool call upstream, returning the result untouched. There is deliberately no booking tool here: the upstream surface is read-only, and bookings are confirmed outside it.

Tools

  • get_eurocollis_info — what EuroCollis is: the corridors it operates, its currency and deposit model, and where bookings are completed. No arguments.
  • get_services — the shippable item catalogue with its pricing units. The item_id values here are what get_quote accepts in its items list. No arguments.
  • get_prohibited_items — items that EuroCollis and Morocco/EU customs prohibit. Worth surfacing before any booking recommendation. No arguments.
  • get_routes — every supported Europe ⇔ Africa corridor. Optional: origin_country and destination_country (ISO-3166 alpha-2) to scope the answer to one corridor with live trip volume.
  • get_cities — supported pickup and delivery cities for one country (country, required, ISO-3166 alpha-2 such as MA or FR). Quote calls expect these exact names.
  • get_quote — the authoritative price quote for a shipment. Required: origin_country, origin_city, destination_country, destination_city. Provide weight_kg for box/suitcase shipments or items for catalogue goods (each with a quantity, plus item_id or name from get_services); optional pickup_date (YYYY-MM-DD, defaults to today) and flex_days (search window after pickup, default 14). Prices come from the upstream engine — never re-compute them locally.
  • search_couriers — live, verified couriers with upcoming trips on a corridor; demo accounts, unverified couriers and past departures are excluded upstream. Optional: origin_country, destination_country, from_date (YYYY-MM-DD, defaults to today) and limit.
  • get_courier — the public profile for one courier (courier, required: storefront slug or courier id). No personal data is returned.
  • get_storefront — a published courier storefront with its canonical URL and corridor pages. Optional: slug to pick one storefront, limit when listing; omit slug to list storefronts.
  • track_shipment — public shipment status. Both reference (e.g. BK-XXXXXX) and delivery_city are required, as an anti-enumeration measure. No personal data is returned.
  • estimate_customs — an indicative duty and VAT estimate. Required: destination_country and declared_value_eur; optional category. The estimate is not authoritative, and the disclaimer it returns should be rendered verbatim.
  • convert_currency — convert an amount between EuroCollis-supported currencies using live MAD-based rates. Required: amount, from_currency, to_currency.

Configuration

  • EUROCOLLIS_MCP_URL (optional) — override the upstream endpoint. Defaults to https://api.eurocollis.com/mcp. (The override hook is this rebuild's own labelled reconstruction.)
  • EUROCOLLIS_API_KEY (optional) — when set, its value is sent to the upstream on every request under the x-eurocollis-key header, the header name pinned by the upstream's registry record. When unset, no auth header is sent; the captured surface was read keyless. (This forwarding is a labelled reconstruction.)

Forwarding mechanics

On the first tool call the client opens a streamable HTTP session with the upstream: a JSON-RPC initialize request (protocolVersion 2025-03-26, clientInfo name freightlane), then a notifications/initialized notification, then the tools/call request carrying the caller's arguments unchanged. When the upstream answers initialize with an Mcp-Session-Id header, that value rides on every later request of the session, which is reused for the life of the process. Replies may arrive as plain JSON or as server-sent events; both are read.

Successful upstream results pass through verbatim, including any isError flag the upstream sets. Failures — a JSON-RPC error, a non-2xx status, an unreadable response, or a request that cannot be completed — come back as an isError result whose text starts with freightlane error: (this rendering is this rebuild's own labelled reconstruction).

CLI

Each tool is also a subcommand taking one JSON argument string (omit it for tools that take none):

bash
npx @reneturcios/freightlane get_cities '{"country":"MA"}'npx @reneturcios/freightlane get_quote '{"origin_country":"FR","origin_city":"Paris","destination_country":"MA","destination_city":"Casablanca","weight_kg":12.5}'npx @reneturcios/freightlane get_routesnpx @reneturcios/freightlane --version

Exit codes: 0 on success, 1 on an isError result, 2 on a usage error.

MCP server

bash
npx -y @reneturcios/freightlane mcp

MCP client config:

json
{  "mcpServers": {    "freightlane": {      "command": "npx",      "args": ["-y", "@reneturcios/freightlane", "mcp"]    }  }}

Docker

bash
docker run -i ghcr.io/cloudcorprecords/freightlanedocker run --rm ghcr.io/cloudcorprecords/freightlane --version

The container's default command is mcp, so the first form is a stdio MCP server; any other arguments reach the CLI normally.

Development

bash
npm installnpm run buildnpm testnpm run dev

The test suite runs entirely against a stubbed JSON-RPC upstream — no live network calls.

License

MIT — see LICENSE.

來源:README.md,提交 1f4e49e

工具

12

get_eurocollis_info

What EuroCollis is, the corridors it operates, currency, deposit model and where bookings are completed.

無需輸入參數。

get_services

Shippable item catalogue with pricing units — use item_id values when calling get_quote with items.

無需輸入參數。

get_prohibited_items

Items EuroCollis and Morocco/EU customs prohibit. Always surface before a booking recommendation.

無需輸入參數。

get_routes

Every supported Europe ↔ Africa corridor. Optionally scope to one corridor for live trip volume.

輸入參數origin_countrydestination_country

get_cities

Supported pickup/delivery cities for one country. Use these exact names as origin_city / destination_city in get_quote.

輸入參數country必填

get_quote

Authoritative price quote for a Europe ↔ Africa shipment, returned from the same pricing engine the website uses. Provide weight_kg for boxes/suitcases or items[] for catalogue goods. Never re-compute prices yourself.

輸入參數itemsflex_daysweight_kgorigin_city必填pickup_dateorigin_country必填destination_city必填destination_country必填

search_couriers

Live, verified couriers with upcoming trips on a corridor. Demo accounts, unverified couriers and past departures are excluded.

輸入參數limitfrom_dateorigin_countrydestination_country

get_courier

Public profile for one courier by storefront slug or courier id. No PII.

輸入參數courier必填

get_storefront

Published courier storefront with its canonical URL (custom domain / subdomain / platform path) and corridor pages. Omit slug to list storefronts.

輸入參數sluglimit

track_shipment

Public shipment status. Requires BOTH the reference and the delivery city (anti-enumeration). No PII returned.

輸入參數reference必填delivery_city必填

estimate_customs

Indicative duty + VAT estimate. NOT authoritative — always render the returned disclaimer verbatim.

輸入參數categorydeclared_value_eur必填destination_country必填

convert_currency

Convert an amount between EuroCollis-supported currencies using live MAD-based rates.

輸入參數amount必填to_currency必填from_currency必填

版本歷史

1
  1. v0.1.0最新Nov 5, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分