Skip to main content

MWGenCode-MCP

一个基于 MCP 的 Web 框架代码生成工具。

功能特点

  • 支持多种 Web 框架的代码生成(Flask、AioHTTP、FastAPI)
  • UML 模型到 Swagger 类的转换
  • 项目初始化和配置文件生成
  • 支持自动升级到 K8s 部署

安装

pip install mwgencode-mcp

使用方法

  1. 初始化项目:
初始化以myproject为项目名的flask项目
  1. 生成 Swagger 类:
把myclass生成 Swagger 类
  1. 添加操作:
给myclassmng添加添加myopration 操作

更多使用说明请参考文档。

依赖要求

  • Python >= 3.11
  • MCP >= 0.1.0
  • PyYAML >= 5.1

mcp server json

{
  "mcpServers": {
    "mwgencode_pypi": {
      "command": "python",
      "args": [
        "-m",
        "mwgencode_mcp.main"
      ]
    }
  }
}

构建包命令:

python -m build
pip install -e .p #  本地安装包
python -m twine upload dist/*

Metadata

Release files for mwgencode-mcp 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mwgencode-mcp 0.1.5
File Size Uploaded Provenance
mwgencode_mcp-0.1.5.tar.gz 6.4 kB Without provenance Details

Release files / mwgencode_mcp-0.1.5.tar.gz

Download URL mwgencode_mcp-0.1.5.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bc6bdf3444312bb3e81fa2b75a201512a39038c792d852609b41a1e536cdcec6
BLAKE2b-256 checksum
How to use checksums
5cca899e4b217e44142fbdcd63c2ddd0beeaccdc1be4ca20254268616fb3d32f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for mwgencode-mcp 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page