Laravel Brain v2.6.0: MCP and More

x32x01
  • by x32x01 ||
  • #1
Laravel Brain v2.6.0 is now available with several major improvements, including a new MCP Server, modular application support, more flexible configuration, better memory error handling, and a new VitePress documentation site.

If you haven't used Laravel Brain before, it scans your Laravel codebase and turns the request lifecycle into an interactive graph. You can explore routes, controllers, services, models, jobs, events, and other parts of the application to understand how a request flows through the codebase.



What's New in Laravel Brain v2.6.0​

MCP Server​

The biggest addition in v2.6.0 is the new MCP Server.
Claude Code, Cursor, and other MCP clients can now query your application's architecture directly from the scanned graph.
For example, you can ask questions such as:
  • Which routes are public?
  • What calls a specific service?
  • Where does this request go?
  • Which parts of the application are connected to a specific component?
This makes it easier to explore a large Laravel application without manually tracing the code.

Modular App Support​

Laravel Brain can now resolve classes from installed packages and nwidart/laravel-modules out of the box.
Previously, the scanning process focused primarily on the standard app/ structure. The new support makes Laravel Brain more useful for applications organized into separate modules or packages.

More Configurable Project Structure​

Laravel Brain v2.6.0 also gives you more control over where different application components are located.
You can now configure paths for:
  • Views
  • Filament panels
  • Service providers
  • Facades
  • Broadcast channels
This is particularly useful for Laravel projects that use a custom directory structure instead of relying entirely on Laravel's default locations.

Smarter Memory Handling​

Large Laravel codebases can require a significant amount of memory during scanning.
With v2.6.0, Laravel Brain provides a clearer error message when the scanning process runs out of memory. Instead of simply failing without useful information, you get a better explanation of the problem and guidance for fixing it.

New Documentation Site​

Laravel Brain now has a full VitePress documentation site with information about the project and its features.
The documentation is available here: https://laravel-brain.laramint.dev/
The release also includes various layout, sidebar, and stability improvements, along with the project's first contribution from a new contributor.



How to Install Laravel Brain v2.6.0​

If you want to try the new release, install Laravel Brain as a development dependency with Composer:
Bash:
composer require --dev laramint/laravel-brain
Then run the Laravel Brain scanner:
Bash:
php artisan brain:scan
The scanner analyzes the Laravel codebase and generates the architecture graph that can then be explored and queried.



Why Laravel Brain v2.6.0 Matters​

The combination of architecture scanning and MCP support makes Laravel Brain particularly interesting for developers working with large or unfamiliar Laravel applications.
Instead of manually searching through routes, services, controllers, and dependencies, you can use the generated graph to understand how different parts of the application are connected. With MCP support, AI coding tools can also query that architecture directly.
For developers maintaining complex Laravel projects, this can make code exploration and architecture analysis much faster.



Release Notes​

You can find the Laravel Brain v2.6.0 release notes on GitHub:
https://github.com/laramint/laravel-brain/releases/tag/v2.6.0
 
Similar threads
x32x01
Replies
0
Views
9
x32x01
x32x01
x32x01
Replies
0
Views
101
x32x01
x32x01
x32x01
Replies
0
Views
95
x32x01
x32x01
x32x01
Replies
0
Views
96
x32x01
x32x01
x32x01
Replies
0
Views
88
x32x01
x32x01
Forum Statistics
Threads
1,012
Messages
1,017
Members
15
Latest Member
Mohamed
Back
Top