PHP自动化测试助手
STDIO用于运行测试和静态分析的MCP服务器
用于运行测试和静态分析的MCP服务器
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.