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.4.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.4.tar.gz.
File metadata
- Download URL: mwgencode_mcp-0.1.4.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 |
e352c78be7fce91b111a4e0e0e479952605ca5735f9312caf1e23abb8868e691
|
|
| MD5 |
222d850b412615b0616d0b60b5ea50e1
|
|
| BLAKE2b-256 |
0ea5a9f492dcf56b6e30d1baae6604236a85309ab13cfb716e9977eb22a15fba
|
File details
Details for the file mwgencode_mcp-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mwgencode_mcp-0.1.4-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 |
89c3d6e2777775059033b591f27b100325b7e3b8571f188530e013873a0c107f
|
|
| MD5 |
0900657529b1d85f2f6db0b5cb6c9b5d
|
|
| BLAKE2b-256 |
33f703001ba263447ab28c17a10cfc5038286ba36722d0e8505d36acf95400df
|