微信支付 MCP 工具包,提供微信支付 JSAPI 支付和订单查询功能的 MCP 实现
Project description
WeChat Pay MCP Tools
微信支付 MCP 工具包,提供微信支付 JSAPI 支付和订单查询功能的 MCP(Model Context Protocol)实现。
功能特性
- 创建 JSAPI 支付订单
- 查询订单状态
- 支持服务商模式
- 完整的签名验证
- 详细的日志记录
快速开始
环境要求
- Python 3.8+
- pip 或 uv 包管理器
安装
# 使用 pip 安装
pip install -r requirements.txt
# 或使用 uv 安装
uv pip install -r requirements.txt
配置
- 复制环境变量配置文件:
cp .env.example .env
- 编辑
.env文件,至少填写其中的所有必填项
使用示例
TODO
开发指南
TODO
安全说明
- 请妥善保管您的 API 凭证和私钥文件
- 不要将
.env文件提交到版本控制系统 - 建议在生产环境中使用环境变量而不是配置文件
- 确保您的服务器时间准确,以避免签名验证失败
贡献指南
欢迎提交 Issue 和 Pull Request!在提交之前,请确保:
- 代码符合 PEP 8 规范
- 添加了必要的测试
- 更新了相关文档
许可证
MIT License
联系方式
如有问题,请提交 Issue 或联系维护者。
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 wxpay_mcp_python-0.1.1.tar.gz.
File metadata
- Download URL: wxpay_mcp_python-0.1.1.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b54fe1e9a392f271a56afdf165fc2ba506a0742e31f59dc5d1f0c84b8d5d988
|
|
| MD5 |
938bf2c5b2b95d7163a4ee3b8369480a
|
|
| BLAKE2b-256 |
5cc57a9bbbe2a36778e87f468c33873c8352e0cb8e127077e72e45ea1d728b69
|
File details
Details for the file wxpay_mcp_python-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wxpay_mcp_python-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc8d3610545ec0caa5aab4a53446a6c88ab76c544df70ac63b07e016a7c68a8c
|
|
| MD5 |
31ec85b249a5b25e877836831f2eb482
|
|
| BLAKE2b-256 |
c4ead492d10c14fec77f6761d9c2906b1c68aa87c9c060fec0fab2ba0195d441
|