Magento Spec MCP
Provides AI agents with Magento 2.4.8-p5 / PHP 8.3 technical standards, patterns, and review checklists via MCP tools, enabling them to reference the single source of truth when working on Magento projects.
README
Magento Spec & Standards (SSOT & MCP Server)
Repo này là Thư viện tri thức trung tâm (Single Source of Truth - SSOT) về chuẩn Magento 2.4.8-p5 / PHP 8.3, tích hợp sẵn MCP Server Stdio.
Repo này không chứa quy trình hay quản lý task/feature. Bạn có thể kết nối MCP Server này vào bất kỳ dự án Magento nào để AI Agent ở dự án đó tham chiếu chuẩn kỹ thuật.
📌 Cấu trúc
config/— Nguồn sự thật:constitution.md— Chuẩn kỹ thuật PHP 8.3 & Magento core.checklist.md— Tiêu chí Review Gate & DoD.magento-patterns.md— Bản đồ thiết kế (Plugin, Event, GraphQL, REST, Admin...).references/— Hướng dẫn mẫu code chi tiết cho từng component.glossary.md— Thuật ngữ Magento core.
examples/— Blueprint mã mẫu theo chủ đề (vàoexamples/INDEX.mdđể chọn).src/index.js— MCP Server (stdio).
⚡ Cấu hình kết nối MCP Server
Claude Code (khuyến nghị scope user để available ở mọi project):
claude mcp add magento-spec -s user -- node /path/to/spec/src/index.js
Cursor (~/.cursor/mcp.json), Antigravity (~/.gemini/antigravity/mcp_config.json) và các client khác:
{
"mcpServers": {
"magento-spec": {
"command": "node",
"args": ["/path/to/spec/src/index.js"]
}
}
}
SPEC_ROOT(env) là tùy chọn — mặc định server tự lấy thư mục gốc của repo. Chỉ set khi bạn đặt repo ở nơi khác và muốn ghi đè.
🛠️ MCP Tools cung cấp cho AI
| Tool | Mô tả |
|---|---|
get_team_standards |
Nạp nhanh Constitution, Checklist & Pattern index. |
get_pattern_reference |
Lấy chi tiết mẫu code theo tên (VD: core/plugin-patterns.md). Không truyền path → list tất cả references. |
search_standards |
Tìm kiếm chuẩn/quy tắc/blueprint theo từ khóa trong config/ + examples/. |
get_review_gate |
Nạp checklist kiểm tra chất lượng code trước khi hoàn thành. |
read_spec_file |
Đọc bất kỳ file tài liệu nào trong repo (config/, examples/, ...). |
🔄 Quy trình khuyến nghị cho AI Agent
- Trước code:
get_team_standards→ nạp Constitution + Checklist + Pattern index. - Khi implement:
get_pattern_reference/search_standards/read_spec_fileđể tra cứu pattern — không đoán từ memory. - Trước khi báo done:
get_review_gate→ qua §12 Review Gate trongchecklist.md.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.