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
使用方法
- 初始化项目:
mwgencode-mcp init-project myproject --type flask
- 生成 Swagger 类:
mwgencode-mcp export myclass
- 添加操作:
mwgencode-mcp add mypackage myoperation --method get
更多使用说明请参考文档。
依赖要求
- Python >= 3.11
- MCP >= 0.1.0
- PyYAML >= 5.1
mcp server json
{
"mcpServers": {
"mwgencode": {
"command": "python",
"args": [
"-m",
"mwgencode.main"
]
}
}
}
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.0.tar.gz
(5.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.0.tar.gz.
File metadata
- Download URL: mwgencode_mcp-0.1.0.tar.gz
- Upload date:
- Size: 5.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 |
1c0e8ebfa77e65ae4e53e07cc98b094784b87ada6b14d094d6fd9a931cb16404
|
|
| MD5 |
26ad580a1ad53ba9706849cfd62a84da
|
|
| BLAKE2b-256 |
54f0fdc24e41ebe787924d55c287ca80e9a5d0c98636ee20b7e1bb77ebe56045
|
File details
Details for the file mwgencode_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mwgencode_mcp-0.1.0-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 |
641da0e4c443a9c269ad81273bcb4063da4b0b2f03a3ba964810b95ff6c52faa
|
|
| MD5 |
055c96c4d6369aa87d143c6591a2d62d
|
|
| BLAKE2b-256 |
a805cf998c6e1ae758bf200e10816842040aa7604006f9028979e3d427336d56
|