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

AI Boutique Assit MCP

MCP Server

通过标准化的模型上下文协议(MCP)暴露微服务,使任何MCP客户端能够访问完整的电商功能。

工具数

18

提示词数

0

GitHub Stars

0

资源数

0
PythonClaude云端部署Claude

安装说明

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

作者 / 组织

arjunprabhulal

提供方

arjunprabhulal

最后核验

2026/5/17 20:19

快速接入

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

命令预览

pip install ai-boutique-assit-mcp

详细介绍

在线精品AI助手MCP服务器

](https://badge.fury.io/py/ai-boutique-assit-mcp) ![Python](https://pypi.org/project/ai-boutique-assit-mcp/) ![License: MIT](https://opensource.org/licenses/MIT) ](https://pepy.tech/project/ai-boutique-assit-mcp)

用于在线精品AI助手的模型上下文协议(MCP)服务器

通过标准化的模型上下文协议公开微服务,使任何MCP客户端都能访问完整的电子商务功能。

📦 在PyPI上可用

目录

  1. 特性
  2. 建筑
  3. 安装
  4. 用法
  5. 可用功能
  6. 配置
  7. 发展
  8. 需求
  9. 用例
  10. 贡献
  11. 许可证

特性

  • 完整的电子商务:18个微服务功能,用于产品、购物车、结账、支付、配送
  • 标准MCP协议:适用于任何MCP客户端(Claude、ChatGPT、自定义工具)
  • 谷歌ADK集成:使用Google Agent开发工具包模式构建
  • 动态配置:基于环境变量的配置
  • 生产就绪:全面的日志记录和错误处理

建筑

┌─────────────────┐    ┌──────────────────┐    ┌─────────────────────┐
│   MCP Client    │────│  MCP Server      │────│  Microservices      │
│ (Any LLM/Agent) │    │ (This Package)   │    │ (Online Boutique)   │
└─────────────────┘    └──────────────────┘    └─────────────────────┘

安装

从PyPI安装:

pip install ai-boutique-assit-mcp

或者从源代码安装:

git clone https://github.com/arjunprabhulal/ai-boutique-assit-mcp.git
cd ai-boutique-assit-mcp
pip install -e .

用法

1.启动MCP服务器

服务器支持两种操作模式:

HTTP模式(Web/API访问)

# Standalone HTTP server (default)
boutique-mcp-server --port 8080

# Or explicitly force HTTP mode
boutique-mcp-server --http --port 8081

标准模式(ADK集成)

# Force stdio mode for direct ADK integration
boutique-mcp-server --stdio

# ADK will automatically launch in stdio mode when using StdioConnectionParams

可用选项

boutique-mcp-server --help

# Options:
#   --port PORT    Port for HTTP mode (default: 8080)
#   --stdio        Force stdio mode (for ADK integration)
#   --http         Force HTTP mode (for web/API access)

2.连接ADK代理

HTTP连接(手动启动服务器)

from google.adk.agents import Agent
from google.adk.tools.mcp_tool import McpToolset, SseConnectionParams

agent = Agent(
    name="boutique_assistant",
    model="gemini-2.0-flash",
    instruction="You are a helpful e-commerce assistant.",
    tools=[
        McpToolset(
            connection_params=SseConnectionParams(
                url="http://localhost:8081/mcp"
            )
        )
    ]
)

Stdio连接(自动启动服务器)

from google.adk.agents import Agent
from google.adk.tools.mcp_tool import McpToolset, StdioConnectionParams, StdioServerParameters

agent = Agent(
    name="boutique_assistant", 
    model="gemini-2.0-flash",
    instruction="You are a helpful e-commerce assistant.",
    tools=[
        McpToolset(
            connection_params=StdioConnectionParams(
                server_params=StdioServerParameters(
                    command="boutique-mcp-server",
                    args=["--stdio"],
                    env={
                        "PRODUCT_CATALOG_SERVICE": "localhost:3550",
                        "CART_SERVICE": "localhost:7070",
                        # Add other service endpoints as needed
                    }
                )
            )
        )
    ]
)

可用功能

MCP服务器公开了18个电子商务功能:

产品与目录

  • list_products() -浏览所有产品
  • search_products(query) -搜索产品目录
  • get_product(product_id) -获取产品详细信息
  • get_product_with_image(product_id) -带图片的产品
  • filter_products_by_price(max_price_usd) -价格过滤

购物车

  • add_item_to_cart(user_id, product_id, quantity) -加入购物车
  • get_cart(user_id) -查看购物车内容
  • empty_cart(user_id) -清空购物车

结账和订单

  • place_order(user_id, currency, address, email, credit_card) -完成购买
  • initiate_checkout() -开始结账流程

航运与物流

  • get_shipping_quote(address, items) -计算运费
  • ship_order(address, items) -安排发货

付款和货币

  • charge_card(amount, credit_card) -处理付款
  • get_supported_currencies() -可用货币
  • convert_currency(from_amount, to_currency) -货币兑换

沟通

  • send_order_confirmation(email, order) -电子邮件确认

营销

  • get_ads(context_keys) -宣传内容
  • list_recommendations(user_id, product_ids) -产品建议

配置

环境变量

服务器通过以下方式连接到Online Boutique微服务 默认端点 (Kubernetes服务名称):

# Default endpoints (production/GKE environment)
PRODUCT_CATALOG_SERVICE="productcatalogservice:3550"
CART_SERVICE="cartservice:7070"
RECOMMENDATION_SERVICE="recommendationservice:8080"
SHIPPING_SERVICE="shippingservice:50051"
CURRENCY_SERVICE="currencyservice:7000"
PAYMENT_SERVICE="paymentservice:50051"
EMAIL_SERVICE="emailservice:5000"
CHECKOUT_SERVICE="checkoutservice:5050"
AD_SERVICE="adservice:9555"

用于本地测试,用localhost端点覆盖:

export PRODUCT_CATALOG_SERVICE="localhost:3550"
export CART_SERVICE="localhost:7070"
export RECOMMENDATION_SERVICE="localhost:8080"
export SHIPPING_SERVICE="localhost:50051"
export CURRENCY_SERVICE="localhost:7000"
export PAYMENT_SERVICE="localhost:50052"
export EMAIL_SERVICE="localhost:5000"
export CHECKOUT_SERVICE="localhost:5050"
export AD_SERVICE="localhost:9555"

发展

地方发展

# 1. Clone the repository
git clone https://github.com/arjunprabhulal/ai-boutique-assit-mcp.git
cd ai-boutique-assit-mcp

# 2. Install dependencies
pip install -r requirements.txt

# 3. Start MCP server
boutique-mcp-server --port 8081

# Or use Python module directly
python -m ai_boutique_assit_mcp.mcp_server --port 8081

# 4. Test with ADK (stdio mode)
adk run your_agent.py

# 5. Test with ADK (HTTP mode - start server first)
boutique-mcp-server --http --port 8081
# Then in another terminal: adk run your_agent.py

构建和发布

# Build package
python -m build

# Publish to PyPI
python -m twine upload dist/*

需求

  • python:3.9或更高
  • 谷歌ADK:用于MCP集成
  • gRPC:用于微服务通信
  • 目标微服务:兼容的gRPC服务

用例

  • AI智能体:将任何LLM连接到电子商务微服务
  • API网关:统一访问分布式服务
  • 测试:模拟或测试电子商务工作流程
  • 整合:微服务访问的标准协议
  • 多平台:从Python、Node.js、任何MCP客户端使用

贡献

欢迎投稿!请随时提交拉取请求。

仓库:

  1. 复刻仓库
  2. 创建功能分支
  3. 提交您的更改
  4. 推到分支
  5. 创建拉取请求

许可证

MIT许可证-有关详细信息,请参阅许可证文件。

目录标签

目录标签

PythonClaude云端部署电商助手本地部署微服务协议AI集成GoogleADKMCP服务器

支持客户端

Claude

接入字段

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

stdio

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

none

工具数量(toolCount,工具数)

18

资源数量(resourceCount,资源数)

0

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

0

权限和风险

stdionone部署方式未说明

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

安装前确认

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

来源信息

继续浏览同类 MCP