Artisan command helps your AI pair programmer work better.
Install the package via composer:
composer require ashleyhindle/croft --dev
Publish the config file with:
php artisan vendor:publish --tag="croft-config"
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"]
}
}
}
- 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)
This was developed by Ashley Hindle. If you like it, please star it, share it, and let me know!
- Bluesky
- Website https://ashleyhindle.com