Files
Olivier Chafik c71a7cb432 fix: forward _meta from ReadResourceContents to ReadResourceResult
Previously, when using @mcp.resource(uri, meta={...}), the meta dict
was only forwarded to individual TextResourceContents/BlobResourceContents
items, but not to the ReadResourceResult itself.

This fix forwards the first non-None meta from content items to the
ReadResourceResult._meta field, enabling use cases like MCP Apps that
need CSP metadata at the result level.

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-16 12:16:07 +00:00
..
2024-09-24 22:04:19 +01:00
2025-02-05 11:02:51 +00:00