CareSakhi MCP服务器
连接的MCP(模型上下文协议)服务器 CareSakhi合作伙伴应用程序 支持后端 克劳德桌面版通过自然对话管理订单、产品、库存、用户和EcoCoins。
快速开始
1.安装依赖项
cd caresakhi-mcp-server
npm install
2.建造
npm run build
3.配置克劳德桌面
将此添加到您的 claude_desktop_config.json:
- MSIX安装(您的设置):
C:\Users\DELL\AppData\Local\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json - 标准安装:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"caresakhi": {
"command": "node",
"args": ["
/caresakhi-mcp-server/dist/index.js"],
"env": {
"SUPABASE_URL": "https://your-project-ref.supabase.co",
"SUPABASE_SERVICE_ROLE_KEY": ""
}
}
}
}
⚠️ 获取您的服务角色密钥 从 Supabase仪表板 → 您的项目→ 设置→ API → service_role 钥匙。
4.重新启动克劳德桌面
关闭并重新打开Claude Desktop。您应该在MCP工具列表中看到“caresakhi”。
______________________________________________________________________
可用工具(16)
订单
| 工具 | 说明 |
|---|
get_orders | 列出带有状态、日期和用户筛选器的订单 |
get_order_details | 包含商品和时间线的完整订单信息 |
update_order_status | 接受/拒绝/提前下单 |
create_order | 下新订单 |
产品
| 工具 | 说明 |
|---|
search_products | 按名称、类别、价格、标签搜索目录 |
get_product_details | 完整的产品信息 |
股票
| 工具 | 说明 |
|---|
get_stock_levels | 带低库存过滤器的分销商库存 |
update_stock | 更新库存数量 |
通知
| 工具 | 说明 |
|---|
get_notifications | 使用类型/读取筛选器查看通知 |
mark_notification_read | 将单个或全部标记为已读 |
用户
| 工具 | 说明 |
|---|
get_user_profile | 按ID、电话或合作伙伴ID查找 |
list_users | 按角色/KYC状态列出用户 |
get_pharmacy_links | 经销商关联药店 |
link_pharmacy | 通过优惠券代码链接药房 |
生态币
| 工具 | 说明 |
|---|
get_eco_balance | 余额和交易历史 |
get_analytics | 仪表板统计数据(订单、收入、用户) |
资源(3)
| URI | 描述 |
|---|
caresakhi://schema | 数据库架构概述 |
caresakhi://products/catalog | 完整的产品目录 |
caresakhi://stats/overview | 系统统计 |
______________________________________________________________________
对话示例
You: Show me all pending orders
Claude: [calls get_orders] → Lists orders with status, amount, pharmacy info
You: Accept order ORD-2026-0039 with note "Will ship today"
Claude: [calls update_order_status] → Order updated ✅
You: How many orders this week?
Claude: [calls get_analytics] → Weekly summary with charts
You: Find organic pads under ₹200
Claude: [calls search_products] → Product list with prices and stock