npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

warp-magento-mcp-server

v1.0.0

Published

MCP Server for Warp Engine + Magento 2 development workflow

Downloads

157

Readme

Warp Magento MCP Server

A Model Context Protocol (MCP) server that integrates AI assistants with Warp Engine + Magento 2 Docker development environments. This server enables AI assistants to interact directly with your Warp-managed Magento projects, running CLI commands, database queries, and managing containers.

Features

  • Environment Management: Start/stop projects (warp start / warp stop)
  • Environment Info: List running containers and service configuration (warp ps, warp info)
  • Database Operations: Execute SQL queries in the project database
  • PHP Scripts: Run PHP scripts inside the container
  • Magento CLI: Execute bin/magento commands
  • Unit Testing: Run PHPUnit tests inside the container
  • Composer: Manage dependencies
  • Project Init: Initialize a Warp project non-interactively

Prerequisites

  • Warp Engine: Each project must have the ./warp script at its root
  • Docker: Required for Warp Engine to function
  • Node.js: Version 18.0.0 or higher

Installation

npm install -g warp-magento-mcp-server

Or use directly with npx (no install needed):

npx warp-magento-mcp-server

Configuration

For Warp (Recommended)

Create or update ~/.warp/.mcp.json:

{
  "mcpServers": {
    "warp-magento": {
      "command": "npx",
      "args": ["warp-magento-mcp-server"]
    }
  }
}

Warp will auto-spawn the server on startup. You can manage it from Settings → Agents → MCP servers.

Alternatively, use the built-in /agent-add-mcp slash command inside Warp to let the agent configure it for you.

Using a local clone instead of npx

If you prefer to run from source:

{
  "mcpServers": {
    "warp-magento": {
      "command": "node",
      "args": ["/absolute/path/to/warp-mcp-server/server.js"],
      "working_directory": "/absolute/path/to/warp-mcp-server"
    }
  }
}

For Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "warp-magento": {
      "command": "npx",
      "args": ["warp-magento-mcp-server"]
    }
  }
}

Available Tools

warp_list_environments

Lists container status and service info for a Warp project (warp ps + warp info).

Parameters:

  • project_path (required): Path to the project directory

warp_start_project

Starts the project environment (warp start).

Parameters:

  • project_path (required): Path to the project directory

warp_stop_project

Stops the project environment (warp stop).

Parameters:

  • project_path (required): Path to the project directory

warp_info

Shows configured values for all services — PHP, MySQL, Redis, Nginx, etc. (warp info).

Parameters:

  • project_path (required): Path to the project directory

warp_db_query

Executes a SQL query in the project database via docker-compose exec.

Parameters:

  • project_path (required): Path to the project directory
  • query (required): SQL query to execute
  • database (optional): Database name (defaults to DATABASE_NAME from project .env)

warp_php_script

Runs a PHP script inside the container.

Parameters:

  • project_path (required): Path to the project directory
  • script_path (required): Path to the PHP script relative to project root
  • args (optional): Additional arguments to pass to the script

warp_magento_cli

Executes a bin/magento command inside the container (warp magento -T <command>).

Parameters:

  • project_path (required): Path to the project directory
  • command (required): Magento CLI command (without bin/magento prefix)
  • args (optional): Additional arguments

Examples: cache:clean, setup:upgrade, indexer:reindex


warp_run_unit_tests

Runs PHPUnit tests inside the container.

Parameters:

  • project_path (required): Path to the project directory
  • config_file (optional): PHPUnit config file (auto-detects phpunit.xml.dist or phpunit.xml)
  • test_path (optional): Path to specific test file or directory
  • extra_args (optional): Additional PHPUnit arguments

warp_composer

Runs a Composer command inside the container (warp composer -T <command>).

Parameters:

  • project_path (required): Path to the project directory
  • command (required): Composer command (e.g., install, update, require vendor/package)

warp_init_project

Initializes the Warp project without the interactive wizard (warp init --no-interaction).

Parameters:

  • project_path (required): Path to the project directory containing the ./warp script

Troubleshooting

  • Each project must have a ./warp script at its root — this is the Warp Engine entry point
  • The MCP server runs commands by executing bash ./warp <subcommand> from the project directory
  • Check MCP server logs in Warp: Settings → Agents → MCP servers → View Logs

License

MIT