Skip to content

Commit 44b8217

Browse files
authored
feat: McpServiceProvider file and loadElements function not found
1 parent 202b95d commit 44b8217

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ This package handles:
2626
```bash
2727
composer require php-mcp/laravel
2828
```
29-
2. The `LaravelMcpServiceProvider` will be automatically discovered and registered by Laravel.
29+
2. The `McpServiceProvider` will be automatically discovered and registered by Laravel.
3030
3. Publish the configuration file:
3131
```bash
32-
php artisan vendor:publish --provider="PhpMcp\Laravel\Server\LaravelMcpServiceProvider" --tag="mcp-config"
32+
php artisan vendor:publish --provider="PhpMcp\Laravel\Server\McpServiceProvider" --tag="mcp-config"
3333
```
3434
This will create a `config/mcp.php` file where you can customize the server's behavior.
3535
@@ -249,4 +249,4 @@ The MIT License (MIT). Please see [License File](LICENSE) for more information.
249249
250250
## Support & Feedback
251251
252-
Please open an issue on the [GitHub repository](https://github.com/php-mcp/laravel) for bugs, questions, or feedback.
252+
Please open an issue on the [GitHub repository](https://github.com/php-mcp/laravel) for bugs, questions, or feedback.

src/Commands/ListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ListCommand extends Command
3333
*/
3434
public function handle(Registry $registry): int
3535
{
36-
$registry->loadElements(); // Ensure elements are loaded
36+
$registry->loadElementsFromCache(); // Ensure elements are loaded
3737

3838
$type = $this->argument('type');
3939
$outputJson = $this->option('json');

0 commit comments

Comments
 (0)