A MCP-based intelligent customer service system that provides smart Q\&A, human agent transfer, order inquiries, and product knowledge management.
这是一个基于MCP框架的智能客服系统示例项目,用于演示如何构建和部署智能客服应用。
文档:https://mp.weixin.qq.com/s/gz3ZL_3XD8sfxustNQvK2g
uv venv source .venv/bin/activate # Linux/macOS
uv pip install .
uv --directory /opt/apps/python_project/SmartCustomerSupportMCP run mcp-smart-customer-support --stdio
or
python start.py --stdio
uv --directory /opt/apps/python_project/SmartCustomerSupportMCP run mcp-smart-customer-support
or
python start.py
npx @modelcontextprotocol/inspector uv --directory /opt/apps/python_project/SmartCustomerSupportMCP run mcp-smart-customer-support --stdio
{ "mcpServers": { "SmartCustomerSupportMCP": { "command": "uv", "args": [ "--directory", "/opt/apps/python_project/SmartCustomerSupportMCP", "run", "mcp-smart-customer-support", "--stdio" ] } } }
增加环境变量信息
{ "mcpServers": { "SmartCustomerSupportMCP": { "command": "uv", "args": [ "--directory", "/opt/apps/python_project/SmartCustomerSupportMCP", "run", "mcp-smart-customer-support", "--stdio" ], "env": { "MYSQL_HOST": "192.168.xxx.xxx", "MYSQL_PORT": "3306", "MYSQL_USER": "root", "MYSQL_PASSWORD": "root", "MYSQL_DATABASE": "a_llm", "MYSQL_ROLE": "admin" } } } }
src/mcp_smart_customer_support/
├── __init__.py # 包初始化文件
├── mcp_server.py # MCP服务器实现
├── human_customer_service.py # 人工客服处理模块
├── order_operations.py # 订单操作相关功能
└── product_knowledge.py # 产品知识库管理
ggguo (admin@precariat.tech)
本项目采用MIT许可证。
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!