Magento Spec MCP
Magento Spec & Standards (SSOT & MCP Server)
Этот репозиторий является Центральной библиотекой знаний (Single Source of Truth - SSOT) по стандартам Magento 2.4.8-p5 / PHP 8.3, со встроенным MCP Server Stdio.
Этот репозиторий не содержит процессов или управления задачами/функциями. Вы можете подключить этот MCP Server к любому проекту Magento, чтобы AI Agent в этом проекте мог обращаться к техническим стандартам.
📌 Структура
config/— Источник истины:constitution.md— Технические стандарты PHP 8.3 и Magento core.checklist.md— Критерии Review Gate & DoD.magento-patterns.md— Карта проектирования (Plugin, Event, GraphQL, REST, Admin...).references/— Подробные примеры кода для каждого компонента.glossary.md— Терминология Magento core.
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.jsCursor (~/.cursor/mcp.json), Antigravity (~/.gemini/antigravity/mcp_config.json) и другие клиенты:
{
"mcpServers": {
"magento-spec": {
"command": "node",
"args": ["/path/to/spec/src/index.js"]
}
}
}
SPEC_ROOT(env) является опциональным — по умолчанию сервер автоматически определяет корневую папку репозитория. Устанавливайте только если репозиторий находится в другом месте и вы хотите переопределить.
🛠️ MCP Tools, предоставляемые AI
Tool | Описание |
| Быстрая загрузка Constitution, Checklist и Pattern index. |
| Получение деталей шаблона кода по имени (например: |
| Поиск стандартов/правил/blueprint по ключевым словам в |
| Загрузка чеклиста проверки качества кода перед завершением. |
| Чтение любого файла документации в репозитории ( |
🔄 Рекомендуемый процесс для AI Agent
Перед кодом:
get_team_standards→ загрузка Constitution + Checklist + Pattern index.При реализации:
get_pattern_reference/search_standards/read_spec_fileдля поиска шаблона — не угадывать из памяти.Перед сообщением о завершении:
get_review_gate→ раздел §12 Review Gate вchecklist.md.
Available Tools
5 toolsget_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
Scored across 5 tools
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.
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.
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.
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
Related MCP Connectors
Compliance frameworks (SOC 2, ISO 27001, CMMC, NIST, more) delivered to AI agents as MCP tools.
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
AI-security knowledge as MCP: standards-mapped tools (OWASP, NIST, MITRE) for AI agents.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides 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.716MIT
- AlicenseAqualityBmaintenanceTechnology-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.47494 npm20MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that provides a searchable knowledge base of internal development standards, enabling AI coding agents to consistently reference and comply with them.-
- AlicenseNot gradedqualityCmaintenanceEnables 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