PHPocalypse-MCP logo

PHPocalypse-MCP

by plapinski

PHPocalypse-MCP is an MCP server designed for busy PHP developers. It automates tests and static analysis, allowing developers to focus on coding.

View on GitHub

Last updated: N/A

What is PHPocalypse-MCP?

PHPocalypse-MCP is a Meta-Control-Plane (MCP) server that automates running tests and static analysis tools for PHP projects. It's designed to streamline the development workflow by providing a centralized way to execute various checks and analyses.

How to use PHPocalypse-MCP?

  1. Clone the repository. 2. Run npm install. 3. Configure Cursor's MCP settings with the provided JSON snippet, adjusting the paths to match your local setup. 4. Create a phpocalypse-mcp.yaml file in your PHP project to define the tools and commands to run.

Key features of PHPocalypse-MCP

  • Automated testing

  • Automated static analysis

  • Centralized configuration

  • Support for various tools (php-cs-fixer, phpstan, phpunit, behat)

  • YAML configuration

Use cases of PHPocalypse-MCP

  • Automating code style checks

  • Performing static analysis to identify potential bugs

  • Running unit tests

  • Executing behavior-driven development (BDD) tests

  • Integrating with Cursor IDE

FAQ from PHPocalypse-MCP

What are the prerequisites for using PHPocalypse-MCP?

You need to have Node.js, npx, and tsx installed.

How do I configure the MCP server in Cursor?

Add the provided JSON snippet to your Cursor settings, ensuring the paths are correct.

What is the purpose of the phpocalypse-mcp.yaml file?

This file defines the tools and commands that the MCP server will execute.

Are there any limitations to using PHPocalypse-MCP?

It may not work in every case, especially with interactive CLI inputs. Also, large outputs might not be handled correctly.

What can I do if I encounter issues with large outputs?

Try using the claude-3.7-sonnet model or craft your commands to return less output.