Laravel Codebase Introspection and Analysis
MCP Server for Laravel Codebase Intelligence and Introspection
For AIs to make sense of your codebase, they need to be able to know what's in it. While vector search is a powerful tool for searching through code, it uses a lot of tokens and doesn't even give you the full picture of your codebase for things like views or routes. This package implements a Model Context Protocol (MCP) server for the mateffy/laravel-introspect package, which allows you to introspect your codebase and get structured information about it.
π Let AI query views, routes, classes and models without needing to read through all of the code
π Can even use wildcards (*) to match multiple views, routes, classes and models
π Supports querying for things from Laravel packages, which most file searchers can't do
πͺ Gives your AI quick overviews of your datamodel and its relationships
π€ Supports any AI agent implementing the MCP protocol
Views: name, path, used by view, uses view, extends
Routes: name, URI, controller + fn, methods, middleware
Classes: name / namespace, extends parent, implements interfaces, uses traits
β€· Models: ... relationships, properties, casts, fillable, hidden, read/writeable
β€· Commands: ... signature, description (coming soon)
Name and a few other queries even support wildcard queries (e.g. components.*.paragraph)