Skip to main content
Glama
EricSeokgon

egovframe-scaffold-mcp

by EricSeokgon

AI 계층 조립

add_ai_components

Adds an official eGovFrame AI RAG chatbot to an existing Boot project by copying its source, config, UI, and infrastructure and inserting missing pom dependencies, with dry-run preview and backups.

Instructions

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

Input 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. Changed1 schema field changedv1.6.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv0.19.0

TDQS

A3.7/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing real behavioral traits: backups are created, removal restores originals, missing dependencies are inserted only inside marker sections, and any conflict causes a full abort with nothing written. It also notes dryRun needs no network. It does not describe the response/report shape, which keeps it off a 5.

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?

Four dense sentences, front-loaded with the outcome, then the mechanics, then the safety guarantee, then the preview tip. Every sentence carries information, though the parenthetical feature chain makes the first sentence heavy.

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 mutating, open-world assembly tool the description covers what is copied, what is merged, failure behavior, and the dry-run escape hatch, and annotations already carry the safety profile. What an agent still lacks is the result/report content and any prerequisite checks, but overall it is sufficient to call correctly.

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 description coverage is 100%, so every parameter (stack enum, ref, dryRun, includeUi/includeInfra/includeTests, projectDir) is already documented in the schema. The description reinforces dryRun and the UI/infra copies but adds no new syntax, defaults, or interactions beyond what the schema states, so the baseline 3 applies.

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

Purpose4/5

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

States a concrete verb+resource: assembling an official egovframe-ai-rag sample RAG chatbot (upload→embedding→hybrid search→LLM) into an existing Boot project, plus what gets copied (source, config, UI, infra) and the pom edit. It is clearly distinct from the generic add_egovframe_components in scope, but it never names that sibling to make the boundary explicit.

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?

Usage is implied by the context ('기존 Boot 프로젝트에 조립', egovframe-boot-starter-parent based) and there is a strong workflow hint to run with dryRun=true first. However, it gives no explicit when-to-use/when-not versus add_egovframe_components or reassemble_egovframe_components, and no stated prerequisites for the target project.

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