Skip to content

McpServiceProvider File And loadElements function are not found #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ This package handles:
```bash
composer require php-mcp/laravel
```
2. The `LaravelMcpServiceProvider` will be automatically discovered and registered by Laravel.
2. The `McpServiceProvider` will be automatically discovered and registered by Laravel.
3. Publish the configuration file:
```bash
php artisan vendor:publish --provider="PhpMcp\Laravel\Server\LaravelMcpServiceProvider" --tag="mcp-config"
php artisan vendor:publish --provider="PhpMcp\Laravel\Server\McpServiceProvider" --tag="mcp-config"
```
This will create a `config/mcp.php` file where you can customize the server's behavior.

Expand Down Expand Up @@ -249,4 +249,4 @@ The MIT License (MIT). Please see [License File](LICENSE) for more information.

## Support & Feedback

Please open an issue on the [GitHub repository](https://github.com/php-mcp/laravel) for bugs, questions, or feedback.
Please open an issue on the [GitHub repository](https://github.com/php-mcp/laravel) for bugs, questions, or feedback.
2 changes: 1 addition & 1 deletion src/Commands/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ListCommand extends Command
*/
public function handle(Registry $registry): int
{
$registry->loadElements(); // Ensure elements are loaded
$registry->loadElementsFromCache(); // Ensure elements are loaded

$type = $this->argument('type');
$outputJson = $this->option('json');
Expand Down