WeTech Risk Control MCP SDK - Fraud detection and transaction risk evaluation tools
Project description
#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" } }
本地测试
- 将本地包转化为可被本地 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wetech_risk_sdk-0.1.4.tar.gz.
File metadata
- Download URL: wetech_risk_sdk-0.1.4.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bd816fb9f5676eafd859aca2f361996bbb1e9a9d1266449261a8b6e798aba9d
|
|
| MD5 |
b86a8f37a7f2c47466213480526ff2fe
|
|
| BLAKE2b-256 |
cec4d3619259ab6507756b8cb780219eafe67ad7f03c197f564cae23c093357b
|
File details
Details for the file wetech_risk_sdk-0.1.4-py3-none-any.whl.
File metadata
- Download URL: wetech_risk_sdk-0.1.4-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48749ee1477ec7ee824c0bec7095b9de2e13c67999a3d34759a5a66b4abe2db9
|
|
| MD5 |
928c25d1688f59dc3561152a8e33278b
|
|
| BLAKE2b-256 |
5961b83924202bce90dd75d08bad9a3b189297069dac1fc09fd8dc206208a82f
|