
zhaoxingpeng/dbjavagenix
Database managementこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
后 端 端 端 端 端 端 端 端 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 关 码 码 关 码 码 关 码 码 码 码 码 码 码 码 关 关 码 码 码 关 码 码 码 码 码 码 码。
概要
MCP Apps 看 看 看 " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " 多数の据え付け品反向表の生成のばねのブーツ(Entity/DAO/Service/Controller/DTO/Mapper) 不是新東西 -- EasyCode、MyBatis-Plus Generator、Renren-generator 都の承認多数年。 前へ 接待、查询并读取元数 固定数 MySQL、PostgreSQL 和 SQLite。Oracle 与 SQL 的 尚 备 备 备 备 备 尚 尚 尚 尚 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 备 声明 声明 声明 为 声明 声明 声明 声明 声明 声明 声明 声明 声明 声明 声明 声明 声明 声明 声明 声明 声明 为 为 为 声明 声明 声明 声明 声明 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 声明 声明 声明 为 为 为 为 为 为 为 为 声明 为 为 为 声明 声明 声明 声明 声明 为 为 为 为 为 为 声明 为 声明 声明 为 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ai infer business name は 推 → sys user role は UserRoleAssignment 5. を 利用する ai recommend template は 推 する → RBAC を 推 する MybatisPlus-Mixed 6. 用 codegen build context + 6 個の 個の 分 コードgen render * 分 生成, 每层 后 后 后 后 后 后 后 后 后 后 后 - Pythonの≥ 3.11 / mcpの≥ 1.6 / Spring Boot 3.5 + Java 21 模板 - 単元派620 +、GitHubのアクション CI(提唱者略、三版本量、格式、数式辞典編成成、模板、Docker、Bover安装) - 多動小惑星ドッカーファイル (python:3.11-slim + 非用対象者) - .claude/skills/java-codegen-from-db/SKILL.
概要(AI 翻訳)
把 看 看 " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " スキル定着「怎么做」・MCP 提供「能做什么」・MCPアプリ 看果「時計得」。
多数の据え付け品反向表の生成のばねのブーツ(Entity/DAO/Service/Controller/DTO/Mapper) 不是新東西 – EasyCode、MyBatis-Plus Generator、Renren-generator 都定年。LLM 時代区立在:
| 旧工具 | DBJavaGenix v0.2 | |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 户 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** | 一 度 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** | | | | ** ** | | | | | | | | | | | | | | | | 默认 | 常 | 常 常 常 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ | 前表紙机映写 | 15 条规则 + Claude API*, R RBAC/CMS 商/CMS 模式 | |mcpアプリ**:マーメイド ER 画面 / コード差分 / 包丁 | | 可鍛性 | 未 | サーバ・メトリック + ai metrics + server health |
始 始 始 始
Docker ( 推奨)
[claude_desktop_config.json] サブ:
###[地の開発者]
数据置
前へ 接待、查询并读取元数 据え付け数 MySQL、PostgreSQL 和 SQLite。Oracle 与 展 展 备 备 备 备 备 备 备 备 尚 备 备 备 备 备 备 备 备 备 备 为 备 备 备 备 备 备 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 为 前用数据置文可。
第一次使用
在 LLM 客先 終里親 「** 数 据え付け品 の sys user / sys role / sys user role 三相 表 の 春の ブート 代**」、Claude の 会:
- 加圧
java-codegen-from-db技 g 推 推 推 推 推 2。 ライブラリ用db_connect_test→db_table_describe→ [db_table_foreign_keys]]
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
DBJavaGenix
把"用 LLM 看着数据库做反向工程"做成一件可重复、可审计的事。 Skills 定义"怎么做" · MCP 提供"能做什么" · MCP Apps 让结果"看得见"。
graph LR
Client[Claude Desktop / Cursor / Cherry] -->|Skill 加载| Skills
Skills[".claude/skills/java-codegen-from-dbspringboot-migration"]
Skills -->|按需调用| MCP
subgraph MCP[MCP Server 34 工具]
direction TB
DB[db_* 连接 / 查询 / 描述]
Atom[codegen_build_contextcodegen_render_entity/dao/service/controller/dto/mapper]
Graph[schema_topo_orderschema_cluster_tablesschema_check_cycles]
AI[ai_infer_business_namesai_recommend_templateai_summarize_schema]
Vis[db_render_er_diagram]
Obs[server_metrics / server_healthai_metrics / search_tools]
end
MCP -->|返回 _meta| Apps[MCP Apps 渲染]
Apps -->|mermaid / dashboard / code-diff / tree| Client
MCP -->|读取| Data[MySQL / PostgreSQL / SQLite + Mustache templates]
它解决什么问题
把数据库表反向生成成 Spring Boot 工程 (Entity/DAO/Service/Controller/DTO/Mapper) 不是新东西 —— EasyCode、MyBatis-Plus Generator、Renren-generator 都做了多年。LLM 时代的区别在于:
| 维度 | 老工具 | DBJavaGenix v0.2 |
|---|---|---|
| 工作流谁定 | 用户在 IDE 点配置面板 | Skill 文件显式编排 (LLM 不会乱调) |
| 调用粒度 | 一个大按钮一步到位 | 7 个原子工具 (build_context + 6 个 render_*),LLM 可中途让用户改 context 重渲 |
| 启动开销 | (插件,常驻) | 默认 ~3300 tok / 渐进模式 ~985 tok (节省 70%) |
| 命名 | 表前缀机械映射 | 15 条规则 + Claude API,识别 RBAC/电商/CMS 模式 |
| 输出可视化 | IDE 内文本 | MCP Apps: Mermaid ER 图 / 依赖仪表盘 / code-diff / 包结构树 |
| 可观测性 | 无 | server_metrics + ai_metrics + server_health |
快速开始
Docker (推荐)
docker build -t dbjavagenix:latest .
在 claude_desktop_config.json 添加:
{
"mcpServers": {
"dbjavagenix": {
"command": "docker",
"args": ["run", "-i", "--rm",
"-e", "DBJAVAGENIX_PROGRESSIVE=1",
"-e", "ANTHROPIC_API_KEY",
"dbjavagenix:latest"]
}
}
}
本地 dev
git clone https://github.com/ZhaoXingPeng/DBJavaGenix.git
cd DBJavaGenix
uv venv && uv pip install -e ".[dev]"
PYTHONPATH=src python -m dbjavagenix.cli server
数据库支持范围
当前可连接、查询并读取元数据的数据库为 MySQL、PostgreSQL 和 SQLite。Oracle 与 SQL Server 的类型映射保留为后续扩展准备,但尚未实现运行时驱动和元数据契约,不能作为 当前可用数据库声明。
第一次使用
在 LLM 客户端里说 “从数据库 myapp 的 sys_user / sys_role / sys_user_role 三张表生成 Spring Boot 代码”,Claude 会:
- 加载
java-codegen-from-dbSkill,按 5 阶段工作流推进 - 调用
db_connect_test→db_table_describe→db_table_foreign_keys收集 schema - 调用
db_render_er_diagram→ 客户端渲染 Mermaid ER 图
インストール
docker run -i --rm -e DBJAVAGENIX_PROGRESSIVE=1 -e ANTHROPIC_API_KEY dbjavagenix:latest設定
{
"mcpServers": {
"dbjavagenix": {
"command": "docker",
"args": ["run", "-i", "--rm",
"-e", "DBJAVAGENIX_PROGRESSIVE=1",
"-e", "ANTHROPIC_API_KEY",
"dbjavagenix:latest"]
}
}
}