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
public function getConfig(LoggerInterface $logger): array {
252
+
$logger->info('Config accessed');
253
+
return ['setting' => 'value'];
254
+
}
255
+
```
256
+
232
257
## Documentation
233
258
234
259
**Core Concepts:**
@@ -239,33 +264,8 @@ $server = Server::builder()
239
264
**Learning:**
240
265
-[Examples](docs/examples.md) - Comprehensive example walkthroughs
241
266
242
-
### MCP Logging
243
-
244
-
The SDK provides comprehensive logging capabilities following the [MCP logging specification](https://modelcontextprotocol.io/specification/2025-06-18/server/utilities/logging):
245
-
246
-
-**Auto-injection**: `McpLogger` automatically injected into capability handlers
247
-
-**Client-controlled filtering**: Clients can set log levels to control verbosity
248
-
-**Centralized logging**: All server logs flow to client for unified debugging
249
-
-**Fallback support**: Compatible with existing PSR-3 loggers
250
-
251
-
**Quick example:**
252
-
```php
253
-
#[McpTool(name: 'my_tool')]
254
-
public function myTool(string $input, McpLogger $logger): array {
0 commit comments