@customable/phpqa-mcp (2.0.0)
Installation
@customable:registry=npm install @customable/phpqa-mcp@2.0.0"@customable/phpqa-mcp": "2.0.0"About this package
🔍 phpqa-mcp
MCP Server for PHP Quality Assurance tools with comprehensive testing - PHPStan, Rector, PHP-CS-Fixer, PHPUnit.
What's New in v2.0.0
🏗️ Complete Refactor - Modular architecture with types, handlers, and tool definitions separated
✅ 33 Unit Tests - Comprehensive test coverage with Vitest
🔒 100% Type Safe - Eliminated all any types throughout the codebase
📚 Full JSDoc - Complete documentation for all public APIs
📦 MCP SDK 1.20.0 - Upgraded to latest Model Context Protocol SDK
⚡ 67% Code Reduction - index.ts streamlined from 213 → 70 lines
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 |
|---|---|
| zod | ^3.23.8 |
Development dependencies
| ID | Version |
|---|---|
| @modelcontextprotocol/sdk | ^1.20.0 |
| @types/node | ^22.0.0 |
| @vitest/coverage-v8 | ^3.2.4 |
| typescript | ^5.5.0 |
| vitest | ^3.2.4 |
Keywords
mcp
php
phpstan
rector
php-cs-fixer
phpunit
quality-assurance
mcp-server
Details
2025-10-10 13:00:10 +02:00
Assets (1)
Versions (2)
View all
npm
2
Customable Team
MIT
latest
20 KiB
phpqa-mcp-2.0.0.tgz
20 KiB