Yggdrasil
MCP ServersMCP 伺服器 SKILLs技能 PlugIns解決方案 Asgard AI SolutionAsgard AI 方案 Submit Listing申請上架 GitHub
b

buy123 Vendor Portal buy123 供應商平台

Released已發布
data global

Model Context Protocol server for read-only buy123 vendor portal queries

mcp-buy123-vendor MCP Server,提供 AI 代理透過自然語言存取相關資料與功能。

Status狀態
released
Category分類
data
Region地區
global
Maintainer維護者
GitHub

Features功能特色

  • buy123 供應商後台資料查詢用 MCP server
  • 供應商營運流程的唯讀查詢工具
  • 支援 Claude Desktop 與 Claude Code 的本機 MCP 設定
  • 互動式按需登入,token 僅儲存在本機
  • 離線單元測試,方便安全地本機開發
  • buy123 供應商後台資料查詢用 MCP server
  • 供應商營運流程的唯讀查詢工具
  • 支援 Claude Desktop 與 Claude Code 的本機 MCP 設定
  • 互動式按需登入,token 僅儲存在本機
  • 離線單元測試,方便安全地本機開發

Development開發

Install Dev Dependencies

./.venv/bin/pip install -e '.[dev]'

Run Tests

Tests run offline and do not require a real API connection:

./.venv/bin/python -m pytest tests/

Integration tests that require a live API connection are opt-in and must be triggered manually after configuring valid credentials in .env.

Environment Variables

See .env.example for all configurable fields. The authentication token is managed automatically by the login flow and does not need to be set manually.

安裝開發依賴

./.venv/bin/pip install -e '.[dev]'

執行測試

測試可離線執行,不需要真實的 API 連線:

./.venv/bin/python -m pytest tests/

需要真實 API 連線的整合測試為選擇性執行,必須在 .env 中設定有效憑證後手動觸發。

環境變數

所有可設定欄位請參閱 .env.example。驗證 token 由登入流程自動管理,無需手動設定。

License授權

See LICENSE.

請參閱 LICENSE

HighlightsHighlights

  • MCP server for buy123 vendor portal data access
  • Read-only query tools for vendor operations workflows
  • Claude Desktop and Claude Code compatible local MCP configuration
  • Interactive on-demand login flow with local token storage
  • Offline unit test suite for safe local development
  • MCP server for buy123 vendor portal data access
  • Read-only query tools for vendor operations workflows
  • Claude Desktop and Claude Code compatible local MCP configuration
  • Interactive on-demand login flow with local token storage
  • Offline unit test suite for safe local development

Provided ToolsProvided Tools

59 AI-callable tools — all query-only. Every tool returns the upstream API response envelope: { success, msg, data, pagination? }.

General Enumerations (no login required — 14 tools)

list_banks, list_bundle_types, list_bundle_delivery_notes, list_bundle_delivery_statuses, list_delivery_types, list_packaging_types, list_invoice_types, list_product_statuses, list_event_product_statuses, list_gross_profit_statuses, list_review_statuses, list_announcement_notify_levels, list_announcement_notify_scopes, list_announcement_notify_types

Query Tools (login required — 45 tools)

Category Tools
User info get_current_user, get_my_menu
Abnormal orders list_abnormal_orders
Returns list_returns, list_uncollected_cvs_returns
Bundles list_bundles, get_bundle, list_bundle_items, get_bundle_item, list_pricing_channels
Channels list_channels, list_channel_products
Inventory list_item_option_inventories
Shipments list_shipments, list_cvs_shipment_details, list_home_delivery_shipment_details
Permission management list_vendor_actions, list_vendor_roles, list_vendor_role_actions
Vendor management get_vendor, get_vendor_profile, list_vendor_attachments, list_vendor_categories, check_vendor_tax_number, get_vendor_return_address, list_vendor_store_pickup_return_dc, list_vendor_store_pickup_return_mode, list_vendor_store_pickups, get_vendor_store_pickup, list_vendor_users, check_vendor_user_email
Product management list_item_selection, list_items, get_item, list_item_history, list_item_options, list_item_options_selection, list_products, get_product, list_product_annotation_logs, list_product_bundle_prices, list_product_bundles, list_product_versions, list_commodity_categories, get_template_category_form

Not Supported

  • Write operations (POST / PUT / DELETE)
  • Attachment preview or download
  • Excel or other binary file downloads
  • Shipping label printing

59 AI-callable tools — all query-only. Every tool returns the upstream API response envelope: { success, msg, data, pagination? }.

General Enumerations (no login required — 14 tools)

list_banks, list_bundle_types, list_bundle_delivery_notes, list_bundle_delivery_statuses, list_delivery_types, list_packaging_types, list_invoice_types, list_product_statuses, list_event_product_statuses, list_gross_profit_statuses, list_review_statuses, list_announcement_notify_levels, list_announcement_notify_scopes, list_announcement_notify_types

Query Tools (login required — 45 tools)

Category Tools
User info get_current_user, get_my_menu
Abnormal orders list_abnormal_orders
Returns list_returns, list_uncollected_cvs_returns
Bundles list_bundles, get_bundle, list_bundle_items, get_bundle_item, list_pricing_channels
Channels list_channels, list_channel_products
Inventory list_item_option_inventories
Shipments list_shipments, list_cvs_shipment_details, list_home_delivery_shipment_details
Permission management list_vendor_actions, list_vendor_roles, list_vendor_role_actions
Vendor management get_vendor, get_vendor_profile, list_vendor_attachments, list_vendor_categories, check_vendor_tax_number, get_vendor_return_address, list_vendor_store_pickup_return_dc, list_vendor_store_pickup_return_mode, list_vendor_store_pickups, get_vendor_store_pickup, list_vendor_users, check_vendor_user_email
Product management list_item_selection, list_items, get_item, list_item_history, list_item_options, list_item_options_selection, list_products, get_product, list_product_annotation_logs, list_product_bundle_prices, list_product_bundles, list_product_versions, list_commodity_categories, get_template_category_form

Not Supported

  • Write operations (POST / PUT / DELETE)
  • Attachment preview or download
  • Excel or other binary file downloads
  • Shipping label printing

UsageUsage

Requirements

  • Python 3.10+
  • A legitimate vendor account on the buy123 platform

Install

git clone https://github.com/asgard-ai-platform/mcp-buy123-vendor.git
cd mcp-buy123-vendor

python3 -m venv .venv
./.venv/bin/pip install -e .

cp .env.example .env
# Edit .env and fill in your vendor credentials

Run as an MCP Server

./.venv/bin/python mcp_server.py

Claude Desktop Configuration

Edit ~/Library/Application Support/Claude/claude_desktop_config.json and replace <PROJECT_DIR> with the absolute path to this project:

{
  "mcpServers": {
    "buy123-vendor": {
      "command": "<PROJECT_DIR>/.venv/bin/python",
      "args": ["<PROJECT_DIR>/mcp_server.py"]
    }
  }
}

Restart Claude Desktop. The buy123-vendor server should appear as running under Settings → Developer.

Claude Code CLI

A .mcp.json is included at the project root. Running claude from this directory will pick it up automatically.

Authentication

The server uses on-demand login. When a query requires authentication and no valid token is cached, the MCP client will be prompted to complete the login flow interactively. A desktop environment (windowed display) is required for the login step.

環境需求

  • Python 3.10+
  • buy123 平台上的合法供應商帳號

安裝

git clone https://github.com/asgard-ai-platform/mcp-buy123-vendor.git
cd mcp-buy123-vendor

python3 -m venv .venv
./.venv/bin/pip install -e .

cp .env.example .env
# 編輯 .env 並填入您的供應商憑證

啟動 MCP 伺服器

./.venv/bin/python mcp_server.py

Claude Desktop 設定

編輯 ~/Library/Application Support/Claude/claude_desktop_config.json,將 <PROJECT_DIR> 替換為本專案的絕對路徑:

{
  "mcpServers": {
    "buy123-vendor": {
      "command": "<PROJECT_DIR>/.venv/bin/python",
      "args": ["<PROJECT_DIR>/mcp_server.py"]
    }
  }
}

重新啟動 Claude Desktop 後,buy123-vendor 伺服器應出現在「設定 → 開發者」中並顯示為執行中。

Claude Code CLI

專案根目錄已包含 .mcp.json。在此目錄執行 claude 時會自動載入設定。

驗證機制

伺服器採用按需登入方式。當查詢需要驗證且尚無有效的快取 token 時,MCP 客戶端會提示使用者完成互動式登入流程。登入步驟需要桌面環境(視窗顯示)。

提供的工具提供的工具

59 個 AI 可呼叫工具 — 全部為唯讀查詢。所有工具均回傳上游 API 的回應封包:{ success, msg, data, pagination? }

通用列舉(無需登入 — 14 個工具)

list_bankslist_bundle_typeslist_bundle_delivery_noteslist_bundle_delivery_statuseslist_delivery_typeslist_packaging_typeslist_invoice_typeslist_product_statuseslist_event_product_statuseslist_gross_profit_statuseslist_review_statuseslist_announcement_notify_levelslist_announcement_notify_scopeslist_announcement_notify_types

查詢工具(需登入 — 45 個工具)

類別 工具
使用者資訊 get_current_userget_my_menu
異常訂單 list_abnormal_orders
退貨 list_returnslist_uncollected_cvs_returns
組合商品 list_bundlesget_bundlelist_bundle_itemsget_bundle_itemlist_pricing_channels
通路 list_channelslist_channel_products
庫存 list_item_option_inventories
出貨 list_shipmentslist_cvs_shipment_detailslist_home_delivery_shipment_details
供應商管理 get_vendorget_vendor_profilelist_vendor_attachmentslist_vendor_categoriescheck_vendor_tax_numberget_vendor_return_addresslist_vendor_store_pickup_return_dclist_vendor_store_pickup_return_modelist_vendor_store_pickupsget_vendor_store_pickuplist_vendor_userscheck_vendor_user_email
商品管理 list_item_selectionlist_itemsget_itemlist_item_historylist_item_optionslist_item_options_selectionlist_productsget_productlist_product_annotation_logslist_product_bundle_priceslist_product_bundleslist_product_versionslist_commodity_categoriesget_template_category_form
權限管理 list_vendor_actionslist_vendor_roleslist_vendor_role_actions

不支援的功能

  • 寫入操作(POST / PUT / DELETE)
  • 附件預覽或下載
  • Excel 或其他二進位檔案下載
  • 出貨標籤列印

59 個 AI 可呼叫工具 — 全部為唯讀查詢。所有工具均回傳上游 API 的回應封包:{ success, msg, data, pagination? }

通用列舉(無需登入 — 14 個工具)

list_bankslist_bundle_typeslist_bundle_delivery_noteslist_bundle_delivery_statuseslist_delivery_typeslist_packaging_typeslist_invoice_typeslist_product_statuseslist_event_product_statuseslist_gross_profit_statuseslist_review_statuseslist_announcement_notify_levelslist_announcement_notify_scopeslist_announcement_notify_types

查詢工具(需登入 — 45 個工具)

類別 工具
使用者資訊 get_current_userget_my_menu
異常訂單 list_abnormal_orders
退貨 list_returnslist_uncollected_cvs_returns
組合商品 list_bundlesget_bundlelist_bundle_itemsget_bundle_itemlist_pricing_channels
通路 list_channelslist_channel_products
庫存 list_item_option_inventories
出貨 list_shipmentslist_cvs_shipment_detailslist_home_delivery_shipment_details
供應商管理 get_vendorget_vendor_profilelist_vendor_attachmentslist_vendor_categoriescheck_vendor_tax_numberget_vendor_return_addresslist_vendor_store_pickup_return_dclist_vendor_store_pickup_return_modelist_vendor_store_pickupsget_vendor_store_pickuplist_vendor_userscheck_vendor_user_email
商品管理 list_item_selectionlist_itemsget_itemlist_item_historylist_item_optionslist_item_options_selectionlist_productsget_productlist_product_annotation_logslist_product_bundle_priceslist_product_bundleslist_product_versionslist_commodity_categoriesget_template_category_form
權限管理 list_vendor_actionslist_vendor_roleslist_vendor_role_actions

不支援的功能

  • 寫入操作(POST / PUT / DELETE)
  • 附件預覽或下載
  • Excel 或其他二進位檔案下載
  • 出貨標籤列印

Tags標籤

dataglobalbuy123vendor

Related MCP Servers相關 MCP 伺服器