redberry/mcp-client-laravel
Laravel client for the Model Context Protocol (MCP). Supports JSON-RPC 2.0 over Streamable HTTP (including SSE) and STDIO. Configure multiple servers and use a single facade to list/call tools and read resources, with per-request content negotiation.
Architecture fit: Excellent fit for Laravel ecosystems, now explicitly supporting Laravel 13 and PHP 8.5. Maintains alignment with Laravel’s service container, config publishing, and facades while expanding compatibility with newer framework versions. STDIO transporter limitations persist (php artisan serve incompatibility remains unresolved).
Integration feasibility: High. Backward-compatible drop-in upgrade for v1.x users with no breaking API changes. Laravel 13 and PHP 8.5 support broadens adoption potential, though the package’s low adoption (0 dependents, 13 stars) still signals limited real-world validation. CI matrix improvements (PHP/Laravel/Testbench combinations) suggest better cross-version testing.
Technical risk: Moderate (unchanged). Future-dated release metadata (2025-11-07) persists as a red flag. STDIO transporter’s php artisan serve incompatibility remains critical for local development. No evidence of expanded test coverage beyond unit tests. Dependency widening (e.g., Pest, Larastan) may introduce subtle compatibility edge cases in edge environments.
Key questions:
spatie/laravel-ray (a dev dependency) impact debugging or profiling in CI environments?Stack fit: Native Laravel compatibility expanded to Laravel 10–13 and PHP 8.3–8.5. Uses standard Laravel patterns (config, DI, facades) with no external runtime dependencies beyond core framework components. Ideal for projects using Laravel’s ecosystem tools, including newer versions leveraging PHP 8.5 features (e.g., typed properties, enums).
Migration path:
composer require redberry/mcp-client-laravel:^1.1.1.composer.json constraints (PHP/Laravel/Testbench).php artisan config:clear and test STDIO/HTTP transporters separately.Compatibility:
spatie/laravel-ray) may affect local debugging but does not impact production.Maintenance:
spatie/laravel-ray reduces potential conflicts in test environments but may require local debugging toolchain updates (e.g., switching to laravel-debugbar).prefer-lowest tests for edge-case failures.Support:
StdioTransporter::handleStartupFailure() no longer duplicates logs, reducing noise but requiring developers to inspect TransporterRequestException messages for stderr/stdout.Scaling:
Failure modes:
php artisan serve (critical for local dev). Workaround: Use HTTP transporter or external process management (e.g., Docker).Ramp-up:
How can I help you explore Laravel packages today?