Skip to main content

微信支付 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

配置

  1. 复制环境变量配置文件:
cp .env.example .env
  1. 编辑 .env 文件,至少填写其中的所有必填项

使用示例

TODO

开发指南

TODO

安全说明

  • 请妥善保管您的 API 凭证和私钥文件
  • 不要将 .env 文件提交到版本控制系统
  • 建议在生产环境中使用环境变量而不是配置文件
  • 确保您的服务器时间准确,以避免签名验证失败

贡献指南

欢迎提交 Issue 和 Pull Request!在提交之前,请确保:

  1. 代码符合 PEP 8 规范
  2. 添加了必要的测试
  3. 更新了相关文档

许可证

MIT License

联系方式

如有问题,请提交 Issue 或联系维护者。

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

wxpay_mcp_python-0.1.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

wxpay_mcp_python-0.1.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file wxpay_mcp_python-0.1.2.tar.gz.

File metadata

  • Download URL: wxpay_mcp_python-0.1.2.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

Hashes for wxpay_mcp_python-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e74b172a6694b4f789bc80390a2bcf601fc196145698d68d93af6bfbd2989e15
MD5 7b9cfeec1bb9089402eb55b175fd4815
BLAKE2b-256 ecad37b72feeeca16565f227138ee26a19f4f696bb093f970a5e09a65bee5215

See more details on using hashes here.

File details

Details for the file wxpay_mcp_python-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for wxpay_mcp_python-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d252ef122668e7a5692ac5f70207c3ed849a0c17fc7180e2e048f0166fad6ba
MD5 e396ae822eb5310699b95317b4ff2cf6
BLAKE2b-256 fe6dd3b1ad4a35d1a004e8d628e14b2a1cd87d570fe184eb80da61e747c7c31f

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