rolldev-mcp-server
v1.2.0MCP Server for RollDev + Magento 2 development workflow with project initialization
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
rolldev_list_environments
List all running RollDev environments with their directories (returns structured JSON)
rolldev_start_project
Start a RollDev project environment
| Parameter | Type | Description |
|---|---|---|
project_path * | string | Path to the project directory |
rolldev_stop_project
Stop a RollDev project environment
| Parameter | Type | Description |
|---|---|---|
project_path * | string | Path to the project directory |
rolldev_start_svc
Start RollDev system services
| Parameter | Type | Description |
|---|---|---|
project_path * | string | Path to the project directory |
rolldev_stop_svc
Stop RollDev system services
| Parameter | Type | Description |
|---|---|---|
project_path * | string | Path to the project directory |
rolldev_db_query
Run a SQL query in the RollDev database
| Parameter | Type | Description |
|---|---|---|
project_path * | string | Path to the project directory |
query * | string | SQL query to execute |
database | string | Database name (optional, defaults to magento) |
rolldev_php_script
Run a PHP script inside the php-fpm container
| Parameter | Type | Description |
|---|---|---|
project_path * | string | Path to the project directory |
script_path * | string | Path to the PHP script relative to project root |
args | array | Additional arguments to pass to the script |
rolldev_magento_cli
Run roll magento command inside the php-fpm container
| Parameter | Type | Description |
|---|---|---|
command * | string | Magento CLI command (without 'bin/magento' prefix) |
project_path * | string | Path to the project directory |
args | array | Additional arguments for the command |
save_output_to_file | boolean | Save full output to a log file for later investigation (useful for long output) |
rolldev_composer
Run Composer commands inside the php-fpm container
| Parameter | Type | Description |
|---|---|---|
command * | string | Composer command to execute (e.g., 'install', 'update', 'require symfony/console', 'require-commerce') |
project_path * | string | Path to the project directory |
save_output_to_file | boolean | Save full output to a log file for later investigation (useful for long output) |
rolldev_magento2_init
Initialize a new Magento 2 project using RollDev's magento2-init command with automatic version configuration
| Parameter | Type | Description |
|---|---|---|
project_name * | string | Name of the Magento 2 project (lowercase letters, numbers, and hyphens only) |
magento_version | string | Magento version to install (default: 2.4.x). Examples: 2.4.x, 2.4.7, 2.4.7-p3, 2.4.8 |
target_directory | string | Directory to create project in (optional, defaults to current directory). Project will be created in a subdirectory named after the project. |
rolldev_inspector_overview
Roll Inspector overview: service health, warnings and their copyable fixes. Read-only: never changes the environment.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | Path to the project directory (holds .env.roll) |
save_output_to_file | boolean | Save the full output to a log file and return a preview (optional, default: false) |
rolldev_inspector_traces
List recent PHP traces (one line each, with the cost split per category). Read-only: never changes the environment.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | Path to the project directory (holds .env.roll) |
limit | number | Maximum number of traces (default 20) |
min_ms | number | Only traces slower than this many milliseconds |
route | string | Only this route, e.g. catalog/category/view |
save_output_to_file | boolean | Save the full output to a log file and return a preview (optional, default: false) |
sort | string | slowest (default) or recent |
rolldev_inspector_trace
Bottleneck analysis of one trace: cost per category, hot spans, repeated (N+1) calls and the slowest calls, as compact text plus JSON. Raw spans only with include_spans (top 200 by self time). Read-only: never changes the environment.
| Parameter | Type | Description |
|---|---|---|
id * | string | Trace id from rolldev_inspector_traces |
project_path * | string | Path to the project directory (holds .env.roll) |
include_spans | boolean | Also return the raw spans, capped at 200 by self time (default: false) |
save_output_to_file | boolean | Save the full output to a log file and return a preview (optional, default: false) |
rolldev_inspector_hotspots
Hotspots across all stored traces: slowest routes, most expensive operations and repeated calls. Read-only: never changes the environment.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | Path to the project directory (holds .env.roll) |
limit | number | Rows per section (optional) |
save_output_to_file | boolean | Save the full output to a log file and return a preview (optional, default: false) |
rolldev_inspector_request
Timeline entry for a URL: Varnish result and why it missed, plus the lanes (PHP, cache, search, queue). Read-only: never changes the environment.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | Path to the project directory (holds .env.roll) |
limit | number | Number of matching entries, newest first (default 1) |
save_output_to_file | boolean | Save the full output to a log file and return a preview (optional, default: false) |
url | string | Full URL or a part of it, e.g. /category-1.html |
xid | string | Varnish transaction id (X-Varnish) for an exact match |
rolldev_inspector_service
Health or info of one Inspector service adapter. Read-only: never changes the environment.
| Parameter | Type | Description |
|---|---|---|
kind * | string | varnish, redis, search or rabbitmq |
project_path * | string | Path to the project directory (holds .env.roll) |
save_output_to_file | boolean | Save the full output to a log file and return a preview (optional, default: false) |
section | string | Default: health |