@@ -38,7 +38,7 @@ This package utilizes `php-mcp/server` v2.1.0+ which supports the `2024-11-05` v
38
38
39
39
2. ** Publish Configuration:**
40
40
` ` ` bash
41
- php artisan vendor:publish --provider=" PhpMcp\Laravel\Server\ McpServiceProvider" --tag=" mcp-config"
41
+ php artisan vendor:publish --provider=" PhpMcp\Laravel\McpServiceProvider" --tag=" mcp-config"
42
42
` ` `
43
43
44
44
# # Configuration
@@ -303,19 +303,19 @@ If your available MCP elements or resource content change while the server is ru
303
303
* **List Changes (Tools, Resources, Prompts):**
304
304
Dispatch the corresponding Laravel event. The package includes listeners to send the appropriate MCP notification.
305
305
```php
306
- use PhpMcp\Laravel\Server\ Events\ToolsListChanged;
307
- use PhpMcp\Laravel\Server\ Events\ResourcesListChanged;
308
- use PhpMcp\Laravel\Server\ Events\PromptsListChanged;
306
+ use PhpMcp\Laravel\Events\ToolsListChanged;
307
+ use PhpMcp\Laravel\Events\ResourcesListChanged;
308
+ use PhpMcp\Laravel\Events\PromptsListChanged;
309
309
310
310
ToolsListChanged::dispatch();
311
311
// ResourcesListChanged::dispatch();
312
312
// PromptsListChanged::dispatch();
313
313
```
314
314
315
315
* **Specific Resource Content Update:**
316
- Dispatch the `PhpMcp\Laravel\Server\ Events\ResourceUpdated` event with the URI of the changed resource.
316
+ Dispatch the `PhpMcp\Laravel\Events\ResourceUpdated` event with the URI of the changed resource.
317
317
```php
318
- use PhpMcp\Laravel\Server\ Events\ResourceUpdated;
318
+ use PhpMcp\Laravel\Events\ResourceUpdated;
319
319
320
320
$resourceUri = ' file:///path/to/updated_file.txt' ;
321
321
// ... your logic that updates the resource ...
0 commit comments