VOOZH about

URL: https://deepwiki.com/invokable/laravel-boost-copilot-cli/2-getting-started

⇱ Getting Started | invokable/laravel-boost-copilot-cli | DeepWiki


Loading...
Last indexed: 7 March 2026 (397730)
Menu

Getting Started

This document guides you through the initial setup of the revolution/laravel-boost-copilot-cli package, from installation to first use with GitHub Copilot CLI. It covers the core workflow of installing the package, generating MCP server configuration, and verifying the integration works correctly.

For detailed information about individual setup steps, see Installation, Configuration Generation, and Starting Copilot CLI. For environment-specific instructions (Laravel Sail, WSL, Orchestra Testbench), see Environment-Specific Setup.

Prerequisites

The package requires the following components to be installed and configured:

ComponentMinimum VersionPurpose
PHP8.2Runtime environment
Laravel12.xFramework foundation
Laravel Boost2.0MCP server and tools orchestration
GitHub Copilot CLI1.0AI assistant client

Sources: README.md9-14

Supported Platforms

The package supports the following operating systems and environments:

  • macOS: Native support
  • Linux: Native support
  • WSL (Windows Subsystem for Linux): Recommended for Windows users, with automatic path conversion
  • Laravel Sail: Docker-based development environment
  • Orchestra Testbench: Package development environment with limited tool availability

Sources: README.md20-33

Setup Workflow Overview

The following diagram illustrates the complete setup process from package installation to first Copilot CLI session:

Setup Process Flow


Sources: README.md35-61 Diagram 3 from high-level architecture

Core Components

The following table maps the natural language concepts to their concrete implementation in the codebase:

ConceptCode EntityLocationPurpose
Agent ImplementationRevolution\LaravelBoostCopilotCli\CopilotClisrc/CopilotCli.phpHandles environment detection, path resolution, and MCP configuration generation
Service RegistrationRevolution\LaravelBoostCopilotCli\CopilotCliServiceProvidersrc/CopilotCliServiceProvider.phpRegisters the agent with Laravel Boost framework
MCP Server Config.github/mcp-config.jsonGenerated by boost:installTells Copilot CLI how to spawn the Laravel Boost MCP server
AI Guidelines.github/instructions/laravel-boost.instructions.mdGenerated from resources/views/agents/copilot-cli/guidelines/core.blade.phpProvides context-aware instructions to Copilot
Installation Commandboost:installProvided by Laravel BoostInteractive setup wizard
MCP Server Commandboost:mcpProvided by Laravel BoostSpawns the MCP server process

Sources: README.md35-61 Diagram 1 and 5 from high-level architecture

Installation Process

Step 1: Install Package

Install the package via Composer as a development dependency:


This installs the package to vendor/revolution/laravel-boost-copilot-cli/ and registers CopilotCliServiceProvider with your Laravel application.

Sources: README.md37-39

Step 2: Run Interactive Setup

Execute the Laravel Boost installation command:


The command presents two interactive prompts:

  1. Feature Selection: Choose which Boost features to configure

    • AI Guidelines: Generates .github/instructions/laravel-boost.instructions.md
    • Agent Skills: Generates .github/skills/ directory with skill definitions
    • Boost MCP Server Configuration: Generates .github/mcp-config.json (required)
  2. Agent Selection: Choose which AI agents to configure

    • Select GitHub Copilot CLI to generate Copilot-specific configuration

Sources: README.md41-53

Step 3: Verify Configuration Files

After successful installation, verify the following files exist:

File PathGenerated WhenPurpose
.github/mcp-config.jsonMCP Server Configuration selectedMCP server configuration for Copilot CLI
.github/instructions/laravel-boost.instructions.mdAI Guidelines selectedEnvironment-specific AI context and guidelines
.github/skills/*.mdAgent Skills selectedReusable AI skill definitions (e.g., pest-testing)

Sources: README.md46-48

Component Interaction Diagram

The following diagram shows how the installed package components interact at runtime:

Runtime Component Architecture


Sources: README.md55-99 Diagram 4 from high-level architecture

Starting Copilot CLI

After installation, start GitHub Copilot CLI with the generated MCP configuration:


The @ prefix tells Copilot CLI to load the configuration file from the current directory.

Verification: If the setup succeeded, you will see this message after Copilot starts:

Configured MCP servers: laravel-boost

Sources: README.md55-61

Optional: Shell Function for Automatic Configuration Loading

To avoid specifying --additional-mcp-config every time, add the following function to your .bashrc or .zshrc:


This function automatically loads both .github/mcp-config.json and .github/mcp-config.local.json if they exist in the current directory. After adding this function, reload your shell and use copilot normally:


Sources: README.md73-99

Environment Detection

The CopilotCli class automatically detects your development environment and adjusts the MCP server command accordingly:

Environment-Specific Commands

EnvironmentDetection MethodGenerated CommandConfig Location
Standard LaravelDefaultphp artisan boost:mcp.github/mcp-config.json
Laravel SailDocker running./vendor/bin/sail artisan boost:mcp.github/mcp-config.json
WSLPath contains /mnt/Converts Windows paths.github/mcp-config.json
Orchestra TestbenchTestbench detected./vendor/bin/testbench boost:mcp.github/mcp-config.json

The environment detection logic is implemented in the CopilotCli::detectEnvironment() and related methods.

Sources: README.md27-33 docs/testbench.md55-78 Diagram 2 from high-level architecture

Quick Start Example

The following shows a complete setup from a fresh Laravel project:


Sources: README.md35-61

Local Configuration for Sensitive Data

For MCP servers requiring sensitive credentials (API keys, tokens), create .github/mcp-config.local.json for local-only settings:


Example .github/mcp-config.local.json structure:


When using the copilot_mcp() shell function, both configuration files are loaded automatically if they exist.

Sources: README.md101-124

Next Steps

After completing the setup:

Sources: Table of contents structure