An MCP server enabling automated execution of PHP project tools like static analysis, code fixing, and testing via configurable commands, streamlining development workflows without interactive CLI input.
Unlock the full potential of PHPocalypse-MCP through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
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.Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!