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
Copy file name to clipboardExpand all lines: README.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,6 +231,7 @@ $server = Server::builder()
231
231
232
232
## Documentation
233
233
234
+
<<<<<<< HEAD
234
235
**Core Concepts:**
235
236
-[Server Builder](docs/server-builder.md) - Complete ServerBuilder reference and configuration
236
237
-[Transports](docs/transports.md) - STDIO and HTTP transport setup and usage
@@ -240,6 +241,36 @@ $server = Server::builder()
240
241
-[Examples](docs/examples.md) - Comprehensive example walkthroughs
241
242
242
243
**External Resources:**
244
+
=======
245
+
### MCP Logging
246
+
247
+
The SDK provides comprehensive logging capabilities following the [MCP logging specification](https://modelcontextprotocol.io/specification/2025-06-18/server/utilities/logging):
248
+
249
+
-**Auto-injection**: `McpLogger` automatically injected into capability handlers
250
+
-**Client-controlled filtering**: Clients can set log levels to control verbosity
251
+
-**Centralized logging**: All server logs flow to client for unified debugging
252
+
-**Fallback support**: Compatible with existing PSR-3 loggers
253
+
254
+
**Quick example:**
255
+
```php
256
+
#[McpTool(name: 'my_tool')]
257
+
public function myTool(string $input, McpLogger $logger): array {
0 commit comments