PHPocalypse-MCP

by plapinski
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Allows running PHP tests and other tools within Docker containers as part of the development workflow.

  • Provides git clone functionality as part of the setup process.

  • Supports using Make-based commands to run code quality tools and other development tasks.

PHPocalypse-MCP

테스트와 정적 분석을 실행할 시간이 없는 바이브 개발자를 위한 MCP 서버입니다.

필수 조건

  • Node, npx, tsx가 설치되어 있어야 합니다.

방법

  • 먼저, 이 저장소를 선택한 디렉토리로 git clone
  • npm install 실행하세요
  • 다음으로, 커서 설정을 열고 다음 MCP 구성을 추가합니다.

지엑스피1

경로가 올바른지 확인하세요!

  • PHP 프로젝트에서 phpocalypse-mcp.yaml 파일을 만듭니다.

phpocalypse-mcp.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

주의사항

  • 이 MCP는 개념 증명일 뿐이며 모든 경우에 작동하지 않을 수 있습니다. 확실히 작동 하지 않는 한 가지는 대화형 CLI 입력입니다. 좋은 예로, 비대화형 모드로 실행하지 않으면 사용자에게 누락된 스니펫을 생성할지 여부를 묻는 behat이 있습니다. 명령은 실행되어 의미 있는 내용만 출력하고 나머지는 선호하는 LLM에 맡기세요.
  • 일부 큰 출력은 아직 제대로 처리되지 않습니다. 이 문제를 해결하려면 claude-3.7-sonnet 사용하거나 less를 반환하도록 명령을 수정해 보세요.
-
security - not tested
A
license - permissive license
-
quality - not tested

개발자를 위해 PHP 테스트와 정적 분석 도구를 자동으로 실행하고 커서 편집기에서 AI 도우미에게 결과를 직접 제공하는 메시지 제어 프로토콜 서버입니다.

  1. Prerequisites
    1. How to
      1. phpocalypse-mcp.yaml config
        1. Caveats

          Appeared in Searches

          ID: oo47xo8nj1