Skip to main content
Glama
egovframe-scaffold-mcp

egovframe-scaffold-mcp

by EricSeokgon

접근 통제 점검(URL 권한 표)

check_egovframe_access
Read-onlyIdempotent

Statically detects missing access-control checks in eGovFrame controller handlers, reports suspicious gaps with evidence, and outputs a URL permission table for audit.

Instructions

접근 통제 누락을 정적으로 찾습니다(읽기 전용, 고치지 않음). 컨트롤러 핸들러마다 URL·HTTP 메서드·하는 일(서비스 호출·메서드 이름으로 등록/조회/수정/삭제)·검증 수준(없음 < 로그인 < 역할 < 소유권 — EgovUserDetailsHelper·EgovAuthorizationHelper·@PreAuthorize/@Secured·등록자 비교의 호출 사전)을 URL 권한 표로 내고(format=csv 는 감리 제출용), 전역 보호(Spring Security URL 규칙·인증 인터셉터·표준프레임워크 보호자원)를 읽은 뒤, 누락 의심을 근거와 함께 보고합니다: 검증이 전혀 없는 변경 핸들러, 같은 컨트롤러의 형제 핸들러보다 낮은 검증, 로그인만 확인하고 등록자와 비교하지 않는 수정·삭제(CWE-639), 형제보다 낮은 상세 조회. 예외 파일 .egovframe-access-ignore.json. 호출 이름 기반 휴리스틱이라 서비스·AOP·필터의 검증과 DB 의 역할–URL 데이터는 보이지 않습니다.

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_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNNoMarkdown 에 보일 누락 의심 수(URL 표는 3배)
formatNo응답 형식(csv = URL 권한 표)markdown
rulePacksNo기관 규칙 팩 디렉터리(access 절: 검증 호출 사전·소유자 필드·공개 경로). 없으면 환경 변수 EGOVFRAME_RULE_PACKS
projectDirYes프로젝트 디렉터리(절대경로 권장)

Output Schema

NameRequiredDescriptionDefault
notesYes
globalYes
summaryYes
findingsYes
handlersYes
rulePacksNo
durationMsYes
ignoreFileYes
projectDirYes
rulesVersionYes
invalidIgnoresYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.24.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the verification-level ordering (none < login < role < ownership), the specific helper annotations it reads (EgovUserDetailsHelper, EgovAuthorizationHelper, @PreAuthorize/@Secured, registrant comparison), global protections inspected, and the .egovframe-access-ignore.json exception mechanism. It also states the honest limitation that the check is call-name heuristic and cannot see service/AOP/filter validation or DB role–URL data.

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?

It is a single dense paragraph with zero filler and a front-loaded statement of what the tool does. The enumeration of verification sources and finding types is long and slightly run-on, but every clause carries information an agent needs.

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 static analysis tool with a rich input schema and an output schema, the description covers scope, output shape, configuration sources, exceptions, and blind spots. 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 the baseline is 3, but the description adds real meaning by tying format=csv to audit submission and by framing rulePacks as supplying verification-call dictionaries and owner fields. topN is left to the schema.

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 opens with a specific verb and scope: a static, read-only search for missing access-control checks, delivered as a URL permission table. It also states what is produced per controller handler (URL, HTTP method, inferred action, verification level) and what defects are reported, which distinguishes it clearly from sibling scanning or generation tools.

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 makes clear this is a non-fixing inspection ("읽기 전용, 고치지 않음") and gives an explicit selection hint that format=csv is for audit submission. It also names the ignore file to use for exceptions. It stops short of naming an alternative tool to apply fixes, so the routing is implied rather than explicit.

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