中国移动支付(China Mobile Pay) MCP Server 服务
Project description
中国移动支付服务(MCP)
中国移动支付(China Mobile Pay) MCP Server 服务,智能体开发者可轻松接入中移支付服务,目前提供了订单创建、订单查询、申请退款及退款查询功能。
主要功能
-
订单创建
create_wap_payment_order- 创建网页支付订单。
- 输入:
- product_name (str): 商品名称。
- order_id (str): 商户订单号。
- amount (int): 订单金额,单位为分。
- 输出:
- 订单信息,支付链接等。
-
订单查询
query_wep_payment_order- 交易支付状态信息。
- 输入:
- order_id (str): 商户订单号。
- 输出:
- 订单信息,支付时间、支付结果、支付金额等。
-
申请退款
refund_payment_order- 对交易进行退款操作。
- 输入:
- order_id (str): 商户订单号。
- amount (int): 退款金额。
- payNo (str): 流水号。
- 输出:
- 退款信息,退款时间、退款金额等。
-
退款查询
query_refund_payment_order- 交易订单退款信息查询。
- 输入:
- order_id (str): 商户订单号。
- order_date (str): 商户订单日期。
- 输出:
- 退款信息,退款状态等。
环境变量
在和包商户端进行申请,配置以下环境变量:
MERCHANT_ID: 商户ID。SIGN_KEY: 签名密钥。
示例用法
mcp-cmpay应由 MCP 客户端启动,因此必须进行相应的配置。对于 Claude Desktop,配置可以如下所示:
{
"mcpServers": {
"mcp-server-cmpay": {
"command": "uvx",
"args": [
"mcp-cmpay"
],
"env": {
"MERCHANT_ID": "<YOUR_MERCHANT_ID>",
"SIGN_KEY": "<YOUR_SIGN_KEY>"
}
}
}
}
Project details
Release history Release notifications | RSS feed
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 mcp_cmpay-0.2.1.tar.gz.
File metadata
- Download URL: mcp_cmpay-0.2.1.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34b6f1c857a241d97c901004a97c4484f3cb79d804893c030aaca1da808888b2
|
|
| MD5 |
c06ece5bc00e2b33342e81136b6a8c4d
|
|
| BLAKE2b-256 |
fe1db7254fa79f8e3685ffa5a9bab2f3bb7d5d382af525ea0de49d212df4c8a3
|
File details
Details for the file mcp_cmpay-0.2.1-py3-none-any.whl.
File metadata
- Download URL: mcp_cmpay-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34721a218edb0e0ef65d5234103b0e7b0a613109e0ba4457c1bfe5333d1d01a5
|
|
| MD5 |
4a9fe4905ac28878ba8f3c6f3c560388
|
|
| BLAKE2b-256 |
0b5e3b5002aae6722e349598a8da25e6c6af330c3b1d3817a8c891d9afb76a78
|