A MCP-based code generation tool for web frameworks
Project description
MWGenCode-MCP
一个基于 MCP 的 Web 框架代码生成工具。
功能特点
- 支持多种 Web 框架的代码生成(Flask、AioHTTP、FastAPI)
- UML 模型到 Swagger 类的转换
- 项目初始化和配置文件生成
- 支持自动升级到 K8s 部署
安装
pip install mwgencode-mcp
使用方法
- 初始化项目:
初始化以myproject为项目名的flask项目
- 生成 Swagger 类:
把myclass生成 Swagger 类
- 添加操作:
给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/*
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
mwgencode_mcp-0.1.3.tar.gz
(6.4 kB
view details)
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 mwgencode_mcp-0.1.3.tar.gz.
File metadata
- Download URL: mwgencode_mcp-0.1.3.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
389036e9271dced53ce24b3cad868d05c87357c5115b4a540a9edfa0c8e94769
|
|
| MD5 |
22b486295eea1c1f223e6d9284b4d735
|
|
| BLAKE2b-256 |
f5c1557632be415cbd440006486fb093d86757f542804e6aac5837050ed35ef3
|
File details
Details for the file mwgencode_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: mwgencode_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81b66c760a04068e84c90ac68109935ab4df9a483f0cde95a838c9fae1dc11f6
|
|
| MD5 |
ffce507a92cdb25a0c9ea17778fab401
|
|
| BLAKE2b-256 |
6d17253ea4780e7edd4ec20a210a76a28e4f4a2baf3720e6ef5a89e33893da2d
|