From 3dbfb105dd781eff217361b34d763890dd4967a1 Mon Sep 17 00:00:00 2001 From: tsztodd <43433787+tsztodd@users.noreply.github.com> Date: Tue, 6 May 2025 14:52:06 +0800 Subject: [PATCH 1/2] loadElements function not found --- src/Commands/ListCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/ListCommand.php b/src/Commands/ListCommand.php index cacba79..45b7daf 100644 --- a/src/Commands/ListCommand.php +++ b/src/Commands/ListCommand.php @@ -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'); From 861c7db494238c9f52c22c7cce75a655c4ab9b47 Mon Sep 17 00:00:00 2001 From: tsztodd <43433787+tsztodd@users.noreply.github.com> Date: Tue, 6 May 2025 14:54:02 +0800 Subject: [PATCH 2/2] LaravelMcpServiceProvider not found --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 905421a..d278225 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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. \ No newline at end of file +Please open an issue on the [GitHub repository](https://github.com/php-mcp/laravel) for bugs, questions, or feedback.