Skip to main content
Glama
EricSeokgon

egovframe-scaffold-mcp

by EricSeokgon

Spring 설정 파일 생성

generate_egovframe_config

Create Spring XML, JavaConfig, YAML, or properties files for eGovFrame projects using 21 official Initializr templates, covering datasource, transaction, cache, logging, scheduling, and ID generation.

Instructions

공식 eGovFrame Initializr 설정 템플릿(21종, 오프라인 동봉)으로 Spring 설정 파일을 생성합니다 — datasource(DBCP/C3P0/JDBC·JNDI), transaction(datasource/JPA/JTA), cache(Ehcache), logging(log4j2 console/file/rolling/time-rolling/jdbc), scheduling(Quartz job/trigger/scheduler), idGeneration(sequence/table/uuid), property. 형식은 xml(Spring XML)·javaConfig(@Configuration 클래스)·yaml·properties(logging 만). 필드를 생략하면 Initializr 웹뷰 폼과 같은 기본값을 쓰고, 기존 파일이 있으면 덮어쓰지 않고 거부합니다. 템플릿별 필드·기본값·선택지는 리소스 egovframe://catalog/config-templates 에서 확인하거나 dryRun 결과의 context 로 볼 수 있습니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dryRunNotrue면 파일을 쓰지 않고 내용·경로·컨텍스트만 반환
fieldsNo템플릿 변수 덮어쓰기 (예: { txtDatasourceName: 'dataSource', rdoType: 'DBCP', txtUrl: 'jdbc:mysql://…', txtConfigPackage: 'kr.go.sample.config' }). 템플릿에 없는 필드는 거부
formatNoxml | javaConfig | yaml | properties (yaml·properties 는 logging 계열만)xml
configIdYes설정 템플릿 id (예: datasource, transaction-datasource, logging-rolling-file, scheduling-cron-trigger)
fileNameNo파일명(확장자 제외) 또는 JavaConfig 클래스명. 미지정 시 Initializr 기본값(예: context-datasource, EgovDataSourceConfig)
outputDirNo프로젝트 상대 출력 디렉터리. 미지정 시 xml→src/main/resources/egovframework/spring(logging 은 src/main/resources), javaConfig→src/main/java/<패키지>
projectDirYes대상 프로젝트 디렉터리(절대경로 권장)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.36.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations mark it as non-read-only and non-destructive but say nothing about write safety; the description adds that existing files are refused rather than overwritten, that omitted fields fall back to Initializr web-form defaults, and that dryRun returns content/path/context without writing. These are meaningful behavioral disclosures beyond the annotations, though permissions and error handling beyond the overwrite case are unstated.

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?

Front-loaded with verb, resource, and template coverage before format and write-behavior details; every clause carries information. The single dense paragraph with em-dash lists is slightly heavy but appropriate for the 21-template scope.

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 complex generator with a nested fields object, no output schema, and 100% schema coverage, the description supplies the missing behavioral and format context plus a resource pointer for template-specific fields. It stops short of describing response shape for the non-dryRun case, but is otherwise sufficient to call the tool correctly.

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

Parameters4/5

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

Schema coverage is 100% (baseline 3), but the description adds value the schema lacks: the format restriction that yaml/properties apply only to logging templates, the 'same defaults as the Initializr web view form' semantics for the fields object, and a pointer to egovframe://catalog/config-templates for the per-template field keys that the open additionalProperties object does not enumerate.

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 and resource (generates Spring config files) and enumerates the concrete template families it covers (datasource, transaction, cache, logging, scheduling, idGeneration, property) with sub-options. An agent can distinguish it from generate_egovframe_crud and create_egovframe_project without opening the 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?

Usage is implied through the template catalog and the pointer to egovframe://catalog/config-templates and dryRun for previewing, but it never states when to prefer this over sibling generators like generate_egovframe_crud or create_egovframe_project. No explicit when-not or alternative routing is given.

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