MCP Server for PHP Quality Assurance tools - PHPStan, PHPUnit, PHP-CS-Fixer, Rector integration with comprehensive testing and reporting
Find a file
Jonas Hanisch fddae3a977
All checks were successful
Publish Package / publish (push) Successful in 25s
Merge develop → main: Release v2.0.0
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>
2025-10-10 12:59:32 +02:00
.forgejo/workflows fix: use direct authentication token in CI workflow (v1.0.5) 2025-10-07 17:10:00 +02:00
src Complete refactor to v2.0.0 with modular architecture and comprehensive testing 2025-10-10 12:59:25 +02:00
.gitignore fix: registry configuration for scope-based installation (v1.0.1) 2025-10-07 12:34:22 +02:00
CHANGELOG.md Complete refactor to v2.0.0 with modular architecture and comprehensive testing 2025-10-10 12:59:25 +02:00
package-lock.json Complete refactor to v2.0.0 with modular architecture and comprehensive testing 2025-10-10 12:59:25 +02:00
package.json Complete refactor to v2.0.0 with modular architecture and comprehensive testing 2025-10-10 12:59:25 +02:00
README.md Complete refactor to v2.0.0 with modular architecture and comprehensive testing 2025-10-10 12:59:25 +02:00
tsconfig.json Initial implementation of phpqa-mcp 2025-10-07 10:54:08 +02:00
vitest.config.ts Complete refactor to v2.0.0 with modular architecture and comprehensive testing 2025-10-10 12:59:25 +02:00

🔍 phpqa-mcp

Version CI Status License NPM

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