Skip to main content
Glama
司芳糯米顾客服务 MCP

司芳糯米顾客服务 MCP

司芳糯米顾客服务 MCP

面向顾客的只读 MCP 服务,帮助完成“发现商品 → 选择口味 → 确认库存与食品信息 → 打开官方购买入口”。

本仓库只包含顾客可见能力,不包含内部订单、营业报表、毛利成本、会员资料、POS 凭据或真实经营数据。

能力

MCP 工具

用途

get_store_info

查询门店地址、营业时间、状态和购买渠道

get_product_catalog

查询商品、价格、规格和门店可售状态

get_product_detail

查询原料、过敏原、保存方式和最佳食用时间

get_recommended_products

按口味、场景、人数、预算和库存推荐

get_store_inventory

查询门店商品库存状态

get_order_link

获取到店自取、美团或饿了么官方入口

get_latest_campaigns

查询当前活动、节令限定与上新

Related MCP server: netdisk-mcp-server

安全设计

  • 所有工具只读,不代替顾客提交订单或支付。

  • 正式数据和自动化测试夹具分离。

  • 默认数据文件标记为 template,不会冒充真实经营数据。

  • 库存只返回“可售、少量、售罄、不供应、未知”,不伪造精确数量。

  • 价格、过敏原、保质期和活动有效期缺失时不推测。

运行

要求 Node.js 20 或更高版本。

npm install
npm run build
npm start

默认读取:

deploy/customer-data.json

也可以通过环境变量指定由后台或同步任务生成的数据文件:

SZEFONG_CUSTOMER_DATA_PATH=/absolute/path/customer-data.json npm start

测试

npm test

测试覆盖 7 个业务工具,以及 MCP tools/list、tools/call 协议调用。

test-fixtures/customer-data.json 仅用于自动化测试,其中所有门店、商品、价格和链接均为虚构测试数据,禁止对客使用。

正式数据启用

正式上线前必须:

  1. 录入经过负责人确认的门店、商品、价格、库存、活动和购买链接。

  2. 由研发或食品安全负责人确认原料、过敏原、保存方式和最佳食用时间。

  3. 将 metadata.data_status 从 template 改为 verified。

  4. 填写 metadata.updated_at 和 metadata.source。

字段规范与 Agent 使用规则位于:

  • skill/szefong-customer-service/SKILL.md

  • skill/szefong-customer-service/references/data-contract.md

MCP 配置示例

{
  "mcpServers": {
    "szefong-customer": {
      "command": "node",
      "args": ["/absolute/path/szefong-customer-mcp/dist/customer/server.js"],
      "env": {
        "SZEFONG_CUSTOMER_DATA_PATH": "/absolute/path/szefong-customer-mcp/deploy/customer-data.json"
      }
    }
  }
}

许可

本仓库目前未附开源许可证。公开可见不等于允许复制、修改或商用;如需开放协作,请由仓库所有者另行选择许可证。

Available Tools

7 tools
get_latest_campaignsA
Read-onlyIdempotent

查询最新活动与上新:查询当前有效或指定日期有效的司芳糯米活动、节令上新和适用门店。

Inputs: date, store_id.

get_product_catalogA
Read-onlyIdempotent

查询实时商品目录:查询司芳糯米产品、价格、规格和门店可售状态;支持按门店、分类和库存状态筛选。

Inputs: category, store_id, availability.

get_product_detailA
Read-onlyIdempotent

查询商品详情:查询商品价格、规格、原料、过敏原、保存方式、最佳食用时间和门店可售状态。不得推测缺失字段。

Inputs: product_id (required), store_id.

get_store_infoA
Read-onlyIdempotent

查询门店信息:查询司芳糯米门店地址、营业时间、状态、联系方式和购买渠道。未录入正式数据时明确返回待配置。

Inputs: store_id.

get_store_inventoryA
Read-onlyIdempotent

查询门店库存状态:查询门店商品的充足、少量、售罄、不供应或未知状态;不返回未经门店确认的精确数量。

Inputs: store_id, product_id.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of customer service (campaigns, order links, product catalog, product details, recommendations, store info, inventory) with no overlap in functionality.

    Naming Consistency5/5

    All tools follow the consistent 'get_' verb_noun pattern in snake_case, making the set predictable and easy for an agent to understand.

    Tool Count5/5

    With 7 tools, the server is well-scoped for its purpose—covering product, store, campaign, and order information without superfluous or missing tools.

    Completeness4/5

    The tool set covers the essential customer-facing queries (products, stores, inventory, campaigns, order links, recommendations). A minor gap could be a tool for searching by product name or keyword, but the existing tools suffice for the domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that enables AI assistants to query and manage Nacos configurations. It supports Nacos 3.x for retrieving or publishing configuration files and includes an optional read-only mode for secure environments.
      2
      35 PyPI
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for cloud storage operations enabling browsing, file transfer, offline download, and multi-platform resource search for Quark and 115 drives.
      51 npm
      1
      GPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for food-related queries powered by MiniMax AI, enabling natural language interaction via a chat API.
      15 npm
      MIT