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 . # 本地安装包
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.2.tar.gz
(6.0 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.2.tar.gz.
File metadata
- Download URL: mwgencode_mcp-0.1.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
296e6f64965d615488ff45cceb3e9e89b8b01de9f7999402d94fb421f65bb3d9
|
|
| MD5 |
dd3490b5a9c7b0f8f4e63a04009afdff
|
|
| BLAKE2b-256 |
f3cf74aa55ca1ddddeb6f3a135066e01891c797e931a5c808ef7d2d1fd254acf
|
File details
Details for the file mwgencode_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mwgencode_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.4 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 |
f0ac91751e4189194e2d07a34fad8c20a527859bdc650a55d6c2df61406b14ec
|
|
| MD5 |
c1c0bde4f0daf77b691eabfc93d09432
|
|
| BLAKE2b-256 |
cb82d951262555448e3b97f61fb683dd46f7618bf57f0bf019b281abab463099
|