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/*
Metadata
Release files for mwgencode-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mwgencode_mcp-0.1.1.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mwgencode_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 kB
Release files / mwgencode_mcp-0.1.1.tar.gz
| Download URL | mwgencode_mcp-0.1.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
348ab2bd2b65d8d1fd482d86058d6fee7a6e08d0640128feb191b5a876b3b459
|
|
BLAKE2b-256 checksum How to use checksums |
aa235d071e8702c01f4e446f269c4d40e407ade9057a4419f4f032e533bdb1b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / mwgencode_mcp-0.1.1-py3-none-any.whl
| Download URL | mwgencode_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c32672db39dbe119a1f87e68b53917fe569517b0e7f6dc5794cf30a944e1ed0
|
|
BLAKE2b-256 checksum How to use checksums |
f9d51139848fb993fc0efd20cc95c26e0e7fea287f03f7fef0b899534a381b38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|