Download the PHP package skylence/laravel-optimize-mcp without Composer
On this page you can find all versions of the php package skylence/laravel-optimize-mcp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download skylence/laravel-optimize-mcp
More information about skylence/laravel-optimize-mcp
Files in skylence/laravel-optimize-mcp
Package laravel-optimize-mcp
Short Description Laravel Optimize MCP provides optimization tools and utilities for AI-assisted development
License MIT
Homepage https://github.com/laravel/optimize-mcp
Informations about the package laravel-optimize-mcp
Laravel Optimize MCP
Optimize your Laravel project with AI assistance through the Model Context Protocol (MCP).
Installation
Install via Composer:
Run the installation command and follow the prompts:
The installer will:
- Automatically detect and configure your code editor (Cursor, Claude Code, VS Code, or PhpStorm)
- Ask if you want HTTP access for staging/production servers
- Generate a secure token and configuration instructions for remote access
Usage
Once installed, ask your AI assistant to optimize your Laravel project:
"Analyze my Laravel project and help me optimize it"
Your AI will use the installed MCP tools to:
- Analyze your configuration for performance and security issues
- Review your project structure and development workflow
- Recommend useful packages and improvements
- Provide actionable recommendations with code snippets
Remote Access for Staging/Production
Want to analyze your staging or production environment? The installer can configure this for you automatically, or you can set it up manually by adding these to your .env file:
Then ask your AI to connect to your remote server:
"Connect to my production Laravel server at https://myapp.com and analyze the .env configuration"
This allows you to check production environment variables, cache/session drivers, and security settings without SSH access.
Database Monitoring & Alerts
Set up automatic database size monitoring with growth tracking and email alerts:
Enable Monitoring
-
Add to your
.env: -
Run migrations:
- Schedule the monitoring command:
Laravel 11+ / 12 (in bootstrap/app.php):
Laravel 10 and earlier (in app/Console/Kernel.php):
Make schedules configurable (recommended):
Add to config/app.php:
Add to .env:
This allows you to easily enable/disable schedules per environment (local, staging, production).
Available Commands
Features
- Automatic Tracking: Logs database size, growth rate, and disk usage
- Growth Prediction: Estimates when your database will be full based on growth trends
- Smart Alerts: Email notifications at warning (80%) and critical (90%) thresholds
- Historical Data: Track size over time to identify growth patterns
- Cross-Database: Supports MySQL, PostgreSQL, and SQLite
What's Included
- Configuration Analyzer: Checks your Laravel config for performance and security
- Database Size Inspector: Monitor database size, growth trends, and disk usage
- Database Monitoring & Alerts: Automatic size tracking with email notifications
- Log File Inspector: Check log sizes and rotation configuration (HTTP MCP only)
- Nginx Config Inspector: Analyze nginx for security and performance (HTTP MCP only)
- Nginx Config Generator: Generate production-ready nginx configs (HTTP MCP only)
- Project Structure Analyzer: Reviews your composer scripts, CI/CD, testing setup, and more
- Package Advisor: Recommends useful packages for your project
LLM Guidelines for AI Assistants
Want your AI assistant to know how to use these MCP tools? Add the Laravel Optimize MCP guidelines to your project's LLM instruction files:
This appends comprehensive guidelines about:
- How to use each MCP tool
- When to use HTTP MCP vs stdio/PHP MCP tools
- Best practices for security and performance
- Configuration examples and common solutions
The script will:
- ✅ Append guidelines to existing files without overwriting
- ✅ Skip if guidelines are already present
- ✅ Create the file with guidelines if it doesn't exist
Advanced Configuration
For remote access, HTTP endpoints, and custom tool configuration, see the full documentation.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-optimize-mcp with dependencies
illuminate/console Version ^10.0|^11.0|^12.0|^13.0
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
laravel/mcp Version ^0.3.0 || ^0.5.0 || ^0.6.0 || ^0.7.0
laravel/prompts Version ^0.3.0