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: docs/mcp-elements.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -329,7 +329,6 @@ public function getFile(string $path): string
329
329
330
330
**Recommendation**: Use `ResourceReadException` when you want to communicate specific errors to clients. Any other exception will still be converted to JSON-RPC compliant errors but with generic error messages.
331
331
332
-
333
332
## Resource Templates
334
333
335
334
Resource templates are **dynamic resources** that use parameterized URIs with variables. They follow all the same rules
@@ -463,7 +462,6 @@ public function explicitMessages(): array
463
462
}
464
463
```
465
464
466
-
467
465
The SDK automatically validates that all messages have valid roles and converts the result into the appropriate MCP prompt message format.
0 commit comments