npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mixmediahk/zoeasy-mcp

v1.5.0

Published

ZoEasy Product Documents MCP Server - AI-powered insurance product document search service

Readme

ZoEasy Product Documents MCP Server

基於 Model Context Protocol (MCP) 的保險產品文件搜尋服務,為 AI 助手提供智慧化的產品文件檢索能力。

快速開始

安裝

yarn install
yarn build

設定環境變數

建立 .env 檔案:

ZOEASY_API_ENDPOINT=http://localhost:8000/api
ZOEASY_API_KEY=your-tools-api-key-here
REQUEST_TIMEOUT=30000

# Optional: Tag filters (server-locked, comma-separated slugs)
# ZOEASY_REQUIRE_TAGS=travel-insurance
# ZOEASY_EXCLUDE_TAGS=annual-plan,group-plan

命令行參數配置

除了環境變數,您也可以通過命令行參數進行配置(優先級高於環境變數):

# 使用長參數
yarn start -- --api-key your-api-key --api-endpoint http://localhost:8000/api

# 使用短參數
yarn start -- -k your-api-key -e http://localhost:8000/api

# 設置超時時間(毫秒)
yarn start -- -k your-api-key -t 60000

支持的參數:

  • --api-endpoint-e:API 端點地址
  • --api-key-k:API 密鑰(必需)
  • --timeout-t:請求超時時間(毫秒,預設 30000)
  • --require-tags:必填標籤過濾(AND,逗號分隔,伺服器端鎖定)
  • --exclude-tags:排除標籤過濾(NOT,逗號分隔,伺服器端鎖定)

配置優先級: 命令行參數 > 環境變數 > .env 檔案

V2 API 參數映射

本 MCP Server 使用 V2 API endpoint (/product/tools/v2/product-docs/search),支援三種標籤過濾:

| MCP Tool 輸入 | V2 API 參數 | 過濾邏輯 | 說明 | |---------------|-------------|----------|------| | slug(每次動態傳入) | include | OR | 轉為單元素陣列,任一符合即納入 | | ZOEASY_REQUIRE_TAGS(env/CLI 鎖定) | require | AND | 伺服器端鎖定,全部符合才納入 | | ZOEASY_EXCLUDE_TAGS(env/CLI 鎖定) | exclude | NOT | 伺服器端鎖定,排除符合項目 |

可用工具 (Available Tools)

本 MCP Server 提供以下 6 個工具:

| 工具名稱 | 說明 | |---------|------| | search_product_documents | 跨類別搜尋產品文件(V2 API,支援標籤過濾) | | list_product_slug | 列出所有產品類別(slug、title、examples) | | quotation_gzgplus | 取得【易起行+】旅遊保險計劃的保費報價 | | quotation_home_choice | 取得家居保險計劃的保費報價 | | quotation_studysmartplus | 取得【StudySmart+】留學保險計劃的保費報價 | | quotation_live2play | 取得【Live2Play】保險計劃的保費報價 |

執行

yarn start

本機測試

yarn test:inspector

AI 客戶端設定

Claude Code

在專案根目錄建立或編輯 .mcp.json

方式 1:使用環境變數

{
  "mcpServers": {
    "zoeasy-product-documents": {
      "command": "npx",
      "args": ["-y", "@mixmediahk/zoeasy-mcp"],
      "env": {
        "ZOEASY_API_ENDPOINT": "http://localhost:8000/api",
        "ZOEASY_API_KEY": "your-api-key-here"
      }
    }
  }
}

方式 2:使用命令行參數

{
  "mcpServers": {
    "zoeasy-product-documents": {
      "command": "npx",
      "args": [
        "-y",
        "@mixmediahk/zoeasy-mcp",
        "--api-key",
        "your-api-key-here",
        "--api-endpoint",
        "http://localhost:8000/api"
      ]
    }
  }
}

OpenCode

在 OpenCode 設定檔中(如 .opencode/mcp.json),注意欄位有所不同:

方式 1:使用環境變數

{
  "mcp": {
    "zoeasy-product-documents": {
      "type": "local",
      "command": ["npx", "-y", "@mixmediahk/zoeasy-mcp"],
      "enabled": true,
      "environment": {
        "ZOEASY_API_ENDPOINT": "http://localhost:8000/api",
        "ZOEASY_API_KEY": "your-api-key-here"
      }
    }
  }
}

方式 2:使用命令行參數

{
  "mcp": {
    "zoeasy-product-documents": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@mixmediahk/zoeasy-mcp",
        "--api-key",
        "your-api-key-here",
        "--api-endpoint",
        "http://localhost:8000/api"
      ],
      "enabled": true
    }
  }
}

開發

# 開發模式(監聽檔案變化)
yarn dev

# 建構生產版本
yarn build

授權

Apache-2.0