Skip to main content

WeTech Risk Control MCP SDK - Fraud detection and transaction risk evaluation tools

Project description

#add somethings

{ "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

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

wetech_risk_sdk-0.1.3.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wetech_risk_sdk-0.1.3-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file wetech_risk_sdk-0.1.3.tar.gz.

File metadata

  • Download URL: wetech_risk_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for wetech_risk_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4660a0429c0c450126fa182dd0463dd23ad81f582831b32b09ad7bf394394992
MD5 42a4bb33512bb42ae38331e9bca1d0f1
BLAKE2b-256 3f43963057c120c661532362dab5896beefc228123a517d46529f7cd3e8c6f8b

See more details on using hashes here.

File details

Details for the file wetech_risk_sdk-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for wetech_risk_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 223a088aa59a95c48e21ed1657e8232dd8f29b04ccb21b85a70f45708b06ed84
MD5 3a1ea835ecccddb32d33a18fee1c16dc
BLAKE2b-256 e46e564d9639ac39e003dba645e87a8aa158cff64d2aacd93f1e6d3bd344f4fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page