Skip to content

Commit d5413d7

Browse files
Copilotstephentoub
andcommitted
Fix missing using directives and clarify McpMetaAttribute documentation
Co-authored-by: stephentoub <[email protected]>
1 parent c69cd96 commit d5413d7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/ModelContextProtocol.Core/Server/AIFunctionMcpServerPrompt.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Diagnostics;
66
using System.Reflection;
77
using System.Text.Json;
8+
using System.Text.Json.Nodes;
89

910
namespace ModelContextProtocol.Server;
1011

src/ModelContextProtocol.Core/Server/AIFunctionMcpServerResource.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using System.Runtime.CompilerServices;
1010
using System.Text;
1111
using System.Text.Json;
12+
using System.Text.Json.Nodes;
1213
using System.Text.RegularExpressions;
1314

1415
namespace ModelContextProtocol.Server;

src/ModelContextProtocol.Core/Server/McpMetaAttribute.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ public McpMetaAttribute()
5050
/// Gets or sets the value of the metadata entry.
5151
/// </summary>
5252
/// <remarks>
53-
/// This value is stored as a string in the metadata object. Complex values should be
54-
/// serialized to JSON strings if needed.
53+
/// This value is stored as a string in the metadata object. For complex values, use the
54+
/// <see cref="McpServerToolCreateOptions.Meta"/>, <see cref="McpServerPromptCreateOptions.Meta"/>,
55+
/// or <see cref="McpServerResourceCreateOptions.Meta"/> property to provide a JsonObject directly.
5556
/// </remarks>
5657
public required string Value { get; set; }
5758
}

0 commit comments

Comments
 (0)