Skip to main content
Glama
egovframe-scaffold-mcp

egovframe-scaffold-mcp

by EricSeokgon

공통컴포넌트 재조립 (5.x)

reassemble_egovframe_components
Destructive

Reassembles copied eGovFrame common components to a fixed catalog version, identifies source tags, classifies changes, and applies transactional updates with backups and user patch preservation.

Instructions

3.x/4.x(또는 이전 5.x) 프로젝트에 복사돼 있는 공통컴포넌트 소스를 카탈로그 고정 버전(현재 v5.0.7)으로 다시 조립합니다. (1) 프로젝트 파일의 git blob id 를 공식 egovframe-common-components 후보 태그(좌표 세대별)와 대조해 원본 태그를 식별하고(파일 내용을 내려받지 않음, sourceTag 로 지정 가능) (2) 원본·현재·목표로 파일마다 목표와 같음/원본 그대로(교체)/사용자 수정/5.x 신규/5.x 에서 제거/원본 미확인/사용자 추가를 판정한 뒤 (3) dryRun=false 면 하나의 transaction 으로 목표 파일을 쓰고(아카이브 sha256 검증), 5.x 에 없는 원본 파일은 백업 후 지우고, 사용자 수정 소스는 교체하되 원본 대비 변경을 unified diff 패치로 보존하며(설정·자산 파일은 사용자본을 유지하고 목표본을 참고로 저장) 매니페스트를 기록해 이후 upgrade·validate·remove 도구가 적용되게 합니다. 백업·패치·reassemble-plan.json 은 migration-backup/<시각>-reassemble-*/ 에 남고, 작업 목록(패치 다시 반영·5.x 제거 파일·설정 비교)을 돌려줍니다. verify=true 면 적용 뒤 compile 을 실행해 오류를 작업 목록 파일에 붙입니다. 원본 태그 비교에 git 이 필요하며 캐시는 EGOVFRAME_CACHE_DIR(기본 ~/.cache/egovframe-scaffold-mcp)에 둡니다. v1.12: reapply=true 면 사용자 수정 파일(소스·설정)을 원본·현재·목표 3-way(git merge-file)로 합쳐 충돌 없는 것만 그 결과로 쓰고, 충돌·이진은 지금처럼 목표본 + 패치 + 작업 목록(충돌 hunk 수)으로 남깁니다 — 파일에 충돌 표식을 넣지 않습니다. verify=true 와 함께 쓰면 합친 파일에서 컴파일 오류가 나는 것은 목표본으로 되돌립니다.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectDir": "<projectDir>"
    },
    "name": "reassemble_egovframe_components"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNotrue(기본)면 분류·계획만, false 면 적용(transaction)
formatNo출력 형식markdown
verifyNo적용 뒤 compile 실행해 오류를 작업 목록에 연결(reapply=true 면 합친 파일에 오류가 있으면 목표본으로 되돌림)
reapplyNo사용자 수정 파일을 원본·현재·목표 3-way 로 합쳐 충돌 없는 것만 자동 반영(충돌은 파일에 표식을 남기지 않고 작업 목록으로)
databaseNo지정 시 컴포넌트별 DDL·DML 을 scripts/egovframe-components/<db>/ 에 함께 생성
sourceTagNo원본 태그(예: v3.10.0). auto(기본)면 파일 대조로 식별auto
timeoutMsNoverify 컴파일 타임아웃(ms)
componentsNo재조립할 컴포넌트 id(그룹 id 는 하위 컴포넌트로 펼침). 미지정 시 감지된 컴포넌트 전부
projectDirYes대상 프로젝트 디렉터리(절대경로 권장)

Output Schema

NameRequiredDescriptionDefault
sqlYes
filesYes
notesYes
dryRunYes
originYes
targetYes
verifyNo
actionsYes
reapplyNo
summaryYes
planPathNo
worklistYes
backupDirNo
sourceEraYes
componentsYes
projectDirYes
manifestUpdatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.15.0
    • addedInput schema / properties / reapply
      Added value: +{
      +  "default": false,
      +  "description": "사용자 수정 파일을 원본·현재·목표 3-way 로 합쳐 충돌 없는 것만 자동 반영(충돌은 파일에 표식을 남기지 않고 작업 목록으로)",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / verify / description
      Previous value: -"적용 뒤 compile 실행해 오류를 작업 목록에 연결"New value: +"적용 뒤 compile 실행해 오류를 작업 목록에 연결(reapply=true 면 합친 파일에 오류가 있으면 목표본으로 되돌림)"
    • addedOutput schema / properties / reapply
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "absorbed": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "binary": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "conflicts": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "entries": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "componentId": {
      +            "type": "string"
      +          },
      +          "conflicts": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "errors": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "path": {
      +            "type": "string"
      +          },
      +          "reverted": {
      +            "type": "boolean"
      +          },
      +          "status": {
      +            "enum": [
      +              "clean",
      +              "absorbed",
      +              "conflict",
      +              "binary",
      +              "error"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "path",
      +          "componentId",
      +          "status",
      +          "conflicts"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "errors": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "reapplied": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "reverted": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "reapplied",
      +    "absorbed",
      +    "conflicts",
      +    "binary",
      +    "errors",
      +    "reverted",
      +    "entries"
      +  ],
      +  "type": "object"
      +}
  2. Changed29 schema fields changedv1.6.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / actions / additionalProperties / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / actions / additionalProperties / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / actions / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / components / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / components / items / properties / files / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / components / items / properties / files / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / components / items / properties / summary / additionalProperties / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / components / items / properties / summary / additionalProperties / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / components / items / properties / summary / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / files / items / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / origin / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / origin / properties / candidates / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / origin / properties / candidates / items / properties / matched / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / origin / properties / candidates / items / properties / matched / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / origin / properties / candidates / items / properties / total / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / origin / properties / candidates / items / properties / total / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / additionalProperties / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / additionalProperties / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / target / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / verify / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / verify / properties / errors / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / verify / properties / errors / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / verify / properties / inReassembled / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / verify / properties / inReassembled / 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
  3. Addedv0.40.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the destructiveHint/openWorldHint annotations, the description discloses the exact write model: a single transaction with archive sha256 verification, deletion of originals absent in 5.x only after backup, user edits preserved as unified-diff patches, config/asset files keeping the user copy with the target saved as reference, and a manifest that later upgrade/validate/remove tools depend on. It also states environmental prerequisites (git required for tag comparison, EGOVFRAME_CACHE_DIR cache location) and the v1.12 guarantee that no conflict markers are written into files.

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?

The purpose is front-loaded and the (1)/(2)/(3) numbering gives the long explanation usable structure. It is still very dense, packing three phases plus backup layout, git/cache notes and a versioned changelog into a few very long sentences, but nearly every clause carries operative information.

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?

For a destructive, transaction-based migration tool with 9 parameters, the description covers inputs, side effects, backup/artifact locations, prerequisites and post-apply verification. An output schema exists and the returned task list is still described, so nothing an agent needs before invoking it is missing.

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 the baseline is 3. The description reinforces the meaning of dryRun, verify, reapply and sourceTag=auto (tag identified by file comparison without downloading content), but adds little for components or database beyond what the schema already states.

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 precise verb and resource (reassemble common-component sources into the catalog-fixed v5.0.7) and pins the target scenario (3.x/4.x or older 5.x projects with copied component sources). The three numbered phases make the operation unmistakable and clearly distinct from add_egovframe_components or upgrade_egovframe_project.

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?

The opening sentence defines the condition for use (projects carrying copied common-component sources from older generations), and the dryRun default of true is explicitly surfaced as plan-only. It does not explicitly name when to choose this over upgrade_egovframe_project or migrate_egovframe_project, so routing among the many migration siblings is still partly inferred.

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