Skip to main content
Glama
egovframe-scaffold-mcp

egovframe-scaffold-mcp

by EricSeokgon

공통컴포넌트 업그레이드

upgrade_egovframe_project
Destructive

Upgrade installed eGovFrame common components to catalog-pinned tags with 3-way updates, preserving user edits, previewing changes via dry run, backing up files, and resolving or rejecting conflicts.

Instructions

매니페스트에 기록된 설치 공통컴포넌트를 카탈로그 고정 태그(이 도구 버전이 아는 최신)로 3-way 갱신합니다 — 기준은 매니페스트에 적힌 설치 태그, 파일마다 불변/갱신/추가/사용자수정(보존)/충돌/upstream삭제 로 분류. 사용자가 수정한 파일은 force 없이는 보존하며, dryRun(기본)으로 변경 계획을 먼저 확인합니다. 덮어쓰기 전 upgrade-backup/에 백업하고, 하드 충돌 시 아무것도 쓰지 않고 거부합니다. v1.12: reapply=true 면 충돌 파일(사용자 수정 + upstream 변경)을 기준·현재·목표 3-way(git merge-file)로 합쳐 충돌 없는 것만 적용하고, 합치지 못한 파일만 거부(force 로 덮어쓰기)합니다 — 파일에 충돌 표식을 넣지 않습니다. verify=true 면 적용 뒤 compile 해 합친 파일에서 오류가 나면 그 파일을 upstream 본으로 되돌립니다.

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": "upgrade_egovframe_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo사용자 수정 파일(충돌)도 백업 후 덮어쓸지
dryRunNotrue(기본)면 계획만 미리보기, 디스크 변경 없음
verifyNo적용 뒤 compile — 합친 파일에 오류가 있으면 upstream 본으로 되돌림
reapplyNo충돌 파일을 3-way 로 합쳐 충돌 없는 것만 자동 적용
timeoutMsNoverify 컴파일 타임아웃(ms)
componentsNo대상 컴포넌트 id (미지정 시 매니페스트 전체)
projectDirYes업그레이드할 프로젝트 디렉터리(절대경로 권장)

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"
      +}
    • addedInput schema / properties / timeoutMs
      Added value: +{
      +  "default": 300000,
      +  "description": "verify 컴파일 타임아웃(ms)",
      +  "maximum": 1800000,
      +  "minimum": 10000,
      +  "type": "integer"
      +}
    • addedInput schema / properties / verify
      Added value: +{
      +  "default": false,
      +  "description": "적용 뒤 compile — 합친 파일에 오류가 있으면 upstream 본으로 되돌림",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv1.6.0
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Addedv0.19.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructive=true, readOnly=false and non-idempotent, and the description adds concrete behavior on top: writes to upgrade-backup/ before overwriting, hard conflicts abort with zero writes, reapply merges via git merge-file and never leaves conflict markers, verify compiles and reverts merged files to the upstream original. That is exactly the extra context the destructiveHint alone does not convey.

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 information is front-loaded: scope and baseline come first, then safety behavior (backup, conflict refusal), then the opt-in flags. It is dense and long, with the trailing 'v1.12' changelog clause and heavy em-dash nesting adding some reading cost, but each clause still carries operational substance.

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 destructive, seven-parameter tool with no output schema, the description covers safety, backup, conflict policy and rollback well. The notable gap is that it never describes what a dryRun plan or refuse result actually looks like, so the agent cannot tell the user what to expect from the returned output.

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?

With 100% schema coverage the schema already documents all seven parameters, so the baseline is 3; the description still adds real meaning by framing dryRun as the default plan step, force as the user-modification override, and reapply/verify as the specific merge-and-compile escalation path. It says little about components (id list, manifest-wide default) and projectDir beyond what the schema 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?

The description names a specific operation and resource: a 3-way update of installed common components recorded in the manifest to the catalog's pinned tag. It also details the per-file classification scheme (unchanged/update/add/user-modified/conflict/upstream-deleted), which distinguishes it from siblings like add_egovframe_components or migrate_egovframe_project without the agent having to open a schema.

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?

It gives a clear workflow: dryRun defaults to true, so the agent previews the plan first; force is only needed to overwrite user-modified files; reapply and verify are opt-in escalation steps. It never names an alternative sibling tool or states when NOT to use this (for example, when components are not yet installed), so it stops short of a full when/when-not/alternatives statement.

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