Skip to main content
Glama
egovframe-scaffold-mcp

egovframe-scaffold-mcp

by EricSeokgon

의존성 점검

check_egovframe_dependencies
Read-onlyIdempotent

Checks eGovFrame Maven/Gradle dependencies against official 5.x and Spring Boot baselines, flags version mismatches, and reports security settings with file-level evidence without modifying files.

Instructions

프로젝트의 Maven/Gradle 의존성(resolve=true 면 빌드 도구로 해석한 전이 의존성까지, 트리 경로와 선언·해석 버전 차이 포함)을 공식 5.x parent(egovframe-web-config-parent·egovframe-boot-starter-parent)가 관리하는 기준 버전, Spring Boot BOM 전체(spring-boot-dependencies + import 한 단계), RTE 모듈 18종의 전이 의존성과 대조해 기준 충족/기준 미만/parent 관리/전환 대상(3.x·4.x RTE, javax 좌표)/교체 필요(DBCP 1.x·Log4j 1.x·Jackson 1·Ehcache 2 등)/벤더 배포(국내 DBMS·GPKI 등)/기준 없음 으로 분류하고 항목마다 기준 출처(parent 직접·계열·Boot BOM·RTE 전이)를 적으며, 5.x parent 사용 여부와 Java 버전, 보안 설정 존재 여부(sec.security 컴포넌트·CSRF·XSS 필터·보안 헤더·HTTPS 저장소)를 파일·라인 근거와 함께 보고합니다. 기본은 오프라인(동봉 기준 catalog/dependency-baseline.json)이며 offline=false 일 때만 OSV(api.osv.dev)로 알려진 취약점을 조회합니다. 디스크를 변경하지 않습니다. 멀티 모듈 작업공간이면 모듈별로 판정하고(모듈 parent·Gradle 버전 변수·공식 parent BOM) 모듈 요약을 함께 냅니다. parent 5.1.0 프로젝트는 5.1 기준(BOM egovframe-rte-root, GitHub 태그 없이 저장소에 배포된 버전)으로 판정하고, -egov.N 재빌드 좌표는 원 버전으로 비교·OSV 조회합니다.

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

Input Schema

NameRequiredDescriptionDefault
formatNo출력 형식markdown
offlineNotrue(기본)면 네트워크 없이 기준 대조만, false 면 OSV 취약점 조회 추가
resolveNotrue 면 빌드 도구(Maven dependency:tree / Gradle dependencies)로 전이 의존성까지 해석해 함께 판정(빌드 도구·저장소 접근 필요, 수십 초)
rulePacksNov1.23: 기관 규칙 팩 디렉터리(rule-pack.json 이 있는 곳, 여러 개면 뒤가 이김). 없으면 환경 변수 EGOVFRAME_RULE_PACKS
projectDirYes점검할 프로젝트 디렉터리(절대경로 권장)
resolveScopeNoresolve 범위: runtime(compile+runtime, 기본) | all(test·provided 포함)runtime
resolveTimeoutMsNo해석 명령 타임아웃(ms)

Output Schema

NameRequiredDescriptionDefault
javaYes
notesYes
checksYes
parentYes
offlineYes
summaryYes
baselineYes
findingsYes
osvErrorNo
rulePacksNo
workspaceNo
projectDirYes
resolutionNo
buildSystemYes
vulnerabilitiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.24.0
    • changedOutput schema / properties / rulePacks / items / properties / sections / items / enum
      Previous value: -[
      -  "secureCoding",
      -  "operations",
      -  "dependencies",
      -  "privacy"
      -]New value: +[
      +  "secureCoding",
      +  "operations",
      +  "dependencies",
      +  "privacy",
      +  "access"
      +]
  2. Changed2 schema fields changedv1.23.0
    • addedInput schema / properties / rulePacks
      Added value: +{
      +  "description": "v1.23: 기관 규칙 팩 디렉터리(rule-pack.json 이 있는 곳, 여러 개면 뒤가 이김). 없으면 환경 변수 EGOVFRAME_RULE_PACKS",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • addedOutput schema / properties / rulePacks
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "sections": {
      +        "items": {
      +          "enum": [
      +            "secureCoding",
      +            "operations",
      +            "dependencies",
      +            "privacy"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "sha256": {
      +        "type": "string"
      +      },
      +      "version": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "version",
      +      "sha256",
      +      "sections"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Changed41 schema fields changedv1.6.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / properties / baseline / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / baseline / properties / bootBom / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / baseline / properties / bootBom / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / baseline / properties / java / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / baseline / properties / java / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / baseline / properties / rteTransitive / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / baseline / properties / rteTransitive / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / checks / items / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / checks / items / properties / evidence / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / checks / items / properties / evidence / items / properties / line / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / checks / items / properties / evidence / items / properties / line / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / findings / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / findings / items / properties / depth / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / findings / items / properties / depth / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / findings / items / properties / line / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / findings / items / properties / line / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / java / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / parent / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / resolution / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / resolution / properties / artifacts / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / resolution / properties / artifacts / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / resolution / properties / differs / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / resolution / properties / direct / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / resolution / properties / direct / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / resolution / properties / summary / additionalProperties / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / resolution / properties / summary / additionalProperties / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / resolution / properties / summary / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / resolution / properties / transitive / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / resolution / properties / transitive / 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 / vulnerabilities / items / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / workspace / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / workspace / properties / modules / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / workspace / properties / modules / items / properties / findings / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / workspace / properties / modules / items / properties / findings / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / workspace / properties / modules / items / properties / summary / additionalProperties / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / workspace / properties / modules / items / properties / summary / additionalProperties / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / workspace / properties / modules / items / properties / summary / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  4. Changed1 schema field changedv0.47.0
    • addedOutput schema / properties / workspace
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "kind": {
      +      "type": "string"
      +    },
      +    "modules": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "buildTool": {
      +            "type": "string"
      +          },
      +          "dir": {
      +            "type": "string"
      +          },
      +          "findings": {
      +            "type": "integer"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "summary": {
      +            "additionalProperties": {
      +              "type": "integer"
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "dir",
      +          "buildTool",
      +          "findings",
      +          "summary"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "modules"
      +  ],
      +  "type": "object"
      +}
  5. Addedv0.36.1

TDQS

A3.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the default path is fully offline against a bundled catalog and that network access to api.osv.dev happens only when offline=false, that the disk is never mutated, and that resolve mode shells out to the build tool and needs repository access with a runtime cost of tens of seconds. It also states multi-module workspaces are judged per module with per-module parent/BOM resolution, and explains the 5.1.0 parent and -egov.N rebuild-coordinate edge cases — behavior an agent could not derive from the annotations.

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

Conciseness2/5

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

The whole definition is one very long run-on sentence with stacked parentheses, so the key facts (what is compared, what is classified, offline default) are buried rather than front-loaded. Every clause carries information, but without any sentence breaks or grouping an agent has to parse a wall of text to extract the actionable parts.

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 tool this complex, the description covers the comparison baselines, the nine classification outcomes, the source attribution per item, security-config checks, offline behavior, multi-module handling, and version edge cases, and an output schema exists so return shape need not be explained. The remaining gap is operational: no statement of prerequisites for the project directory or of what the agent should do next with the results.

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 parameters are already documented and the baseline is 3. The description does add meaning for resolve (transitive resolution via the build tool, with paths and declared-vs-resolved version differences) and for offline, but it repeats what the schema already states for format, rulePacks, and resolveTimeoutMs rather than adding new semantics.

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?

The description names a concrete verb (점검/diagnose) and a concrete resource (프로젝트의 Maven/Gradle 의존성), then enumerates exactly what gets compared: the official 5.x parent-managed baselines, the full Spring Boot BOM, and the 18 RTE modules' transitive dependencies. That is far more specific than a generic 'check dependencies'. It never names fix_egovframe_dependencies or check_egovframe_sbom as the alternative, so an agent must infer the read-only vs remediation split from the naming alone.

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

Usage Guidelines2/5

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

There is no when-to-use/when-not-to-use guidance and no routing to sibling tools such as fix_egovframe_dependencies (remediation) or check_egovframe_sbom (SBOM generation), which overlap heavily with this tool's output. The only conditional language ('offline=false 일 때만 OSV', 'resolve=true 면...') describes parameter effects rather than tool selection.

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