PHPocalypse
STDIOMCP server for PHP developers to run tests and static analysis automatically.
MCP server for PHP developers to run tests and static analysis automatically.
MCP server for vibe developers that are too busy to run tests and static analysis.
git clone this repo to chosen directorynpm install{ "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!
phpocalypse-mcp.yaml filephpocalypse-mcp.yaml configThe structure is straightforward. Define the tools by giving them a name and a command to run.
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
claude-3.7-sonnet or craft your commands to return less.