livewire, blade) allow targeted integration.composer require + artisan command) handles Vite setup, MCP detection, and Blade toolbar injection. Minimal manual intervention required./instruckt endpoint for annotation storage/retrieval. Uses Laravel’s JSON file storage (configurable) or can be extended to databases (e.g., Eloquent).instruckt.annotate(), instruckt.listAnnotations()). Requires laravel/mcp (optional but recommended).instruckt?instruckt is removed post-integration?vite.config.js for Vite 5+ compatibility.laravel/mcp is installed if using MCP tools.composer require joshcirre/instruckt-laravel --dev
php artisan instruckt:install
config/instruckt.php) for customizations.vite.config.js with instruckt plugin (provided by install command).import 'virtual:instruckt' to your JS entry point.app/Models/Agent.php (if using custom agents).php artisan mcp:test).| Component | Compatibility Notes |
|---|---|
| Laravel | 11/12 only. MCP required for full functionality. |
| PHP | 8.2+. Uses modern features (e.g., attributes, enums). |
| Vite | 5+. Plugin modifies vite.config.js automatically. |
| Blade | Toolbar component integrates via Blade directives. |
| Livewire | Adapter included; annotations sync with Livewire components. |
| MCP | Tools auto-registered for supported agents. Custom agents need manual setup. |
| AI Agents | Pre-configured for Copilot, Claude, Cursor. Others may require MCP tool adjustments. |
| Storage | Defaults to JSON. Database support requires custom implementation. |
Annotation model).joshcirre/instruckt-laravel for breaking changes (e.g., MCP schema updates).laravel/mcp and Vite versions must stay aligned.php artisan instruckt:debug (if available) or check storage/logs/instruckt.log.user_id, timestamp for query performance.| Failure Scenario | Impact | Mitigation Strategy |
|---|---|---|
| Vite Plugin Fails | Toolbar/JS SDK broken | Rollback vite.config.js to pre-install state. |
| MCP Tool Rejected | AI agent ignores annotations | Validate tool schema against agent docs. |
| JSON Storage Corruption | Lost annotations | Switch to database storage preemptively. |
| Blade Toolbar Conflicts | UI rendering issues |
How can I help you explore Laravel packages today?