Metadata-Version: 2.4
Name: wetech-risk-sdk
Version: 0.1.4
Summary: WeTech Risk Control MCP SDK - Fraud detection and transaction risk evaluation tools
Author-email: wetech <your@wetech.vip>
License: MIT
Project-URL: Homepage, https://github.com/wetech/wetech-risk-sdk
Project-URL: Repository, https://github.com/wetech/wetech-risk-sdk
Project-URL: Bug Tracker, https://github.com/wetech/wetech-risk-sdk/issues
Keywords: mcp,risk-control,fraud-detection,wetech,e-commerce
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp>=1.0.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: cryptography>=42.0.0
Requires-Dist: python-dotenv>=1.0.0
Provides-Extra: dev
Requires-Dist: build>=1.0.0; extra == "dev"
Requires-Dist: twine>=5.0.0; extra == "dev"
Requires-Dist: pytest>=7.0.0; extra == "dev"
Dynamic: license-file

#add somethings
用户uieur11 购买1件Aurora 无线降噪耳机 使用信用卡支付$249并配送至纽约
用户id的uieur11（email=dahsdsh@gmail.com手机 +131123456699）购买1件Aurora 无线降噪耳机 使用信用卡支付$249并配送至纽约
{
  "BasicInfo": {
    "Appid": "1001623976",
    "Scene": 1001
  },
  "PaymentInfo": {
    "PayCurrency": "USD",
    "PayId": "pay_test_998877",
    "PayIP": "8.8.8.8",
    "PayMoney": "99.90",
    "PayTime": "1783409479",
    "PayTimeZone": "UTC+0800"
  },
  "UserInfo": {
    "UserId": "user_mcp_test_01",
    "UserRegCountryCode": "US",
    "UserRegEmail": "tester@wetech.com",
    "UserRegIp": "192.168.1.1",
    "UserRegTime": "1783223267",
    "UserRegZone": "UTC+0800"
  },
  "OrderInfo": [
    {
      "OrderId": "11123der_c5c7dab50bcb4132",
      "OrderCurrency": "USD",
      "OrderIP": "192.168.1.1",
      "OrderItemCount": "1",
      "OrderItemAmt": "89.90",
      "OrderTotalAmt": "99.90",
      "OrderTotalFreight": "10.00",
      "OrderTime": "1783309667",
      "OrderTimeZone": "UTC+0800"
    }
  ],
  "OrderItemInfo": [
    {
      "ItemCount": "1",
      "ItemId": "item_headphone_001",
      "ItemType": "电子产品",
      "ItemPrice": "89.90"
    }
  ],
  "DeliveryInfo": [
    {
      "DeliveryAdrArea": "US",
      "DeliveryAdrCity": "Los Angeles",
      "DeliveryAdrConsignee": "John neo",
      "DeliveryAdrEmail": "chb321@example.com",
      "DeliveryAdrPhone": "1234567890",
      "DeliveryAdrState": "California",
      "DeliveryAdrStreet": "12333 Main St",
      "DeliveryAdrZipcode": "95123",
      "DeliveryType": "USPS",
      "DeliveryFee": "10.00"
    }
  ]
}


#notify

{
  "NotifyInfo": {
    "UUid": "234324324",
    "PayId": "88798798798797",
    "UserId": "u1",
    "ChargebackCode": 1,
    "ChargebackAmount": "99.90",
    "ChargebackAmountCurrency": "USD",
    "ChargebackProcess": "Need_Response",
    "ChargebackReason": "goods_not_received",
    "ChargebackReasonCode": "13.1"
  },
  "PaymentInfo": {
    "PaymentResult": 0,
    "PaymentMessage": "Approved",
    "Is3dsUsed": 1,
    "T3DSValue": "0",
    "ECIValue": "05",
    "AVSValue": "0",
    "CVCValue": "0"
  }
}
# 本地测试
1. 将本地包转化为可被本地 uvx 检索的状态
uv pip install -e .
2.在确保本地代码可以直接通过命令被检索后，您就可以直接通过 npx 配合 uv 启动 Inspector。
uv run wetech-risk-mcp


测试
uv tool install --editable .

poswershell
$env:WETECH_HOST="risk.test.wetech-rc.com";$env:WETECH_SECRET_ID="e1f08efaI75c7I4873IbdbfI502074d05a63"; $env:WETECH_SECRET_KEY="826F3D3EDC1BDA5119C07B78A573723E";$env:WETECH_CLIENT_ID="1317381511";$env:WETECH_APP_ID="1001623976";$env:WETECH_REGION="na-siliconvalley";npx @modelcontextprotocol/inspector uv tool run wetech-risk-sdk

# 1. 清理旧的构建文件
rm -rf dist/ build/ *.egg-info/

# 2. 构建新版本
python -m build

# 3. 上传到 PyPI
python -m twine upload dist/*

#其他
# 1. 在 wetech-risk-sdk 根目录下创建虚拟环境
python -m venv .venv

# 2. 激活虚拟环境 (Windows Git Bash / Powershell 略有不同)
source .venv/Scripts/activate  # 如果是 Git Bash
# .\.venv\Scripts\Activate.ps1 # 如果是 PowerShell





安装
命令：uvx
参数：wetech-risk-sdk

环境变量
WETECH_HOST=risk.test.wetech-rc.com
WETECH_SECRET_ID=e1f08efaI75c7I4873IbdbfI502074d05a63
WETECH_SECRET_KEY=826F3D3EDC1BDA5119C07B78A573723E
WETECH_CLIENT_ID=1317381511
WETECH_APP_ID=1001623976
WETECH_SCENE=1001
WETECH_REGION=na-siliconvalley


