creode / modular-ai
Enables MCP make commands for Laravel Modular applications
1.0.2
2026-05-05 13:35 UTC
Requires
- internachi/modular: ^3.0
- laravel/mcp: ^0.7.0
Requires (Dev)
- orchestra/testbench: ^10.0
- phpunit/phpunit: *
README
This module adds MCP “make” Artisan commands that play nicely with Internachi Modular module structure.
Modular upstream: https://github.com/InterNACHI/modular
It’s packaged as creode/modular-ai and auto-registers its service provider via Composer.
What it provides
When running in console, the module registers these Artisan commands:
make:mcp-toolmake:mcp-servermake:mcp-resourcemake:mcp-promptmake:mcp-app-resource
These commands generate MCP classes in the appropriate module directories rather than assuming a non-modular Laravel app layout.
Usage
php artisan make:mcp-tool ExampleTool php artisan make:mcp-server ExampleServer php artisan make:mcp-resource ExampleResource php artisan make:mcp-prompt ExamplePrompt php artisan make:mcp-app-resource ExampleAppResource
See command options:
php artisan make:mcp-tool --help
Development notes
- The commands are registered by
Creode\ModularAi\Providers\ModularAiServiceProviderand only load whenrunningInConsole().
License
This module declares a proprietary license in its composer.json.