Skip to main content
Glama
EricSeokgon

egovframe-scaffold-mcp

by EricSeokgon

AI 계층 조립

add_ai_components

Assemble an AI RAG chatbot into an existing eGovFrame Boot project by copying source, config, UI, and infrastructure, adding missing dependencies, with dry-run preview and conflict-safe backups.

Instructions

공식 egovframe-ai-rag 샘플 기반 AI RAG 챗봇(문서 업로드→임베딩→하이브리드 검색→LLM 응답)을 기존 Boot 프로젝트에 조립합니다. 소스·설정(application-ai.yml 프로필)·UI·인프라를 복사하고 pom에 누락 의존성만 마커 구간으로 삽입합니다(백업 생성, 제거 시 원복). 기존 파일과 충돌하면 아무것도 쓰지 않고 거부합니다. dryRun=true로 먼저 미리볼 수 있습니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoegovframe-ai-rag 브랜치/태그 (기본: 카탈로그 기준 브랜치)
stackYesAI 스택: spring-ai(Redis Stack) | langchain4j(PGVector). 상호 배타
dryRunNotrue면 복사·병합 없이 계획만 미리보기(네트워크 불필요)
includeUiNo채팅 UI(chat.html·static) 복사
projectDirYes대상 프로젝트 디렉터리(절대경로 권장). egovframe-boot-starter-parent 기반 Boot 프로젝트
includeInfraNodocker-compose.ai.yml·Dockerfile.ai·k8s/ai 복사
includeTestsNo샘플 테스트 복사

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds substantial behavior beyond the annotations: backup creation and restore-on-removal, marker-scoped pom insertion, atomic refusal (nothing written on conflict), and a no-network preview mode. These are consistent with destructiveHint=false / idempotentHint=false rather than contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense, front-loaded sentences that lead with the outcome and then the safety mechanics. Every sentence carries information, though the middle clause is packed tightly enough to slow parsing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutation tool with no output schema, the description covers conflict handling, backup/restore, and preview adequately. The main remaining gap is any indication of what the tool reports back on success or rejection, which the absence of an output schema leaves undocumented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so ref, stack enum, dryRun, includeUi, includeInfra, includeTests and projectDir are already fully documented in the schema. The description restates the dryRun preview and application-ai.yml profile but adds no new per-parameter syntax or constraints, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: assembling the egovframe-ai-rag RAG chatbot (document upload→embedding→hybrid search→LLM response) into an existing Boot project, plus exactly what artifacts are copied (source/config/UI/infra) and what is inserted (pom deps via markers). This is clearly differentiated from the generic sibling add_egovframe_components.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives useful operating context — dryRun=true for a preview, and refusal on conflict — but never states when to choose this over add_egovframe_components or what prerequisites the target project must satisfy. Usage is implied rather than routed against alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.