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