You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -541,19 +530,8 @@ public function processData(string $input, ClientLogger $logger): array {
541
530
$logger->info('Processing completed');
542
531
return ['result' => 'processed'];
543
532
}
544
-
545
-
// Also works with PSR-3 LoggerInterface
546
-
#[McpResource(uri: 'data://config')]
547
-
public function getConfig(LoggerInterface $logger): array {
548
-
$logger->info('Configuration accessed');
549
-
return ['setting' => 'value'];
550
-
}
551
533
```
552
534
553
-
### Log Levels
554
-
555
-
The SDK supports all standard PSR-3 log levels with **warning** as the default level:
556
-
557
535
## Completion Providers
558
536
559
537
Completion providers help MCP clients offer auto-completion suggestions for Resource Templates and Prompts. Unlike Tools and static Resources (which can be listed via `tools/list` and `resources/list`), Resource Templates and Prompts have dynamic parameters that benefit from completion hints.
0 commit comments