stolt / lean-package-validator-mcp
A MCP server exposing lean-package-validator commands as tools.
Package info
github.com/raphaelstolt/lean-package-validator-mcp
pkg:composer/stolt/lean-package-validator-mcp
Requires
- php: >=8.2
- php-mcp/server: ^3.3
- stolt/lean-package-validator: ^6.0
- symfony/process: ^8.1
Requires (Dev)
- carthage-software/mago: ^1.48.1
- phpunit/phpunit: ^13.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A framework-agnostic Model Context Protocol (MCP) server for the lean-package-validator.
This package exposes tools to manage and validate .gitattributes files and Git archives, helping to maintain
small package distributions.
Available tools
The MCP server exposes the following tools:
lean_package_validator_mcp: Run arbitrarylean-package-validatorcommands.generate_gitattributes: Create a new.gitattributesfile for a project/micro-package repository.update_gitattributes: Update an existing.gitattributesfile for a project/micro-package repository.validate_package_archive: Validate the.gitattributesfile of a given project/micro-package repository, including Git archive validation against HEAD.
Installation
You can install this package via Composer:
composer require --dev stolt/lean-package-validator-mcp
Setup in MCP clients
Add the server to your MCP client configuration (e.g., Cursor, Claude Desktop):
{
"mcpServers": {
"lean-package-validator": {
"command": "php",
"args": ["/path/to/lean-package-validator-mcp/bin/server.php"]
}
}
}
Contributing
If you're considering contributing to this project, have a look at this repository's CONTRIBUTING.md for more advice.
License
This project is licensed under the MIT license. Please see LICENSE.md for more details.