[Docs] Add blank line before lists so they render (#503)

This commit is contained in:
Christopher Hertel 2026-09-08 01:14:59 +02:00 • committed by GitHub
commit e7aa2d77de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 0 deletions

View file

@ -87,6 +87,7 @@ public function getUserProfile(
```
**Provider Resolution:**
- **Class strings** (`Provider::class`) → Resolved from PSR-11 container
- **Instances** (`new Provider()`) → Used directly
- **Values** (`['a', 'b']`) → Wrapped in `ListCompletionProvider`

View file

@ -100,6 +100,7 @@ makes the prompt handler throw.
### Error Handling
Prompt handlers can throw any exception, but the type determines how it's handled:
- **`PromptGetException`**: Converted to JSON-RPC error response with the actual exception message
- **Any other exception**: Converted to JSON-RPC error response, but with a generic error message

View file

@ -6,6 +6,7 @@ registry somehow. There are three ways to get it there, and they mix freely.
## Attribute-Based Discovery
**Advantages:**
- Declarative and readable
- Automatic parameter inference
- DocBlock integration
@ -25,6 +26,7 @@ Register MCP elements programmatically without using attributes. The handler is
any PHP callable.
**Advantages:**
- Fine-grained control
- Runtime configuration
- Conditional registration