Skip to main content
Glama
EricSeokgon

egovframe-scaffold-mcp

by EricSeokgon

5.x 전환 진단·적용

migrate_egovframe_project
Destructive

Diagnose and migrate eGovFrame 3.x/4.x projects to 5.x by flagging file/line changes, auto-applying safe replacements with backups, and optionally verifying compilation.

Instructions

표준프레임워크 3.x/4.x 프로젝트를 5.x(Jakarta EE 9+, Spring 6, Java 17) 로 옮기기 위해 바꿔야 할 것을 파일·라인 단위로 진단하고(1단계), apply=true 이면 auto 항목을 실제로 치환합니다(2단계). 진단: RTE Maven 좌표(egovframework.rte → org.egovframe.rte:egovframe-rte-)·패키지(egovframework.rte. → org.egovframe.rte.)·5.x 에서 이름이 바뀌거나 제거된 클래스·javax→jakarta 패키지와 의존성·web.xml 스키마·제거된 egov- XML 네임스페이스·교체 필요 라이브러리, 항목마다 auto(기계 치환 가능)/manual(코드 수정 필요). 적용: apply=true 는 dryRun=true(기본)면 파일별 변경 미리보기만 돌려주고, dryRun=false 면 auto 항목을 하나의 transaction 으로 치환하며 원본을 migration-backup/<시각>/ 에 보관하고 migration-plan.json 을 남깁니다(중간 실패 시 작업 전 상태로 복구). manual 항목은 건드리지 않고 결과에 남깁니다. verify=true 는 3단계(검증): 적용 뒤 compile 을 실행해 컴파일 오류를 수동 항목과 연결하고 "이 항목을 처리하면 해결될 오류 수" 순으로 작업 목록을 만듭니다. 3.x 공통컴포넌트 소스가 섞여 있으면 컴포넌트 단위 재조립 권고를 내고 skipComponents 로 치환에서 뺄 수 있습니다. 규칙은 egovframe-runtime·egovframe-common-components 태그 비교로 만든 동봉 카탈로그(catalog/migration-rules.json)에서 읽습니다. target 에 5.0.2 같은 5.0.2·5.1.0 같은 5.y.z 를 주면 이미 5.x 인 프로젝트의 갱신 모드가 됩니다(5.1.0 은 GitHub 태그 없이 저장소에 배포된 버전 — 근거는 sources jar 비교): parent·RTE 버전 속성·RTE 의존성 리터럴 버전과 예전 parent 기본값을 그대로 덮어쓴 속성은 auto, 그 사이 바뀐 RTE API·동작(보안 설정 Bean 시그니처, 엑셀 수식 주입 방지, XML XXE 차단 등)을 프로젝트가 참조하는 곳과 공통컴포넌트 최신 유지(upgrade·reassemble 안내)는 manual 로 보고하며, apply·dryRun·verify 는 전환과 같게 동작합니다(백업에 update-plan.json, 규칙 catalog/update-rules.json).

Input Schema

NameRequiredDescriptionDefault
applyNotrue 면 2단계(적용). false(기본)면 진단만
dryRunNoapply=true 일 때만 의미. true(기본)면 파일별 변경 미리보기만, false 면 실제로 치환(백업 생성)
formatNo출력 형식. markdown=사람이 읽는 요약, json=항목 배열 그대로markdown
targetNo전환 목표. 5.x(기본) = 3.x/4.x → 5.x 전환, 5.0.2·5.1.0 같은 5.y.z = 이미 5.x 인 프로젝트를 그 버전으로 갱신(parent·RTE 버전 auto, 그 사이 바뀐 RTE API·동작 참조 manual, 공통컴포넌트 최신 유지 안내). 5.1.0 은 저장소 배포 기준(GitHub 태그 없음)5.x
verifyNotrue 면 3단계(검증): 진단 후 compile 을 실행해 컴파일 오류를 수동 항목과 연결한 작업 목록을 반환(apply 와 함께 쓰지 않음, 빌드 도구 필요)
projectDirYes대상 프로젝트 디렉터리(절대경로 권장)
skipComponentsNotrue 면 3.x 공통컴포넌트 디렉터리(재조립 권고 대상)의 자동 항목을 치환하지 않고 수동으로 남김

Output Schema

NameRequiredDescriptionDefault
modeNo
buildNo
filesNo
itemsYes
linksNo
notesYes
rulesYes
dryRunNo
targetYes
updateNo
appliedNo
summaryYes
planPathNo
unlinkedNo
worklistNo
backupDirNo
conflictsNo
remainingNo
sourceEraYes
projectDirYes
rteVersionYes
buildSystemYes
filesScannedYes
skippedManualNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed68 schema fields changedv1.6.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / properties / applied / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / applied / properties / edits / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / applied / properties / edits / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / applied / properties / files / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / applied / properties / files / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / applied / properties / items / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / applied / properties / items / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / build / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / build / properties / attempts
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / build / properties / errors / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / build / properties / errors / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / build / properties / failureHint
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / build / properties / failureKind
      Added value: +{
      +  "enum": [
      +    "compile",
      +    "test",
      +    "repository-unavailable",
      +    "timeout",
      +    "other"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / files / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / files / items / properties / edits / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / files / items / properties / edits / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / files / items / properties / items / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / files / items / properties / items / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / filesScanned / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / filesScanned / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / items / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / items / items / properties / line / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / items / items / properties / line / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / links / items / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / links / items / properties / error / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / links / items / properties / error / properties / line / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / links / items / properties / error / properties / line / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / links / items / properties / itemIndex / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / remaining / $ref
      Removed value: -"#/properties/summary"
    • addedOutput schema / properties / remaining / additionalProperties
      Added value: +{}
    • addedOutput schema / properties / remaining / properties
      Added value: +{
      +  "auto": {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "byKind": {
      +    "additionalProperties": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  "files": {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "manual": {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  }
      +}
    • addedOutput schema / properties / remaining / required
      Added value: +[
      +  "auto",
      +  "manual",
      +  "files",
      +  "byKind"
      +]
    • addedOutput schema / properties / remaining / type
      Added value: +"object"
    • changedOutput schema / properties / rules / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / skippedManual / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / skippedManual / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / summary / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / summary / properties / auto / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / auto / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / properties / byKind / additionalProperties / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / byKind / additionalProperties / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / properties / byKind / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / summary / properties / files / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / files / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / properties / manual / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / manual / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / unlinked / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / unlinked / items / properties / line / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / unlinked / items / properties / line / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / update / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / update / properties / changes / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / update / properties / changes / items / properties / files / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / update / properties / changes / items / properties / files / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / update / properties / components / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "catalogTag": {
      -        "type": "string"
      -      },
      -      "detected": {
      -        "type": "integer"
      -      },
      -      "tool": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "detected",
      -      "catalogTag",
      -      "tool"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "catalogTag": {
      +        "type": "string"
      +      },
      +      "detected": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "tool": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "detected",
      +      "catalogTag",
      +      "tool"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / update / properties / parent / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "kind": {
      -        "type": "string"
      -      },
      -      "to": {
      -        "type": "string"
      -      },
      -      "version": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "version",
      -      "to"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "kind": {
      +        "type": "string"
      +      },
      +      "to": {
      +        "type": "string"
      +      },
      +      "version": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "version",
      +      "to"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / update / properties / unreferencedChanges / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / update / properties / unreferencedChanges / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / worklist / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / worklist / items / properties / errors / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / worklist / items / properties / errors / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / worklist / items / properties / index / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / worklist / items / properties / index / minimum
      Added value: +-9007199254740991
    • removedOutput schema / properties / worklist / items / properties / item / $ref
      Removed value: -"#/properties/items/items"
    • addedOutput schema / properties / worklist / items / properties / item / additionalProperties
      Added value: +{}
    • addedOutput schema / properties / worklist / items / properties / item / properties
      Added value: +{
      +  "action": {
      +    "enum": [
      +      "auto",
      +      "manual"
      +    ],
      +    "type": "string"
      +  },
      +  "file": {
      +    "type": "string"
      +  },
      +  "from": {
      +    "type": "string"
      +  },
      +  "kind": {
      +    "type": "string"
      +  },
      +  "line": {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "reason": {
      +    "type": "string"
      +  },
      +  "to": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  }
      +}
    • addedOutput schema / properties / worklist / items / properties / item / required
      Added value: +[
      +  "file",
      +  "line",
      +  "kind",
      +  "from",
      +  "to",
      +  "action",
      +  "reason"
      +]
    • addedOutput schema / properties / worklist / items / properties / item / type
      Added value: +"object"
  2. Changed2 schema fields changedv1.4.0
    • changedInput schema / properties / target / description
      Previous value: -"전환 목표. 5.x(기본) = 3.x/4.x → 5.x 전환, 5.0.2 같은 5.0.x = 이미 5.x 인 프로젝트를 그 버전으로 갱신(parent·RTE 버전 auto, 그 사이 바뀐 RTE API·동작 참조 manual, 공통컴포넌트 최신 유지 안내)"New value: +"전환 목표. 5.x(기본) = 3.x/4.x → 5.x 전환, 5.0.2·5.1.0 같은 5.y.z = 이미 5.x 인 프로젝트를 그 버전으로 갱신(parent·RTE 버전 auto, 그 사이 바뀐 RTE API·동작 참조 manual, 공통컴포넌트 최신 유지 안내). 5.1.0 은 저장소 배포 기준(GitHub 태그 없음)"
    • changedInput schema / properties / target / pattern
      Previous value: -"^(5\\.x|5\\.0\\.\\d+)$"New value: +"^(5\\.x|5\\.\\d+\\.\\d+)$"
  3. Changed5 schema fields changedv0.46.0
    • changedInput schema / properties / target / description
      Previous value: -"전환 목표 (현재 5.x 만 지원)"New value: +"전환 목표. 5.x(기본) = 3.x/4.x → 5.x 전환, 5.0.2 같은 5.0.x = 이미 5.x 인 프로젝트를 그 버전으로 갱신(parent·RTE 버전 auto, 그 사이 바뀐 RTE API·동작 참조 manual, 공통컴포넌트 최신 유지 안내)"
    • removedInput schema / properties / target / enum
      Removed value: -[
      -  "5.x"
      -]
    • addedInput schema / properties / target / pattern
      Added value: +"^(5\\.x|5\\.0\\.\\d+)$"
    • removedOutput schema / properties / target / const
      Removed value: -"5.x"
    • addedOutput schema / properties / update
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "changes": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "files": {
      +            "type": "integer"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "since": {
      +            "type": "string"
      +          },
      +          "summary": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "since",
      +          "summary",
      +          "files"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "components": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "properties": {
      +            "catalogTag": {
      +              "type": "string"
      +            },
      +            "detected": {
      +              "type": "integer"
      +            },
      +            "tool": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "detected",
      +            "catalogTag",
      +            "tool"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "from": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "parent": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "properties": {
      +            "kind": {
      +              "type": "string"
      +            },
      +            "to": {
      +              "type": "string"
      +            },
      +            "version": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "kind",
      +            "version",
      +            "to"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "to": {
      +      "type": "string"
      +    },
      +    "unreferencedChanges": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "from",
      +    "to",
      +    "parent",
      +    "changes",
      +    "unreferencedChanges",
      +    "components"
      +  ],
      +  "type": "object"
      +}
  4. Addedv0.36.1

TDQS

A4.2/5.0
Behavior5/5

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

Far beyond the destructiveHint=true/idempotentHint=false annotations: it discloses that auto items are rewritten in a single transaction, originals are archived to migration-backup/<시각>/, migration-plan.json is emitted, and a mid-failure rolls back to the pre-work state. It also states the safety boundary that manual items are never touched and survive into the result. That is exactly the destruction/atomicity/rollback detail an agent needs before authorizing a write.

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

Conciseness3/5

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

Front-loaded on the conversion path, but the entire update-mode branch (target=5.y.z, 5.1.0 provenance, update-rules.json, update-plan.json) is crammed into one trailing run-on clause separated by a colon and dashes. Much of it restates what the 100%-covered schema already documents, and the density makes skimming harder than necessary.

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

Completeness5/5

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

Given an output schema exists and parameter coverage is complete, the description need not explain return shapes — and it still supplies the reasoning an agent needs: three-phase model, rule catalog provenance (catalog/migration-rules.json), the auto/manual classification, and the common-component reassembly recommendation. Nothing material is missing for correct invocation.

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%, so 3 is the baseline, and the prose genuinely raises it: apply/dryRun/verify interplay, target's dual meaning (5.x = 전환 vs 5.y.z = 갱신), and skipComponents excluding common-component dirs are all explained with consequences rather than definitions. It loses a point for an internal inconsistency — the description says verify runs compile '적용 뒤' (after applying) while the schema says verify is not combined with apply — leaving the agent unsure of the legal combination.

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 pair (진단 + 치환/적용) on a concrete resource (3.x/4.x → 5.x 프로젝트) and enumerates exactly which artifacts it rewrites (RTE 좌표, 패키지, javax→jakarta, web.xml 스키마, XML 네임스페이스). An agent knows precisely what the tool does. What it does not do is distinguish itself from near-neighbours such as upgrade_egovframe_project or rehearse_egovframe_migration, which the crowded sibling list makes a real ambiguity risk.

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

Usage Guidelines4/5

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

Explicitly lays out the internal decision tree: apply=false is diagnosis-only, apply=true + dryRun=true is preview, dryRun=false performs the write, verify=true adds the compile stage, and target=5.y.z switches to update mode. That is unusually clear gating. It stops short of a 5 because it never says when to prefer this over rehearse_egovframe_migration (dry rehearsal) or upgrade_egovframe_project.

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