Token导航 LogoToken导航TokenDH.com
Plytix MCP logo
运维云端stdio官方级别未说明来源级核验

Plytix MCP

MCP Server

mcp-remote

一个轻量级、无状态的模型上下文协议(MCP)服务器,为AI助手提供对Plytix产品信息管理(PIM)数据的实时访问。

工具数

47

提示词数

0

GitHub Stars

7

资源数

0
TypeScriptClaude云部署Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Supplyline

提供方

Supplyline

最后核验

2026/5/17 20:22

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx mcp-remote https://plytix-mcp.your-subdomain.workers.dev/mcp \

详细介绍

Plytix MCP服务器

A. 轻量级、无状态的模型上下文协议(MCP)服务器 它为AI助手提供了对Plytix PIM(产品信息管理)数据的实时访问。该服务器使人工智能工具(如Claude Desktop、Claude移动应用程序和其他MCP客户端)能够直接从Plytix API搜索、查找和检索产品信息。

注: 这是一个用于读写操作的无状态实时API工具。有关同步、缓存或ETL工作流,请参阅 补给线同步.

特性

  • 47个MCP工具通过stdio,44个通过远程工作器
  • 智能产品查找 具有自动标识符检测功能(SKU、MPN、GTIN、标签)
  • 家庭与遗产追踪 具有overwriten_attributes支持
  • 架构发现 用于属性和搜索筛选器
  • 自动身份验证 使用令牌刷新
  • 费率限制处理 指数回退
  • 零持久性 --无状态,无需数据库
  • 远程服务器支持 --部署到Cloudflare Workers以进行移动/web访问

安装

先决条件

  • Node.js 18+ (推荐节点20+)
  • Plytix个人信息管理账户 具有API访问权限

设置

  1. 克隆并安装:
git clone https://github.com/Supplyline/plytix-mcp.git
cd plytix-mcp
npm install
  1. 配置凭据:
cp .env.example .env
# Edit .env with your Plytix API credentials
  1. 构建项目:
npm run build

用法

使用克劳德桌面

添加到您的Claude Desktop MCP配置(~/Library/Application Support/Claude/claude_desktop_config.json 在macOS上):

{
  "mcpServers": {
    "plytix": {
      "command": "node",
      "args": ["/path/to/plytix-mcp/dist/index.js"],
      "env": {
        "PLYTIX_API_KEY": "your_api_key_here",
        "PLYTIX_API_PASSWORD": "your_api_password_here"
      }
    }
  }
}

独立

npm start          # Production mode
npm run dev        # Development with hot reload

远程服务器(Cloudflare Workers)

部署为远程MCP服务器,以便从Claude移动应用程序、web客户端或共享团队访问。

快速部署

# Install dependencies (includes wrangler)
npm install

# Login to Cloudflare
wrangler login

# Deploy to Cloudflare Workers
npm run deploy

使用远程服务器

部署后,使用部署的URL和您的Plytix凭据从任何MCP客户端连接:

# With Claude Desktop (using mcp-remote)
npx mcp-remote https://plytix-mcp.your-subdomain.workers.dev/mcp \
  --header "X-Plytix-API-Key: YOUR_API_KEY" \
  --header "X-Plytix-API-Password: YOUR_API_PASSWORD"

远程工作者暴露了44个工具。它故意省略了三个仅限本地的标识符实用程序: identifier_detect, identifier_normalize,以及 match_score.

本地开发

npm run dev:worker         # Start local worker at localhost:8787
npm run test:worker        # Test the worker endpoints

有关详细的设置说明,请参阅 docs/remote-setup.md.

可用工具

产品工具

工具说明
products_lookup通过任何标识符进行智能查找(自动检测ID、SKU、MPN、GTIN、标签)
products_get按ID获取单个产品,并提供完整的详细信息 overwritten_attributes
products_get_full获取一个包含相关系列、变体、类别和资产的产品
products_search具有过滤器、分页和排序功能的高级搜索
products_find简单的多条件搜索(SKU、MPN、MNO、GTIN、标签、模糊)
products_create创建新产品
products_update产品字段/属性的部分更新
products_assign_family分配或取消分配产品系列
products_set_attribute一个属性值的原子集
products_clear_attribute原子清除一个属性值

家庭工具

工具说明
families_list列出或搜索产品系列
families_get获取具有链接属性的单个家庭
families_create创建新产品系列
families_link_attribute将一个或多个属性链接到族
families_unlink_attribute从族中取消链接一个或多个属性
families_list_attributes列出直接链接到族的属性
families_list_all_attributes列出直接和继承的族属性

属性和筛选工具

工具说明
attributes_list列出所有属性(系统+自定义)及其类型和选项
attributes_get获取一个属性标签的完整元数据
attributes_get_options获取可选属性的允许值
attributes_filters已弃用的产品筛选器发现别名
products_filters获取产品搜索筛选器元数据
assets_filters获取资产搜索筛选器元数据
relationships_filters获取关系搜索筛选器元数据

资产工具

工具说明
assets_get按ID获取一项资产
assets_search搜索帐户资产
assets_update更新资产元数据(filename, categories)
assets_list列出链接到产品的资产(图像、视频、文档)
assets_link将资产链接到产品
assets_unlink将资产与产品解除链接

分类工具

工具说明
categories_search搜索现有类别
categories_list列出与产品关联的类别
categories_link将类别链接到产品
categories_unlink从产品中取消类别链接

变体工具

工具说明
variants_create在父产品下创建变体
variants_link将现有产品链接为变体
variants_unlink在不删除变体的情况下,将其从父级中取消链接
variants_list列出产品的变体
variants_resync重置变量属性以继承父值

关系工具

工具说明
relationships_get按ID获取关系定义
relationships_search搜索关系定义
relationships_link_product在关系中链接一个相关的产品行
relationships_unlink_product取消链接关系中的一个相关产品行
relationships_set_quantity更新一个相关产品行的数量

标识符实用程序(仅限Stdio)

工具说明
identifier_detect从原始值中检测标识符类型
identifier_normalize规范标识符以进行匹配
match_score分数标识符产品匹配置信度

除了最后一节中的三个标识符实用程序外,远程工作器还公开了上述所有工具。

智能查询系统

products_lookup 该工具自动检测标识符类型并使用分阶段搜索策略:

检测优先级:

  1. MongoDB对象ID(24个字符十六进制)→ id (置信度:1.0)
  2. GTIN(8/12/13/14位数字)→ gtin (置信度:0.95)
  3. 包含空格→ label (置信度:0.9)
  4. 虚线字母数字→ mpn (置信度:0.8)
  5. 带分隔符的字母数字→ sku (置信度:0.7)

搜索策略(按顺序):

  1. 直接ID查找(如果检测为ID)
  2. 精确的字段匹配(SKU、GTIN、MPN、MNO)
  3. 跨多个字段的文本搜索
  4. 广泛的LIKE搜索(最后手段)

例子:

Input: "LMI-PD-123"
→ Detected as: sku (confidence: 0.7)
→ Tries: sku_eq, mpn fields, text_search, broad_like
→ Returns: best match with confidence score

继承跟踪

产品退货 overwritten_attributes 数组列出了哪些属性是显式设置的(不是从族继承的)。将其与以下内容一起使用:

  • product_family_id --该产品所属的家族
  • families_get --检索族级默认值
  • 比较以确定继承值与覆盖值

配置

环境变量

变量必填默认描述
PLYTIX_API_KEY您的Plytix API密钥
PLYTIX_API_PASSWORD您的Plytix API密码
PLYTIX_API_BASEhttps://pim.plytix.comPlytix API基础URL
PLYTIX_AUTH_URLhttps://auth.plytix.com/auth/api/get-token身份验证端点
PLYTIX_MPN_LABELS["attributes.mpn"]MPN属性标签的JSON数组
PLYTIX_MNO_LABELS["attributes.model_no"]MNO属性标签的JSON数组

发展

脚本

命令描述
npm run dev具有热重载功能的开发服务器(stdio)
npm run dev:workerCloudflare Workers开发服务器
npm run build将TypeScript构建为JavaScript
npm run deploy部署到Cloudflare Workers
npm start启动生产服务器(stdio)
npm test运行单元测试(vitest)
npm run test:watch在监视模式下运行测试
npm run test:mcp测试MCP协议握手
npm run test:worker测试工作者端点
npm run test:all构建+单元+集成+MCP测试
npm run typecheck无建筑类型检查

建筑

src/
  index.ts              # MCP server entry point (stdio transport)
  worker.ts             # Cloudflare Worker entry point (HTTP transport)
  client.ts             # Plytix API client with auth & rate limiting
  worker-client.ts      # Worker-compatible client (BYOK credentials)
  worker-lookup.ts      # Worker-compatible smart lookup
  types.ts              # TypeScript types
  lookup/
    identifier.ts       # Identifier type detection
    lookup.ts           # Smart lookup with staged search
  tools/
    products.ts         # Product tools (lookup, get, search, find, write ops)
    families.ts         # Family tools (list, get, create, attribute membership)
    attributes.ts       # Attribute metadata + filter discovery tools
    product-attributes.ts # Atomic product attribute write tools
    assets.ts           # Asset get/search/update + product asset link tools
    categories.ts       # Category search + product category link tools
    variants.ts         # Variant lifecycle tools
    relationships.ts    # Relationship discovery + product relationship write tools
  supplyline/           # Supplyline-specific customizations
wrangler.toml           # Cloudflare Workers configuration
docs/
  remote-setup.md       # Remote server setup guide

设计原则

此MCP服务器是故意的 无状态和轻量级:

  • 无数据库 -所有查询都直接进入Plytix API
  • 无同步/缓存层 --每次请求都有新的数据
  • 没有背景工作 --仅限请求/响应
  • 临时内存缓存 --短暂(60秒)请求重复数据删除,重新启动时清除

对于ETL、同步或持久缓存需求,请使用单独的工具,如 补给线同步.

许可证

MIT许可证——见 许可证 文件以获取详细信息。

支持

目录标签

目录标签

TypeScriptClaude云部署产品信息管理本地部署实时APIAI工具集成无状态服务器

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

token

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

mcp-remote

工具数量(toolCount,工具数)

47

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiotoken部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP