Skip to main content
Glama
EricSeokgon

egovframe-scaffold-mcp

by EricSeokgon

CRUD 코드 생성

generate_egovframe_crud

Generate eGovFrame CRUD skeletons (VO, Mapper, Service, Controller, optional JSP/JUnit 5) for Classic or Boot REST projects, with conflict checks that abort before writing files.

Instructions

eGovFrame Development의 공식 CRUD wizard 입력 체계에 맞춰 VO·Mapper(XML)·Service·Controller·JSP(선택)·JUnit 5 테스트(선택) 골격을 생성합니다. Classic XML과 Boot REST 프로필을 지원하며, 전체 파일 충돌을 먼저 검사해 하나라도 존재하면 아무것도 쓰지 않습니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
authorNo공식 wizard의 authoregovframe-scaffold-mcp
dryRunNotrue면 파일을 쓰지 않고 생성 계획만 반환
fieldsYes테이블 컬럼 정의
profileNoclassic=Spring MVC+JSP, boot=REST Controllerclassic
checkWebNo공식 wizard Web 그룹 생성 여부
withTestNoJUnit 5 서비스 계약 테스트 골격 생성
jspFolderNo프로젝트 기준 JSP 폴더
tableNameYesCRUD 대상 테이블명. 단일 SQL 식별자, 예: SAMPLE_BOARD
voPackageNoVO 패키지
createDateNo공식 wizard의 createDate. 미지정 시 오늘 날짜
entityNameNo생성 클래스명. 미지정 시 tableName에서 PascalCase로 생성
includeJspNoclassic 프로필의 JSP 2종 생성 여부(기본 true)
projectDirYes대상 프로젝트 디렉터리(절대경로 권장, pom.xml 또는 build.gradle 필요)
basePackageYes기본 자바 패키지. 예: egovframework.example.board
implPackageNoServiceImpl 패키지
checkServiceNo공식 wizard Service 그룹 생성 여부
mapperFolderNo프로젝트 기준 Mapper XML 폴더
mapperPackageNoMapper 인터페이스 패키지
servicePackageNoService 패키지
checkDataAccessNo공식 wizard DataAccess 그룹 생성 여부
controllerPackageNoController 패키지

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.21.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, but the description adds genuinely non-obvious behavior: it performs a full file-conflict check and writes NOTHING if any target file already exists (all-or-nothing atomicity). That is valuable context an agent cannot infer from the annotations. It stops short of describing permissions, overwrite semantics, or return payload, keeping it from 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?

Two dense sentences, front-loaded with the generated artifacts first and the safety/atomicity behavior second. No filler, though the artifact enumeration and profile listing make the first sentence quite long. Efficient overall.

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 21-parameter generator with no output schema, the description establishes purpose, the two profile modes, and the all-or-nothing write policy — enough for an agent to select and invoke it safely. The absent output schema and lack of explicit return-format guidance are partially offset by the dryRun parameter documented in the schema, but the description itself could say more about generated file layout.

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% across all 21 parameters, so the schema already documents every field, enum, and default. The description adds high-level profile semantics (classic=Spring MVC+JSP vs boot=REST) and flags JSP/tests as optional, but no per-parameter detail beyond the schema. Baseline 3 is appropriate.

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?

Names a specific verb (생성/generate) and enumerates the exact artifacts produced (VO, Mapper XML, Service, Controller, optional JSP, optional JUnit 5 tests) plus the profiles supported. An agent can distinguish this from sibling generators like generate_egovframe_config, generate_egovframe_report, or apply_egovframe_recipe without opening any schema.

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?

The description scopes the tool to the 'eGovFrame Development official CRUD wizard 입력 체계' and notes profile selection, which implies its usage domain. However, it never states when to prefer this over sibling scaffolding tools (create_egovframe_project, apply_egovframe_recipe) nor any preconditions/exclusions for calling it. Usage is implied rather than prescribed.

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