Repository navigation
Commit 776aaf4
feat: Allow ResourceContents objects to be returned directly from read_resource handlers
Updated the low-level server's read_resource decorator to accept TextResourceContents
and BlobResourceContents objects directly, in addition to the existing ReadResourceContents.
This provides more flexibility for resource handlers to construct and return properly
typed ResourceContents objects with full control over all properties.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent ef96a31 commit 776aaf4
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
335 | 342 | | |
336 | 343 | | |
337 | 344 | | |
| |||
364 | 371 | | |
365 | 372 | | |
366 | 373 | | |
367 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
368 | 378 | | |
369 | 379 | | |
370 | 380 | | |
| |||
0 commit comments