- PHP >= 8.2
- Laravel >= 12.x
- Laravel Boost >= 2.0
- Copilot CLI >= 0.0.343
- laravel-boost-phpstorm-copilot Laravel Boost for PhpStorm with Copilot plugin
- laravel-copilot-sdk Copilot SDK for Laravel
- macOS
- WSL
- Native Windows can also be installed, but WSL is still recommended.
- Linux
It also supports Laravel Sail. Before use, start it with vendor/bin/sail up -d. The copilot command runs outside of Sail.
composer require revolution/laravel-boost-copilot-cli --devWhen you run the Laravel Boost installation command within your Laravel project, you'll see a GitHub Copilot CLI item added to the list.
- First, you will see
Which Boost features would you like to configure?. The files will be installed depending on the features you select.AI Guidelines:.github/instructions/laravel-boost.instructions.mdAgent Skills:.github/skillsBoost MCP Server Configuration:.github/mcp-config.json
- Next, you will see
Which AI agents would you like to configure?. SelectGitHub Copilot CLIfor the AI agent.
php artisan boost:installWhen running the copilot command, specify .github/mcp-config.json using the --additional-mcp-config option.
copilot --additional-mcp-config @.github/mcp-config.jsonIf, after starting Copilot, Configured MCP servers: laravel-boost appears, the setup was successful.
From now on, always specify the --additional-mcp-config option when using the copilot command. It can be used together with other options.
copilot --additional-mcp-config @.github/mcp-config.json --resumecopilot --additional-mcp-config @.github/mcp-config.json --continue.bashrc or .zshrc can be modified to automatically load the mcp-config.json file if it exists in the current project.
copilot_mcp() {
local args=()
if [ -f ".github/mcp-config.json" ]; then
args+=(--additional-mcp-config @.github/mcp-config.json)
fi
if [ -f ".github/mcp-config.local.json" ]; then
args+=(--additional-mcp-config @.github/mcp-config.local.json)
fi
copilot "${args[@]}" "$@"
}
alias copilot=copilot_mcpcopilot
copilot --resume
copilot --continueFor MCP servers that require sensitive credentials (like Authorization headers), create .github/mcp-config.local.json for local-only settings. Add it to .gitignore to keep credentials out of version control.
echo ".github/mcp-config.local.json" >> .gitignoreExample .github/mcp-config.local.json:
{
"mcpServers": {
"remote-mcp": {
"type": "http",
"url": "https://example.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
},
"tools": ["*"]
}
}
}Copilot CLI does not load instructions after the <. This means that Laravel Boost's <laravel-boost-guidelines> is not loaded at all. Instruct .github/copilot-instructions.md to load laravel-boost.instructions.md.
MIT