Skip to main content
Glama
Magento Spec MCP
by thanhle74

Magento 사양 및 표준 (SSOT 및 MCP 서버)

이 저장소는 Magento 2.4.8-p5 / PHP 8.3 표준에 대한 **중앙 지식 라이브러리(Single Source of Truth - SSOT)**이며, MCP Server Stdio가 내장되어 있습니다.

이 저장소는 프로세스나 작업/기능 관리를 포함하지 않습니다. 이 MCP Server를 모든 Magento 프로젝트에 연결하여 해당 프로젝트의 AI Agent가 기술 표준을 참조할 수 있습니다.


📌 구조

  • config/ — 진실의 원천:

    • constitution.md — PHP 8.3 및 Magento 코어 기술 표준.

    • checklist.md — Review Gate 및 DoD 기준.

    • magento-patterns.md — 설계 맵(Plugin, Event, GraphQL, REST, Admin...).

    • references/ — 각 구성 요소에 대한 상세 코드 예제 가이드.

    • glossary.md — Magento 코어 용어.

  • examples/ — 주제별 샘플 코드 청사진(examples/INDEX.md에서 선택).

  • src/index.js — MCP Server (stdio).


Related MCP server: Magector

⚡ MCP Server 연결 구성

Claude Code (모든 프로젝트에서 사용할 수 있도록 user 범위 권장):

claude mcp add magento-spec -s user -- node /path/to/spec/src/index.js

Cursor (~/.cursor/mcp.json), Antigravity (~/.gemini/antigravity/mcp_config.json) 및 기타 클라이언트:

{
  "mcpServers": {
    "magento-spec": {
      "command": "node",
      "args": ["/path/to/spec/src/index.js"]
    }
  }
}

SPEC_ROOT (env)는 선택 사항입니다. 기본적으로 서버는 저장소의 루트 디렉토리를 자동으로 가져옵니다. 저장소를 다른 위치에 배치하고 재정의하려는 경우에만 설정하세요.


🛠️ AI에 제공되는 MCP 도구

도구

설명

get_team_standards

Constitution, Checklist 및 Pattern index를 빠르게 로드합니다.

get_pattern_reference

이름으로 코드 패턴 세부 정보를 가져옵니다(예: core/plugin-patterns.md). 경로를 전달하지 않으면 모든 참조를 나열합니다.

search_standards

config/ + examples/에서 키워드로 표준/규칙/청사진을 검색합니다.

get_review_gate

완료 전 코드 품질 검사 체크리스트를 로드합니다.

read_spec_file

저장소 내의 모든 문서 파일을 읽습니다(config/, examples/, ...).


🔄 AI Agent 권장 프로세스

  1. 코드 작성 전: get_team_standards → Constitution + Checklist + Pattern index를 로드합니다.

  2. 구현 시: get_pattern_reference / search_standards / read_spec_file을 사용하여 패턴을 조회합니다. 메모리에서 추측하지 마십시오.

  3. 완료 보고 전: get_review_gate → checklist.md의 §12 Review Gate를 통과합니다.

Available Tools

5 tools
get_pattern_referenceA

Get specific Magento pattern reference doc from config/references/ (e.g. core/plugin-patterns.md, core/declarative-schema.md). Call without path to list all available references.

Inputs: path.

get_review_gateA

Load code review gate checklist and DoD criteria for Magento code before marking done.

Inputs: no named parameters.

get_team_standardsA

Load Magento 2.4.8-p5 / PHP 8.3 team standards, constitution, checklist, and pattern index (Single Source of Truth - SSOT).

Inputs: no named parameters.

read_spec_fileA

Read any markdown documentation file in this spec repository — config/, examples/, README.md, etc.

Inputs: path (required).

search_standardsA

Search for Magento standards, rules, patterns, and example blueprints by keyword (scans config/ and examples/).

Inputs: query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 5 tools

    Disambiguation4/5

    The tools are mostly distinct: get_team_standards, get_review_gate, get_pattern_reference, search_standards, and read_spec_file each target different types of content. However, get_team_standards and get_review_gate could be confused as both relate to standards/checklists, and read_spec_file overlaps with get_pattern_reference since pattern references are spec files.

    Naming Consistency4/5

    Tool names follow a consistent verb_noun pattern with 'get_' and 'search_' prefixes, and all use snake_case. The mix of 'get_' (4 tools) and 'search_' (1 tool) is slightly unbalanced but still predictable.

    Tool Count5/5

    With 5 tools, the server is well-scoped for its purpose of providing Magento documentation access. Each tool serves a distinct retrieval function without unnecessary duplication.

    Completeness3/5

    The tool set covers core retrieval operations (load standards, search, read files) but lacks any write or update capabilities. Since the server seems focused on reading spec content, this may be intentional, but the absence of logging or progress-tracking tools is a minor gap.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides AI assistants with comprehensive Magento 2 coding standards, security rules, and theme-specific guidelines to ensure generated code is compliant. It enables real-time code validation, pattern lookup, and security auditing tailored to different Magento frontend stacks.
      7
      16
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Technology-aware MCP server for Magento 2 and Adobe Commerce with intelligent indexing and search, enabling AI assistants to search, navigate, and understand codebases via semantic search and domain-specific pattern detection.
      47
      494 npm
      20
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to manage Magento 2 / Adobe Commerce products, stock, orders, and customers through 12 read/write MCP tools with secure, audited access.
      AGPL 3.0