@customable/phpqa-mcp (1.0.5)

Published 2025-10-07 17:11:50 +02:00 by jack in customable-mcp/phpqa-mcp

Installation

@customable:registry=
npm install @customable/phpqa-mcp@1.0.5
"@customable/phpqa-mcp": "1.0.5"

About this package

🔍 phpqa-mcp

MCP Server for PHP Quality Assurance tools - PHPStan, Rector, PHP-CS-Fixer, PHPUnit.

Features

PHPStan Analysis

  • 🔍 run_phpstan - Run static code analysis
  • 📊 Parse and format PHPStan results
  • Support for all PHPStan levels (0-9)
  • Baseline support

PHPUnit Testing

  • run_phpunit - Execute unit tests
  • 📈 Code coverage reports
  • Test result parsing
  • Filter by test suite

PHP-CS-Fixer

  • 🎨 run_php_cs_fixer - Check/fix code style
  • Dry-run mode
  • Custom rule sets
  • Diff output

Rector Refactoring

  • 🔄 run_rector - Automated code modernization
  • Dry-run mode
  • Set-based refactoring
  • Diff preview

Reporting

  • 📊 Generate CI-friendly reports
  • JSON output support
  • Issue comments for CI/CD integration

Installation

npm install
npm run build

Requirements

PHP tools should be installed in your project:

composer require --dev phpstan/phpstan
composer require --dev phpunit/phpunit
composer require --dev friendsofphp/php-cs-fixer
composer require --dev rector/rector

Configuration

Set environment variables:

  • PHP_BINARY - Path to PHP binary (default: php)
  • PROJECT_ROOT - Project root directory

Usage

npm start

License

MIT

Dependencies

Dependencies

ID Version
@modelcontextprotocol/sdk ^0.5.0
zod ^3.23.8

Development dependencies

ID Version
@types/node ^22.0.0
typescript ^5.5.0

Keywords

mcp php phpstan rector php-cs-fixer phpunit quality-assurance mcp-server
Details
npm
2025-10-07 17:11:50 +02:00
1
Customable Team
MIT
12 KiB
Assets (1)
Versions (2) View all
2.0.0 2025-10-10
1.0.5 2025-10-07