- PHP >= 8.3
- Laravel >= 12.x
- Laravel Boost >= 1.7
- Copilot CLI >= 0.0.343
- macOS
- WSL (Native Windows is not supported, please use laravel-boost-phpstorm-copilot)
- Linux
It also supports Laravel Sail. Before use, start it with vendor/bin/sail up -d. The copilot command runs outside of Sail.
Note
When using Testbench for package development, the environment differs from a regular Laravel project. Some MCP tools that depend on application-specific features (like database connections, specific models, or application routes) may not be available or may not work as expected in the Testbench environment.
When developing Laravel packages, you can use Laravel Boost with Testbench.
First, ensure your testbench.yaml includes the following configuration:
env:
CACHE_STORE: arrayThis is important because Laravel Boost tries to use a database cache store by default, which will not work properly.
If APP_ENV is also set, set it to APP_ENV: local.
Run the boost installation command using Testbench:
vendor/bin/testbench boost:installThis will generate .github/mcp-config.json configured for Testbench environment with the following settings:
{
"mcpServers": {
"laravel-boost": {
"type": "local",
"command": "./vendor/bin/testbench",
"args": [
"boost:mcp"
],
"tools": [
"*"
]
}
}
}Use Copilot CLI with the generated config:
copilot --additional-mcp-config @.github/mcp-config.jsoncomposer 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.
- Select
GitHub Copilot CLIfor the editor. This will create.github/mcp-config.json. - Select
GitHub Copilot(Custom instructions)for the guidelines. This will create.github/instructions/laravel-boost.instructions.md.
If you want to create the regular .github/copilot-instructions.md, select GitHub Copilot for the guidelines.
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": ["*"]
}
}
}- Migrate to Agent Skills when Laravel Boost supports it.
MIT