Skip to main content
Glama
Magento Spec MCP
by thanhle74

Magento Spec & Standards (SSOT & MCP Server)

このリポジトリは、Magento 2.4.8-p5 / PHP 8.3 標準に関する集中知識ライブラリ (Single Source of Truth - SSOT) であり、MCP Server Stdio が統合されています。

このリポジトリにはプロセスやタスク/機能管理は含まれていません。この MCP Server は任意の Magento プロジェクトに接続でき、そのプロジェクトの AI エージェントが技術標準を参照できるようになります。


📌 構成

  • config/ — 真実のソース:

    • constitution.md — PHP 8.3 および Magento コアの技術標準。

    • checklist.md — レビューゲートおよび完了条件の基準。

    • magento-patterns.md — 設計マップ (Plugin、Event、GraphQL、REST、管理画面...)。

    • 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 (環境変数) はオプションです。デフォルトではサーバーがリポジトリのルートディレクトリを自動的に取得します。リポジトリを別の場所に配置し、上書きしたい場合にのみ設定してください。


🛠️ MCP Tools 提供

ツール

説明

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 エージェント推奨フロー

  1. コード作成前: get_team_standards → Constitution + Checklist + Pattern index を読み込みます。

  2. 実装時: get_pattern_reference / search_standards / read_spec_file でパターンを参照します(メモリからの推測は禁止)。

  3. 完了報告前: get_review_gate → checklist.md の §12 レビューゲートを確認します。

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