MCP Server for PHP Quality Assurance tools - PHPStan, PHPUnit, PHP-CS-Fixer, Rector integration with comprehensive testing and reporting
|
All checks were successful
Publish Package / publish (push) Successful in 25s
Complete refactor with comprehensive improvements: ✨ New Features: - Modular architecture (types, handlers, tool-definitions) - 100% TypeScript type safety - Comprehensive test coverage (33 tests) 🏗️ Architecture: - Modular structure (types, handlers, tool-definitions, service) - 100% TypeScript type safety - Complete JSDoc documentation - index.ts: 213 → 70 lines (67% reduction) 🧪 Testing: - 33 comprehensive unit tests - Full test coverage with Vitest - Code coverage reporting 📦 Dependencies: - MCP SDK upgraded to 1.20.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| src | ||
| .gitignore | ||
| CHANGELOG.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vitest.config.ts | ||
🔍 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