EM

elgentos/magento2-dev-mcp

开发工具
40 stars 0 forks 质量 90 趋势 90

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.

概览

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.

README

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

npx -y @elgentos/magento2-dev-mcp

Quick Start

  1. Add to your AI agent’s MCP configuration:
{
  "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:

Environment Detection Command prefix
Warden WARDEN_ENV_TYPE in .env warden shell -c '...'
DDEV .ddev/ directory ddev exec ...
docker-magento bin/clinotty file bin/clinotty ...
docker-compose docker-compose.yml or compose.yaml docker compose exec -T ...

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

Variable Description Default
MAGERUN2_COMMAND Override the magerun2 binary name or path magerun2

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:

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

Features

DI & Module Tools

System Diagnostics

Cache Management

Configuration Management

Database Tools

Setup & Deployment

Store Management

Cron Management

License

MIT License - see LICENSE file for details.

View this README on GitHub

安装

npx -y @elgentos/magento2-dev-mcp

配置

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