Skip to main content

wxpay mcp demo

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.0.tar.gz (7.3 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.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wxpay_mcp_python-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 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.0.tar.gz
Algorithm Hash digest
SHA256 1ec733e432d8956b12ab6f82a7b7eca716f55aa58403de43a6f7ec7f6daa26a0
MD5 5235689ff56da732f571e8f8e57c5e13
BLAKE2b-256 05da021c531597ca18ef0d1bd7fe53b216de2b37b628885f895424bbe828e0a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wxpay_mcp_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90a0ab9979ac9bf1f400c6142c22178ba73ef2757b6156bf2691bceeb076fbc1
MD5 10b0eb12f26053f969cc17756322878d
BLAKE2b-256 52f9936cb5481fb3947696d9ae0db20840bc8153d5ddf92b72c029ec411b248f

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