gomdimapps/laravel-mcp-pilot

Token-lean toolkit for Laravel projects, built for MCP and other low-token AI integrations: a lexical index (classes, routes, views, frontend files, with pluggable schema extraction) and a driver-agnostic database introspection tool (list tables, describe schema, run guarded queries, optional Spatie

Maintainers

Package info

github.com/GomdimApps/LaravelMCPPilot

pkg:composer/gomdimapps/laravel-mcp-pilot

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-07-22 00:25 UTC

This package is auto-updated.

Last update: 2026-07-22 00:34:18 UTC


README

Token-lean toolkit for Laravel projects โ€” Lexical Search ยท Database Introspection

LaravelMCPPilot gives AI agents (or an MCP server) two cheap ways to explore a Laravel project: a lexical code index (classes, routes, views, frontend files, with schema extraction) and a driver-agnostic database introspection tool (list tables, describe schema, run guarded queries).

tests License

Quick Start

composer require gomdimapps/laravel-mcp-pilot
php artisan vendor:publish --tag=laravel-mcp-pilot-config

Search

use GomdimApps\LaravelMCPPilot\Search\SearchService;

$index = app(SearchService::class);
$index->refresh();
$index->search('store thing');

Database

use GomdimApps\LaravelMCPPilot\Database\DatabaseIntrospectionService;

$db = app(DatabaseIntrospectionService::class);
$db->listTables('pgsql', 'thing');
$db->describeTable('pgsql', 'things');

Requirements

Requirement Version
PHP >= 8.3
Laravel ^12.0 or ^13.0
spatie/laravel-permission (optional) ^6.0 โ€” enables role/permission mapping in the Database tool

Features

  • ๐Ÿ” Lexical search โ€” classes, routes, views, and frontend files by term, no AST/embeddings
  • ๐Ÿ—„๏ธ Database introspection โ€” tables, columns, indexes, and foreign keys on any Laravel-supported driver
  • ๐Ÿงฉ Pluggable indexers & schema extractors โ€” extend the Search tool from your own app, no fork needed
  • ๐Ÿ” Safe by default โ€” write queries (INSERT/UPDATE/DELETE) are disabled until explicitly enabled
  • ๐ŸŽญ Optional Spatie Permission integration โ€” auto-detected, zero hard dependency
  • ๐Ÿงช Fully tested โ€” Pest + Testbench, Docker matrix, CI

Documentation

Full documentation is available at GomdimApps.github.io/LaravelMCPilot

Key sections:

Docker Testing

make test-8.3   # or test-8.4 / test-8.5
make test-all   # runs all three

License

MIT.