egovframe-scaffold-mcp 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/catalog/ai-components.json +369 -0
- package/catalog/components.json +524 -43
- package/catalog/overrides.json +86 -12
- package/dist/index.js +194 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -22,6 +22,8 @@ Claude, VS Code(Copilot), Cursor 등 MCP를 지원하는 AI 도구에서 **대
|
|
|
22
22
|
| `search_egovframe_components` | 키워드로 컴포넌트 검색 (id·이름·설명, 점수순 상위 10건) |
|
|
23
23
|
| `remove_egovframe_components` | 설치 매니페스트 기반 컴포넌트 제거 — 의존 컴포넌트 보호, `dryRun` 미리보기 |
|
|
24
24
|
| `validate_egovframe_project` | 조립 프로젝트 무결성 진단 — 파일 존재·DbType↔DB 스크립트 일치 |
|
|
25
|
+
| `get_egovframe_guide` | 컴포넌트의 공식 가이드 문서 조회 (egovframe-docs, 45종 매핑) |
|
|
26
|
+
| `add_ai_components` | **(신규, M1 미리보기)** 공식 [egovframe-ai-rag](https://github.com/eGovFramework/egovframe-ai-rag) 샘플 기반 AI RAG 챗봇 조립 — Spring AI(Redis Stack)·LangChain4j(PGVector) 스택 선택, 파일 복사 계획·pom 의존성 diff·호환성 진단 (설계: [docs/design-ai-components.md](docs/design-ai-components.md)) |
|
|
25
27
|
|
|
26
28
|
### create_egovframe_project 파라미터
|
|
27
29
|
|
|
@@ -105,11 +107,15 @@ Claude Desktop / Claude Code 설정 예 (`mcpServers`):
|
|
|
105
107
|
|
|
106
108
|
1. 공통컴포넌트 선택 설치 — **M3 완료(v0.4.0)**: 저장소 스캔 기반 카탈로그 자동 생성(`npm run generate:catalog`, 68종) + 조립 파이프라인. 남은 항목: 컴포넌트별 테이블 선별 DDL, 이름·의존성 큐레이션 확대(`catalog/overrides.json` 기여 환영) (설계: [docs/design-components-parameter.md](docs/design-components-parameter.md))
|
|
107
109
|
2. 실행환경 보일러플레이트(egovframe-msa 등) 템플릿 추가
|
|
108
|
-
3.
|
|
110
|
+
3. AI 컴포넌트 조립(`add_ai_components`) — **M1 완료(v0.8.0)**: AI 카탈로그(egovframe-ai-rag 스캔 자동 생성) + dryRun 미리보기(의존성 diff·호환성 게이트). M2(v0.9.0): 실조립(복사+pom 병합+설정 프로필화) (설계: [docs/design-ai-components.md](docs/design-ai-components.md))
|
|
109
111
|
4. 검증 후 eGovFramework 조직 공식 저장소 편입 제안
|
|
110
112
|
|
|
111
113
|
## 변경 이력
|
|
112
114
|
|
|
115
|
+
- **0.8.0** — AI 컴포넌트 조립 M1: `add_ai_components` dryRun 미리보기(파일 복사 계획·pom 의존성 diff·부모 POM 호환성 게이트·스택 상호 배타 검사), AI 카탈로그(`catalog/ai-components.json`, egovframe-ai-rag 모듈 스캔 자동 생성 `npm run generate:ai-catalog`), `list_egovframe_components`에 AI 컴포넌트 노출, 오프라인 테스트(`npm run test:ai`) 추가.
|
|
116
|
+
|
|
117
|
+
- **0.7.0** — `get_egovframe_guide`: 컴포넌트 id로 표준프레임워크 공식 가이드 문서(egovframe-docs)를 조회. 카탈로그에 문서 매핑 자동 생성(`--docs`, 지배적 패키지 참조 기준 45종) 추가. 한글명 큐레이션 12→27종.
|
|
118
|
+
|
|
113
119
|
- **0.6.0** — 컴포넌트별 테이블 선별 DDL(M4): 카탈로그에 매퍼 기반 참조 테이블 자동 추출(48/68종), `database` 지정 시 통합 스크립트에서 해당 컴포넌트 구문만 추출해 `ddl|dml/<컴포넌트id>.sql` 생성(테이블 미상 컴포넌트는 통합본 폴백), 매니페스트에 컴포넌트별 스크립트 귀속(제거 시 함께 정리).
|
|
114
120
|
|
|
115
121
|
- **0.5.0** — 조립 수명주기 완성: `search_egovframe_components`(키워드 검색), 설치 매니페스트(`.egovframe-components.json`) 기록, `remove_egovframe_components`(의존 보호·dryRun), `validate_egovframe_project`(파일 무결성·DbType↔DDL 일치 진단), 중복 설치 거부.
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"source": {
|
|
4
|
+
"repo": "eGovFramework/egovframe-ai-rag",
|
|
5
|
+
"branch": "main",
|
|
6
|
+
"surveyedAt": "2026-07-12"
|
|
7
|
+
},
|
|
8
|
+
"note": "add_ai_components용 카탈로그 — 조립 대상은 egovframe-boot-starter-parent 기반 Boot 프로젝트. 두 스택은 같은 패키지(com.example.chat)·UI 경로를 사용하므로 상호 배타(conflictsWith).",
|
|
9
|
+
"components": [
|
|
10
|
+
{
|
|
11
|
+
"id": "ai-rag-spring-ai",
|
|
12
|
+
"stack": "spring-ai",
|
|
13
|
+
"kind": "ai",
|
|
14
|
+
"name": "AI RAG 챗봇 (Spring AI + Redis Stack)",
|
|
15
|
+
"description": "Spring AI 기반 RAG 질의응답 — 문서 업로드(PDF·DOCX·HWP·HWPX·MD)→임베딩→Redis Stack 하이브리드 검색→Ollama LLM 응답, 채팅 UI 포함",
|
|
16
|
+
"modulePath": "spring-ai-rag-redis-stack",
|
|
17
|
+
"vectorStore": "Redis Stack",
|
|
18
|
+
"conflictsWith": [
|
|
19
|
+
"ai-rag-langchain4j"
|
|
20
|
+
],
|
|
21
|
+
"requires": {
|
|
22
|
+
"java": "17",
|
|
23
|
+
"parent": "egovframe-boot-starter-parent:5.0.0"
|
|
24
|
+
},
|
|
25
|
+
"copyGroups": {
|
|
26
|
+
"source": {
|
|
27
|
+
"paths": [
|
|
28
|
+
"src/main/java/com/example/chat/"
|
|
29
|
+
],
|
|
30
|
+
"files": 45
|
|
31
|
+
},
|
|
32
|
+
"config": {
|
|
33
|
+
"paths": [
|
|
34
|
+
"src/main/resources/application.yml -> src/main/resources/application-ai.yml",
|
|
35
|
+
"src/main/resources/log4j2-spring.xml -> src/main/resources/log4j2-ai.xml"
|
|
36
|
+
],
|
|
37
|
+
"files": 2
|
|
38
|
+
},
|
|
39
|
+
"ui": {
|
|
40
|
+
"paths": [
|
|
41
|
+
"src/main/resources/templates/",
|
|
42
|
+
"src/main/resources/static/"
|
|
43
|
+
],
|
|
44
|
+
"files": 3
|
|
45
|
+
},
|
|
46
|
+
"infra": {
|
|
47
|
+
"paths": [
|
|
48
|
+
"docker-compose.yml -> docker-compose.ai.yml",
|
|
49
|
+
"Dockerfile -> Dockerfile.ai",
|
|
50
|
+
"k8s/ -> k8s/ai/"
|
|
51
|
+
],
|
|
52
|
+
"files": 6
|
|
53
|
+
},
|
|
54
|
+
"tests": {
|
|
55
|
+
"paths": [
|
|
56
|
+
"src/test/"
|
|
57
|
+
],
|
|
58
|
+
"files": 15
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"approxFiles": 56,
|
|
62
|
+
"mavenDependencies": [
|
|
63
|
+
{
|
|
64
|
+
"groupId": "org.springframework.boot",
|
|
65
|
+
"artifactId": "spring-boot-starter-actuator",
|
|
66
|
+
"exclusions": [
|
|
67
|
+
{
|
|
68
|
+
"groupId": "org.springframework.boot",
|
|
69
|
+
"artifactId": "spring-boot-starter-logging"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"groupId": "org.springframework.ai",
|
|
75
|
+
"artifactId": "spring-ai-client-chat"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"groupId": "org.springframework.ai",
|
|
79
|
+
"artifactId": "spring-ai-rag"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"groupId": "org.springframework.ai",
|
|
83
|
+
"artifactId": "spring-ai-starter-vector-store-redis"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"groupId": "org.springframework.ai",
|
|
87
|
+
"artifactId": "spring-ai-starter-model-ollama"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"groupId": "org.springframework.ai",
|
|
91
|
+
"artifactId": "spring-ai-advisors-vector-store"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"groupId": "org.springframework.ai",
|
|
95
|
+
"artifactId": "spring-ai-starter-model-transformers"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"groupId": "org.springframework.ai",
|
|
99
|
+
"artifactId": "spring-ai-pdf-document-reader"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"groupId": "org.springframework.ai",
|
|
103
|
+
"artifactId": "spring-ai-markdown-document-reader"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"groupId": "org.egovframe.rte",
|
|
107
|
+
"artifactId": "egovframe-rte-fdl-excel"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"groupId": "org.springframework.boot",
|
|
111
|
+
"artifactId": "spring-boot-starter-thymeleaf",
|
|
112
|
+
"exclusions": [
|
|
113
|
+
{
|
|
114
|
+
"groupId": "org.springframework.boot",
|
|
115
|
+
"artifactId": "spring-boot-starter-logging"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"groupId": "org.springframework.boot",
|
|
121
|
+
"artifactId": "spring-boot-starter-web",
|
|
122
|
+
"exclusions": [
|
|
123
|
+
{
|
|
124
|
+
"groupId": "org.springframework.boot",
|
|
125
|
+
"artifactId": "spring-boot-starter-logging"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"groupId": "org.egovframe.rte",
|
|
131
|
+
"artifactId": "egovframe-rte-ptl-mvc",
|
|
132
|
+
"exclusions": [
|
|
133
|
+
{
|
|
134
|
+
"groupId": "org.apache.commons",
|
|
135
|
+
"artifactId": "commons-lang3"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"groupId": "kr.dogfoot",
|
|
141
|
+
"artifactId": "hwplib",
|
|
142
|
+
"version": "1.1.9"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"groupId": "org.projectlombok",
|
|
146
|
+
"artifactId": "lombok",
|
|
147
|
+
"optional": true
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"groupId": "kr.dogfoot",
|
|
151
|
+
"artifactId": "hwpxlib",
|
|
152
|
+
"version": "1.0.8"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"groupId": "org.springframework.boot",
|
|
156
|
+
"artifactId": "spring-boot-starter-test",
|
|
157
|
+
"scope": "test"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"mavenProperties": {},
|
|
161
|
+
"prerequisites": [
|
|
162
|
+
"ollama>=0.17.1",
|
|
163
|
+
"onnx-embedding-model",
|
|
164
|
+
"docker"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "ai-rag-langchain4j",
|
|
169
|
+
"stack": "langchain4j",
|
|
170
|
+
"kind": "ai",
|
|
171
|
+
"name": "AI RAG 챗봇 (LangChain4j + PGVector)",
|
|
172
|
+
"description": "LangChain4j 기반 RAG 질의응답 — 문서 업로드(PDF·DOCX·HWP·HWPX·MD)→임베딩→PostgreSQL(PGVector) 하이브리드 검색→Ollama LLM 응답, 채팅 UI 포함",
|
|
173
|
+
"modulePath": "langchain4j-ai-rag-postgre",
|
|
174
|
+
"vectorStore": "PostgreSQL (PGVector)",
|
|
175
|
+
"conflictsWith": [
|
|
176
|
+
"ai-rag-spring-ai"
|
|
177
|
+
],
|
|
178
|
+
"requires": {
|
|
179
|
+
"java": "17",
|
|
180
|
+
"parent": "egovframe-boot-starter-parent:5.0.0"
|
|
181
|
+
},
|
|
182
|
+
"copyGroups": {
|
|
183
|
+
"source": {
|
|
184
|
+
"paths": [
|
|
185
|
+
"src/main/java/com/example/chat/"
|
|
186
|
+
],
|
|
187
|
+
"files": 49
|
|
188
|
+
},
|
|
189
|
+
"config": {
|
|
190
|
+
"paths": [
|
|
191
|
+
"src/main/resources/application.yml -> src/main/resources/application-ai.yml",
|
|
192
|
+
"src/main/resources/log4j2-spring.xml -> src/main/resources/log4j2-ai.xml"
|
|
193
|
+
],
|
|
194
|
+
"files": 2
|
|
195
|
+
},
|
|
196
|
+
"ui": {
|
|
197
|
+
"paths": [
|
|
198
|
+
"src/main/resources/templates/",
|
|
199
|
+
"src/main/resources/static/"
|
|
200
|
+
],
|
|
201
|
+
"files": 3
|
|
202
|
+
},
|
|
203
|
+
"infra": {
|
|
204
|
+
"paths": [
|
|
205
|
+
"docker-compose.yml -> docker-compose.ai.yml",
|
|
206
|
+
"Dockerfile -> Dockerfile.ai",
|
|
207
|
+
"k8s/ -> k8s/ai/",
|
|
208
|
+
"init-scripts/ -> init-scripts/ai/"
|
|
209
|
+
],
|
|
210
|
+
"files": 9
|
|
211
|
+
},
|
|
212
|
+
"tests": {
|
|
213
|
+
"paths": [
|
|
214
|
+
"src/test/"
|
|
215
|
+
],
|
|
216
|
+
"files": 14
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"approxFiles": 63,
|
|
220
|
+
"mavenDependencies": [
|
|
221
|
+
{
|
|
222
|
+
"groupId": "org.springframework.boot",
|
|
223
|
+
"artifactId": "spring-boot-starter-actuator",
|
|
224
|
+
"exclusions": [
|
|
225
|
+
{
|
|
226
|
+
"groupId": "org.springframework.boot",
|
|
227
|
+
"artifactId": "spring-boot-starter-logging"
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"groupId": "dev.langchain4j",
|
|
233
|
+
"artifactId": "langchain4j"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"groupId": "dev.langchain4j",
|
|
237
|
+
"artifactId": "langchain4j-ollama"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"groupId": "dev.langchain4j",
|
|
241
|
+
"artifactId": "langchain4j-pgvector"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"groupId": "dev.langchain4j",
|
|
245
|
+
"artifactId": "langchain4j-embeddings"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"groupId": "dev.langchain4j",
|
|
249
|
+
"artifactId": "langchain4j-document-parser-apache-pdfbox"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"groupId": "org.egovframe.rte",
|
|
253
|
+
"artifactId": "egovframe-rte-fdl-excel",
|
|
254
|
+
"exclusions": [
|
|
255
|
+
{
|
|
256
|
+
"groupId": "org.apache.commons",
|
|
257
|
+
"artifactId": "commons-lang3"
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"groupId": "dev.langchain4j",
|
|
263
|
+
"artifactId": "langchain4j-reactor"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"groupId": "com.h2database",
|
|
267
|
+
"artifactId": "h2",
|
|
268
|
+
"version": "2.2.224",
|
|
269
|
+
"scope": "test"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"groupId": "org.postgresql",
|
|
273
|
+
"artifactId": "postgresql",
|
|
274
|
+
"scope": "runtime"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"groupId": "org.testcontainers",
|
|
278
|
+
"artifactId": "postgresql",
|
|
279
|
+
"scope": "test"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"groupId": "org.testcontainers",
|
|
283
|
+
"artifactId": "junit-jupiter",
|
|
284
|
+
"scope": "test"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"groupId": "org.springframework.boot",
|
|
288
|
+
"artifactId": "spring-boot-starter-thymeleaf",
|
|
289
|
+
"exclusions": [
|
|
290
|
+
{
|
|
291
|
+
"groupId": "org.springframework.boot",
|
|
292
|
+
"artifactId": "spring-boot-starter-logging"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"groupId": "org.springframework.boot",
|
|
298
|
+
"artifactId": "spring-boot-starter-web",
|
|
299
|
+
"exclusions": [
|
|
300
|
+
{
|
|
301
|
+
"groupId": "org.springframework.boot",
|
|
302
|
+
"artifactId": "spring-boot-starter-logging"
|
|
303
|
+
}
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"groupId": "org.springframework.boot",
|
|
308
|
+
"artifactId": "spring-boot-starter-webflux",
|
|
309
|
+
"exclusions": [
|
|
310
|
+
{
|
|
311
|
+
"groupId": "org.springframework.boot",
|
|
312
|
+
"artifactId": "spring-boot-starter-logging"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"groupId": "org.springframework.boot",
|
|
318
|
+
"artifactId": "spring-boot-starter-data-jpa",
|
|
319
|
+
"exclusions": [
|
|
320
|
+
{
|
|
321
|
+
"groupId": "org.springframework.boot",
|
|
322
|
+
"artifactId": "spring-boot-starter-logging"
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"groupId": "org.egovframe.rte",
|
|
328
|
+
"artifactId": "egovframe-rte-ptl-mvc",
|
|
329
|
+
"exclusions": [
|
|
330
|
+
{
|
|
331
|
+
"groupId": "org.apache.commons",
|
|
332
|
+
"artifactId": "commons-lang3"
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"groupId": "commons-codec",
|
|
338
|
+
"artifactId": "commons-codec"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"groupId": "kr.dogfoot",
|
|
342
|
+
"artifactId": "hwplib",
|
|
343
|
+
"version": "1.1.9"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"groupId": "kr.dogfoot",
|
|
347
|
+
"artifactId": "hwpxlib",
|
|
348
|
+
"version": "1.0.5"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"groupId": "org.projectlombok",
|
|
352
|
+
"artifactId": "lombok",
|
|
353
|
+
"optional": true
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"groupId": "org.springframework.boot",
|
|
357
|
+
"artifactId": "spring-boot-starter-test",
|
|
358
|
+
"scope": "test"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"mavenProperties": {},
|
|
362
|
+
"prerequisites": [
|
|
363
|
+
"ollama>=0.17.1",
|
|
364
|
+
"onnx-embedding-model",
|
|
365
|
+
"docker"
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
}
|