Thank you for your interest in contributing to MCP HTTP Security!
-
Clone the repository:
git clone https://github.com/code-wheel/mcp-http-security.git cd mcp-http-security -
Install dependencies:
composer install
-
Run tests:
composer test
This project maintains strict code quality standards:
All code must pass PHPStan at the strictest level:
composer analyseMaintain comprehensive test coverage:
composer test:coverageWe use Infection PHP for mutation testing to ensure test quality:
composer infectionMinimum thresholds:
- MSI (Mutation Score Indicator): 80%
- Covered MSI: 90%
- Fork the repository and create a feature branch
- Write tests for any new functionality
- Ensure all checks pass:
composer ci
- Update documentation if needed
- Submit a pull request with a clear description
Follow conventional commit format:
feat:New featuresfix:Bug fixesdocs:Documentation changestest:Test additions or changesrefactor:Code refactoringchore:Build/tooling changes
Example: feat: Add Redis storage backend
Performance benchmarks help track performance regressions:
composer benchmarkThe CI pipeline tests against PHP 8.1, 8.2, 8.3, and 8.4. If you have multiple PHP versions installed locally, you can test with:
php8.1 vendor/bin/phpunit
php8.2 vendor/bin/phpunit
# etc.For security vulnerabilities, please email security@codewheel.dev instead of opening a public issue.
- Use strict types:
declare(strict_types=1); - Follow PSR-12 coding standards
- Use typed properties and return types
- Prefer readonly properties where appropriate
- Document complex logic with comments
Open an issue or reach out to the maintainers.