[Docs] Add blank line before lists so they render (#503)
This commit is contained in:
parent
7047019030
commit
e7aa2d77de
3 changed files with 18 additions and 0 deletions
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue