plapinski_phpocalypse_mcp

plapinski_phpocalypse_mcp

by plapinski
An MCP server designed to streamline development workflows by automating tests and static analysis for busy developers.

PHPocalypse MCP Server for Developers

Overview

The PHPocalypse MCP Server is designed for developers who are too busy to manually run tests and static analysis. It provides a streamlined way to automate these tasks, allowing developers to focus on writing code rather than managing repetitive processes.

Prerequisites

Before you can use the PHPocalypse MCP Server, ensure you have the following installed:
- Node.js
- npx
- tsx

Installation

  1. Clone the repository to your chosen directory:
    bash git clone https://github.com/plapinski/PHPocalypse-MCP.git
  2. Install the necessary dependencies:
    bash npm install

Configuration

To configure the MCP server, follow these steps:

  1. Open your Cursor settings and add the following MCP configuration:
    json { "mcpServers": { "phpocalypse-mcp": { "command": "npx", "args": ["tsx", "/Absolute/Path/To/PHPocalypse-MCP/src/index.ts", "--config", "/Absolute/Path/To/Your/PHP/Based/Project/phpocalypse-mcp.yaml"] } } }
    Make sure the paths are correct!

  2. In your PHP project, create a phpocalypse-mcp.yaml file with the following structure:
    ```yaml
    tools:

    • name: php-cs-fixer
      command: make php-cs

    • name: php-stan
      command: /vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=-1

    • name: tests-unit
      command: docker compose run --rm php ./vendor/bin/phpunit --testsuite=Unit

    • name: tests-behat
      command: task behat -- --no-interaction
      ```

Usage

Once configured, the PHPocalypse MCP Server will automatically run the defined tools and commands in your PHP project. This allows you to automate tasks like code formatting, static analysis, and unit testing without manual intervention.

Caveats

  • Interactive CLI Input: This MCP server does not support interactive CLI input. Ensure your commands run non-interactively and output meaningful results.
  • Handling Large Outputs: Some larger outputs may not be handled correctly. To mitigate this, use claude-3.7-sonnet or craft your commands to return less output.

About

The PHPocalypse MCP Server is a proof-of-concept tool aimed at simplifying the development process by automating repetitive tasks. It is particularly useful for developers who want to focus on coding rather than managing tests and static analysis.

Resources

License

This project is licensed under the MIT License.

Stars

1 star

Watchers

2 watching

Forks

1 fork

Languages

Features & Capabilities

Categories
mcp_server model_context_protocol typescript nodejs php automation testing static_analysis yaml

Implementation Details

Stats

0 Views
0 Favorites
1 GitHub Stars

Repository Info

plapinski Organization

Similar Servers

continuedev_continue by continuedev
0
0
0