Logo Magento 2 Development

Magento 2 Development

Tổ chức
elgentos

An MCP server to help with Magento 2 development

Nhà phát hànhelgentos
Kho mãmagento2-dev-mcp
Ngôn ngữJavaScript
Bản fork
8
Sao
40
Công cụ có sẵn
28
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Magento 2 Development cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 28 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    40 sao và 8 bản fork từ kho mã được liên kết.

Abandoned - elgentos/magento2-dev-mcp

This project is abandoned since it mainly exposed magerun commands through an MCP. Magerun now offers an internal MCP server; just run magerun2 mcp:server:start - see magerun2 9.3.0 release notes.

A Model Context Protocol (MCP) server for Magento 2 development, designed to integrate with AI agents like Claude, Cursor, Continue.dev, and Augment Code.

Installation

Using npx

bash
npx -y @elgentos/magento2-dev-mcp

Quick Start

  1. Add to your AI agent's MCP configuration:
json
{
  "mcpServers": {
    "magento2-dev": {
      "command": "npx",
      "args": ["-y", "@elgentos/magento2-dev-mcp"]
    }
  }
}
  1. Restart your AI agent to load the MCP server

  2. Start using Magento 2 development tools through your AI agent!

See AI Platform Configuration Examples for platform-specific setup instructions.

Docker Environment Support

The server automatically detects Docker-based Magento environments and routes magerun2 commands through the container:

EnvironmentDetectionCommand prefix
WardenWARDEN_ENV_TYPE in .envwarden shell -c '...'
DDEV.ddev/ directoryddev exec ...
docker-magentobin/clinotty filebin/clinotty ...
docker-composedocker-compose.yml or compose.yamldocker compose exec -T <service> ...

For docker-compose the server tries the service names phpfpm, php-fpm, and php in order.

If Docker execution fails, the server falls back to running magerun2 locally.

Environment Variables

VariableDescriptionDefault
MAGERUN2_COMMANDOverride the magerun2 binary name or pathmagerun2

Use MAGERUN2_COMMAND when your system installs the binary under a different name (e.g. n98-magerun2) or when you need to specify an absolute path:

json
{
  "mcpServers": {
    "magento2-dev": {
      "command": "npx",
      "args": ["-y", "@elgentos/magento2-dev-mcp"],
      "env": {
        "MAGERUN2_COMMAND": "n98-magerun2"
      }
    }
  }
}

Features

DI & Module Tools

Parameters:

  • scope (optional): The scope to get DI preferences for
    • Options: global, adminhtml, frontend, crontab, webapi_rest, webapi_soap, graphql, doc, admin
    • Default: global

Available Scopes:

  • global - Global scope (default)
  • adminhtml - Admin area
  • frontend - Frontend/storefront area
  • crontab - Cron job execution context
  • webapi_rest - REST API context
  • webapi_soap - SOAP API context
  • graphql - GraphQL API context
  • doc - Documentation context
  • admin - Admin context (alternative to adminhtml)

Parameters:

  • format (optional): Output format (table, json, csv) - Default: table
  • enabled (optional): Show only enabled modules
  • disabled (optional): Show only disabled modules

Parameters:

  • format (optional): Output format (table, json, csv) - Default: table
  • event (optional): Filter by specific event name

Parameters:

  • format (optional): Output format (table, json, csv) - Default: table

Parameters:

  • vendorNamespace (required): Namespace (your company prefix)
  • moduleName (required): Name of your module
  • minimal (optional): Create only module file
  • addBlocks (optional): Add blocks
  • addHelpers (optional): Add helpers
  • addModels (optional): Add models
  • addSetup (optional): Add SQL setup
  • addAll (optional): Add blocks, helpers and models
  • enable (optional): Enable module after creation
  • modman (optional): Create all files in folder with a modman file
  • addReadme (optional): Add a readme.md file to generated module
  • addComposer (optional): Add a composer.json file to generated module
  • addStrictTypes (optional): Add strict_types declaration to generated PHP files
  • authorName (optional): Author for readme.md or composer.json
  • authorEmail (optional): Author email for readme.md or composer.json
  • description (optional): Description for readme.md or composer.json

Example Usage:

json
{
  "name": "dev-module-create",
  "arguments": {
    "vendorNamespace": "MyCompany",
    "moduleName": "CustomModule",
    "addAll": true,
    "enable": true,
    "addReadme": true,
    "addComposer": true,
    "authorName": "John Doe",
    "authorEmail": "john@example.com",
    "description": "A custom Magento 2 module"
  }
}

Analyzes di.xml files across all DI scopes to find plugins for a given class. Resolves the full class hierarchy (parent classes and interfaces) so inherited plugins are included. Returns the plugin list, sort order, and full execution order chain per scope.

Parameters:

  • className (required): Fully qualified PHP class or interface name
  • methodName (optional): Method name to inspect. Omit to scan all public methods.

Example — single method:

json
{
  "name": "dev-plugin-list",
  "arguments": {
    "className": "Magento\\Catalog\\Api\\ProductRepositoryInterface",
    "methodName": "save"
  }
}

Example — scan all methods of a class:

json
{
  "name": "dev-plugin-list",
  "arguments": {
    "className": "Magento\\Framework\\View\\LayoutInterface"
  }
}

Scopes checked: global, adminhtml, frontend, crontab, webapi_rest, webapi_soap, graphql

Docker support: Automatically detects Warden, DDEV, docker-magento, and docker-compose environments. Falls back to local PHP.

System Diagnostics

Parameters:

  • format (optional): Output format (table, json, csv) - Default: table

Parameters: None

Cache Management

Available Tools:

  • cache-clean - Clear specific or all caches
  • cache-flush - Flush specific or all caches
  • cache-enable - Enable specific cache types
  • cache-disable - Disable specific cache types
  • cache-status - Check cache status
  • cache-view - Inspect cache entries

See Cache Types Reference for details.

Configuration Management

Parameters:

  • path (optional): Configuration path to show
  • scope (optional): Configuration scope (default, website, store)
  • scopeId (optional): Scope ID (website ID or store ID)

Parameters:

  • path (required): Configuration path to set
  • value (required): Value to set
  • scope (optional): Configuration scope
  • scopeId (optional): Scope ID
  • encrypt (optional): Encrypt the value

Store-specific configuration management for getting and setting configuration values at the store level.

Database Tools

Parameters:

  • query (required): SQL query to execute
  • format (optional): Output format (table, json, csv) - Default: table

Setup & Deployment

Parameters:

  • keepGenerated (optional): Keep generated files during upgrade

Parameters: None

Parameters: None

Parameters:

  • languages (optional): Languages to deploy
  • themes (optional): Themes to deploy
  • jobs (optional): Number of parallel jobs
  • force (optional): Force deployment

Store Management

Parameters:

  • format (optional): Output format (table, json, csv) - Default: table

Parameters:

  • format (optional): Output format (table, json, csv) - Default: table

Parameters:

  • format (optional): Output format (table, json, csv) - Default: table
  • storeId (optional): Store ID to filter URLs

Parameters:

  • format (optional): Output format (table, json, csv) - Default: table

Cron Management

Parameters:

  • format (optional): Output format (table, json, csv) - Default: table

Parameters:

  • job (optional): Specific cron job to run
  • group (optional): Cron group to run

License

MIT License - see LICENSE file for details.

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

{
  "mcpServers": {
    "magento2-dev": {
      "command": "npx",
      "args": [
        "-y",
        "@elgentos/magento2-dev-mcp"
      ]
    }
  }
}

Công cụ có sẵn

  • get-di-preferences

    Get Magento 2 dependency injection preferences list using magerun2

  • cache-clean

    Clear specific Magento 2 cache types or all caches

  • cache-flush

    Flush specific Magento 2 cache types or all caches

  • cache-enable

    Enable specific Magento 2 cache types

  • cache-disable

    Disable specific Magento 2 cache types

  • cache-status

    Check the status of Magento 2 cache types

  • cache-view

    Inspect specific cache entries in Magento 2

  • dev-module-list

    List all Magento 2 modules and their status

  • dev-module-observer-list

    List all Magento 2 module observers

  • dev-module-create

    Create and register a new Magento 2 module

  • sys-info

    Get Magento 2 system information

  • sys-check

    Check Magento 2 system requirements and configuration

  • config-show

    View Magento 2 system configuration values

  • config-set

    Set Magento 2 system configuration values

  • config-store-get

    Get store-specific Magento 2 configuration values

  • config-store-set

    Set store-specific Magento 2 configuration values

  • db-query

    Execute SQL queries directly on Magento 2 database

  • setup-upgrade

    Run Magento 2 setup upgrade to update database schema and data

  • setup-di-compile

    Compile Magento 2 dependency injection configuration

  • setup-db-status

    Check Magento 2 database status to see if setup:upgrade is needed

  • setup-static-content-deploy

    Deploy Magento 2 static content and assets

  • sys-store-list

    List all Magento 2 stores, websites, and store views

  • dev-theme-list

    List all available Magento 2 themes

  • sys-store-config-base-url-list

    List all base URLs for Magento 2 stores

  • sys-cron-list

    List all Magento 2 cron jobs and their configuration

  • sys-url-list

    Get all Magento 2 URLs

  • sys-website-list

    List all Magento 2 websites

  • sys-cron-run

    Run Magento 2 cron jobs

Dùng MCP Magento 2 Development với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Magento 2 Development, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Magento 2 Development làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Magento 2 Development.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "magento-2-development": {
      "command": "npx",
      "args": [
        "-y",
        "@elgentos/magento2-dev-mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Magento 2 Development, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Magento 2 Development.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Magento 2 Development giúp tôi làm việc này không?
Magento 2 Development
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Magento 2 Development.

Câu hỏi thường gặp

Máy chủ MCP Magento 2 Development dùng để làm gì?

Magento 2 Development là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Magento 2 Development với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Magento 2 Development với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Magento 2 Development với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Magento 2 Development, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Magento 2 Development với TypingMind?

Magento 2 Development hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Magento 2 Development cung cấp những công cụ nào trong TypingMind?

Magento 2 Development cung cấp 28 công cụ MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Magento 2 Development không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Magento 2 Development yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇