Describe the bug
Resources/read does not return content, specified by [McpMeta] attribute, resources/list does
To Reproduce
Steps to reproduce the behavior:
- Attach attribute [McpMeta("ui", JsonValue = """{ "csp": { "resourceDomains": ["https://cdn.jsdelivr.net"] } }""")] to method, marked with [McpServerResource]
- Using MCP Inspector: resources/list returns _meta attribute value above
- Using MCP Inspector: resources/read does not
Expected behavior
resources/read returns content of [McpMeta] attribute along with uri, mimeType and text
Additional context
Bug in src\ModelContextProtocol.Core\Server\AIFunctionMcpServerResource.cs method ReadAsync results do not initialize Meta property of returned results