ashleyhindle / croft
MCP server for all of your Laravel projects - better AI pair programming, coming soon..
0.0.2
2025-04-05 13:53 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^10.0||^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.3||^2.0
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
README
MCP server designed specifically for Laravel developers
Artisan command helps your AI pair programmer work better.
Installation
Install the package via composer:
composer require ashleyhindle/croft --dev
Publish the config file with:
php artisan vendor:publish --tag="croft-config"
Usage
To make use of Croft you need to add it as an MCP server in your favourite tool.
The command the MCP client needs to run it ./artisan croft
Cursor (Docs)
We recommend you ship an mcp.json
file with your project in .cursor/mcp.json
{ "mcpServers": { "croft": { "command": "./artisan", "args": ["croft"] } } }
Current functionality
- Screenshot paths
- Read last X log entries
- Read & filter database structure - tables, columns, indexes, foreign keys
- List/filter routes
- List artisan commands
- List available config() keys in dot notation
- List available env() keys (without leaking secrets of course)
Support & Credits
This was developed by Ashley Hindle. If you like it, please star it, share it, and let me know!
- Bluesky
- Website https://ashleyhindle.com