rolldev-mcp-server

v1.2.0
@disrex/rolldev-mcp-server Checked 2 hours ago Published 1 month ago

MCP 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

ParameterTypeDescription
project_path *stringPath to the project directory

rolldev_stop_project

Stop a RollDev project environment

ParameterTypeDescription
project_path *stringPath to the project directory

rolldev_start_svc

Start RollDev system services

ParameterTypeDescription
project_path *stringPath to the project directory

rolldev_stop_svc

Stop RollDev system services

ParameterTypeDescription
project_path *stringPath to the project directory

rolldev_db_query

Run a SQL query in the RollDev database

ParameterTypeDescription
project_path *stringPath to the project directory
query *stringSQL query to execute
databasestringDatabase name (optional, defaults to magento)

rolldev_php_script

Run a PHP script inside the php-fpm container

ParameterTypeDescription
project_path *stringPath to the project directory
script_path *stringPath to the PHP script relative to project root
argsarrayAdditional arguments to pass to the script

rolldev_magento_cli

Run roll magento command inside the php-fpm container

ParameterTypeDescription
command *stringMagento CLI command (without 'bin/magento' prefix)
project_path *stringPath to the project directory
argsarrayAdditional arguments for the command
save_output_to_filebooleanSave full output to a log file for later investigation (useful for long output)

rolldev_composer

Run Composer commands inside the php-fpm container

ParameterTypeDescription
command *stringComposer command to execute (e.g., 'install', 'update', 'require symfony/console', 'require-commerce')
project_path *stringPath to the project directory
save_output_to_filebooleanSave 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

ParameterTypeDescription
project_name *stringName of the Magento 2 project (lowercase letters, numbers, and hyphens only)
magento_versionstringMagento version to install (default: 2.4.x). Examples: 2.4.x, 2.4.7, 2.4.7-p3, 2.4.8
target_directorystringDirectory 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.

ParameterTypeDescription
project_path *stringPath to the project directory (holds .env.roll)
save_output_to_filebooleanSave 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.

ParameterTypeDescription
project_path *stringPath to the project directory (holds .env.roll)
limitnumberMaximum number of traces (default 20)
min_msnumberOnly traces slower than this many milliseconds
routestringOnly this route, e.g. catalog/category/view
save_output_to_filebooleanSave the full output to a log file and return a preview (optional, default: false)
sortstringslowest (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.

ParameterTypeDescription
id *stringTrace id from rolldev_inspector_traces
project_path *stringPath to the project directory (holds .env.roll)
include_spansbooleanAlso return the raw spans, capped at 200 by self time (default: false)
save_output_to_filebooleanSave 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.

ParameterTypeDescription
project_path *stringPath to the project directory (holds .env.roll)
limitnumberRows per section (optional)
save_output_to_filebooleanSave 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.

ParameterTypeDescription
project_path *stringPath to the project directory (holds .env.roll)
limitnumberNumber of matching entries, newest first (default 1)
save_output_to_filebooleanSave the full output to a log file and return a preview (optional, default: false)
urlstringFull URL or a part of it, e.g. /category-1.html
xidstringVarnish 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.

ParameterTypeDescription
kind *stringvarnish, redis, search or rabbitmq
project_path *stringPath to the project directory (holds .env.roll)
save_output_to_filebooleanSave the full output to a log file and return a preview (optional, default: false)
sectionstringDefault: health