Download the PHP package mateffy/laravel-codebase-mcp without Composer

On this page you can find all versions of the php package mateffy/laravel-codebase-mcp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-codebase-mcp

Development Tests Status Latest Version GitHub Release Date

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.


Query Available Filters
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)


Who is this for?

If you use AI tools like Aider, Cursor, Windsurf or Claude Code to help you build your app, this package is for you. Simply configure the MCP server in your agent and it can automatically query your codebase for views, routes, classes and models.

This is especially useful for large codebases where just searching through the code is less practical.

Example tasks

laravel-codebase-mcp vs. laravel-introspect

The MCP server uses the laravel-introspect package to introspect your codebase and get structured information about it. If you want to write tests or run the same queries multiple times, you can also just use the package directly.


Installation

Install the package via composer:

And then add it to your AI agent's MCP configuration:

[!NOTE]
The MCP server is still in beta, there will probably be bugs!


Available queries

If you want to see all available queries, please check the laravel-introspect package documentation.


Acknowledgements

The MCP server uses the php-mcp/server package to implement the MCP protocol.


License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-codebase-mcp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0||^11.0||^12.0
mateffy/laravel-introspect Version ^1.1
php-mcp/server Version dev-main as 3.1.1
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mateffy/laravel-codebase-mcp contains the following files

Loading the files please wait ....