VOOZH about

URL: https://deepwiki.com/invokable/laravel-boost-copilot-cli/3-using-laravel-boost-mcp-tools

⇱ Using Laravel Boost MCP Tools | invokable/laravel-boost-copilot-cli | DeepWiki


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

Using Laravel Boost MCP Tools

This page documents all MCP (Model Context Protocol) tools available through the laravel-boost MCP server and how to use them effectively with GitHub Copilot CLI. These tools provide AI agents with direct access to your Laravel application's environment, database, documentation, and debugging capabilities.

For information about generating the MCP configuration files that enable these tools, see Configuration Generation. For details about starting Copilot CLI with MCP support, see Starting Copilot CLI.

MCP Server Architecture

The laravel-boost MCP server exposes Laravel Boost tools to GitHub Copilot CLI through the Model Context Protocol. When properly configured, the AI agent can invoke these tools to inspect your application, query data, search documentation, and assist with development tasks.


Sources: .github/instructions/laravel-boost.instructions.md6-13

Ensuring MCP Server Access

The laravel-boost MCP server and its tools are only available when Copilot CLI is started with the MCP configuration file. If the AI agent reports that it cannot see the laravel-boost server or tools, restart Copilot CLI with:


The --additional-mcp-config option must be specified for every Copilot CLI session to access Laravel Boost MCP tools.

Sources: .github/instructions/laravel-boost.instructions.md6-13

Tool Categories

The Laravel Boost MCP tools are organized into functional categories:

CategoryToolsPurpose
Documentationsearch-docsSearch version-specific Laravel ecosystem documentation
Databasedatabase-query, database-schemaQuery data and inspect table structures
Debuggingtinker, browser-logsExecute PHP code and read browser logs
Application Infoapplication-info, list-artisan-commands, list-routesInspect application configuration and available commands
Utilitiesget-absolute-urlGenerate correct URLs for the application
Skillspest-testingActivate domain-specific testing capabilities

Sources: .github/instructions/laravel-boost.instructions.md86-110

Documentation Search Tool

The search-docs tool is the most powerful tool for working with Laravel and Laravel ecosystem packages. It provides version-specific documentation by automatically passing installed package versions to the Boost API.


When to Use

The guidelines instruct AI agents to use search-docs before making code changes to ensure the correct approach is taken. This tool should be used when:

  • Working with Laravel framework features
  • Using Laravel ecosystem packages (Pint, Pest, Prompts, Pail, etc.)
  • Uncertain about version-specific syntax or behavior
  • Needing to verify best practices

Sources: .github/instructions/laravel-boost.instructions.md104-110

Query Syntax

The tool supports multiple query syntaxes for flexible searching:

SyntaxExampleBehavior
Simple WordsauthenticationAuto-stemming finds "authenticate", "auth", etc.
Multiple Words (AND)rate limitFinds content with both "rate" AND "limit"
Quoted Phrases"infinite scroll"Exact phrase, words must be adjacent
Mixed Queriesmiddleware "rate limit"Combines word and phrase matching
Multiple Queries["authentication", "middleware"]Returns results matching ANY query

Important: Do not include package names in queries. Package information is automatically shared with the API. Use test resource table, not filament 4 test resource table.

Sources: .github/instructions/laravel-boost.instructions.md111-118

Best Practices

Guidelines recommend using multiple, broad, simple, topic-based queries at once:

['rate limiting', 'routing rate limiting', 'routing']

The most relevant results are returned first. The tool can optionally filter by specific packages if you know which packages you need documentation for.

Sources: .github/instructions/laravel-boost.instructions.md107-109

Database Tools

database-query

The database-query tool executes read-only database queries. It should be used when you only need to read from the database without modifying data.

Use Cases:

  • Inspecting existing records
  • Verifying data state
  • Checking record counts
  • Simple data retrieval

Guidelines Recommendation: Use this tool instead of tinker when only reading from the database.

Sources: .github/instructions/laravel-boost.instructions.md93-97

database-schema

The database-schema tool inspects database table structures, providing information about columns, types, indexes, and constraints.

Use Cases:

  • Before writing migrations to understand existing structure
  • Before creating models to match table schema
  • Verifying database state
  • Understanding relationships based on foreign keys

Sources: .github/instructions/laravel-boost.instructions.md93-97

Debugging and Development Tools

tinker

The tinker tool executes arbitrary PHP code within the Laravel application context. This provides interactive access to your application's classes, models, and services.


Use Cases:

  • Debugging code execution
  • Querying Eloquent models directly
  • Testing PHP expressions
  • Inspecting object state
  • Verifying relationships

Guidelines Recommendation: Use this tool when you need to execute PHP to debug code or query Eloquent models directly.

Sources: .github/instructions/laravel-boost.instructions.md93-97

browser-logs

The browser-logs tool reads browser logs, errors, and exceptions from the application. This is useful for debugging frontend issues and JavaScript errors.

Important: Only recent browser logs are useful. Guidelines instruct AI agents to ignore old logs when analyzing issues.

Sources: .github/instructions/laravel-boost.instructions.md99-102

Application Information Tools

list-artisan-commands

The list-artisan-commands tool lists all available Artisan commands and their parameters. This is essential before calling Artisan commands to verify available options.

Use Cases:

  • Before executing an Artisan command
  • Discovering available make commands
  • Checking command options and arguments
  • Verifying command availability

Sources: .github/instructions/laravel-boost.instructions.md86-88

list-routes

The list-routes tool lists all registered application routes, including route names, URIs, methods, and middleware.

Use Cases:

  • Understanding available endpoints
  • Verifying route names for route() helper
  • Checking middleware assignments
  • Inspecting route parameters

Sources: .github/instructions/laravel-boost.instructions.md21

application-info

The application-info tool provides metadata about the Laravel application, including Laravel version, PHP version, environment, and installed packages.

Sources: .github/instructions/laravel-boost.instructions.md22

Utility Tools

get-absolute-url

The get-absolute-url tool generates properly formatted URLs for the application, ensuring correct scheme, domain/IP, and port configuration.

Guidelines Recommendation: Whenever sharing a project URL with the user, use this tool to ensure you're using the correct URL format.

Sources: .github/instructions/laravel-boost.instructions.md90-91

Environment-Specific Tool Availability

Tool availability varies depending on the Laravel environment. The MCP server detects the environment and adjusts tool behavior accordingly.


Sources: .github/instructions/laravel-boost.instructions.md15-24

Standard Laravel Application

In a standard Laravel application environment, all MCP tools function normally with full access to:

  • Database connections and queries
  • Application-specific models
  • Application routes
  • Full Laravel context

Orchestra Testbench Environment

Orchestra Testbench is used for Laravel package development and provides a limited environment. This environment differs significantly from a typical Laravel project:

Available Tools:

  • application-info - Works normally
  • list-artisan-commands - Works normally
  • search-docs - Works normally

Limited/Unavailable Tools:

  • database-query - May return limited or no results
  • database-schema - May return limited or no results
  • list-routes - May return limited or no results
  • Tools requiring application-specific features may fail

Context: There is no full application context, database, or application-specific models in Testbench environments. The guidelines instruct AI agents to focus on package-specific development tasks when working in this environment.

Sources: .github/instructions/laravel-boost.instructions.md15-24

Skills System

Skills are domain-specific capabilities that can be activated to enhance AI agent behavior in specific contexts. Skills are activated on-demand based on the development task.

Pest Testing Skill

The pest-testing skill activates specialized capabilities for working with the Pest PHP testing framework (version 4).


Activation Triggers:

The skill should be activated when:

  • Writing tests
  • Creating unit or feature tests
  • Adding assertions
  • Testing Livewire components
  • Browser testing
  • Debugging test failures
  • Working with datasets or mocking
  • User mentions: test, spec, TDD, expects, assertion, coverage
  • Verifying functionality works

Critical Guideline: AI agents must activate the pest-testing skill whenever working with Pest or testing-related tasks. Guidelines emphasize not waiting until stuck to activate the skill.

Sources: .github/instructions/laravel-boost.instructions.md46-50 .github/instructions/laravel-boost.instructions.md243-252

Skill Activation Pattern


Sources: .github/instructions/laravel-boost.instructions.md46-50

Integration with Documentation Search

When skills are activated, the AI agent should use search-docs to retrieve version-specific documentation. For example, with the pest-testing skill activated, the agent should search for Pest 4 documentation before creating tests.

The guidelines explicitly state: "CRITICAL: ALWAYS use search-docs tool for version-specific Pest documentation and updated code examples."

Sources: .github/instructions/laravel-boost.instructions.md250

Tool Usage Guidelines Summary

The guidelines in .github/instructions/laravel-boost.instructions.md provide AI agents with specific instructions for effective tool usage:

GuidelineDescription
Use search-docs firstSearch documentation before making code changes
Multiple queriesUse broad, simple, topic-based queries simultaneously
No package namesDon't add package names to queries; versions are auto-shared
Prefer database-queryUse for read-only operations instead of tinker
Check schema firstUse database-schema before writing migrations/models
Verify commandsUse list-artisan-commands to check available parameters
Generate URLs correctlyUse get-absolute-url for project URLs
Activate skills earlyDon't wait until stuck to activate domain skills
Environment awarenessBe aware of limited tool availability in Testbench

Sources: .github/instructions/laravel-boost.instructions.md86-110