Skip to content

Commit e62aae8

Browse files
Add SchemaCreateOptions property to McpServerOptions
Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
1 parent dfcd1ec commit e62aae8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/ModelContextProtocol.Core/Server/McpServerOptions.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,21 @@ public sealed class McpServerOptions
8181
/// </remarks>
8282
public JsonSerializerOptions? JsonSerializerOptions { get; set; }
8383

84+
/// <summary>
85+
/// Gets or sets the default JSON schema creation options to use for tools, prompts, and resources.
86+
/// </summary>
87+
/// <remarks>
88+
/// <para>
89+
/// This property provides server-wide default schema creation settings that will be used
90+
/// by all tools, prompts, and resources unless they explicitly specify their own
91+
/// <see cref="Microsoft.Extensions.AI.AIJsonSchemaCreateOptions"/> during registration.
92+
/// </para>
93+
/// <para>
94+
/// If not set, defaults to <see cref="Microsoft.Extensions.AI.AIJsonSchemaCreateOptions.Default"/>.
95+
/// </para>
96+
/// </remarks>
97+
public Microsoft.Extensions.AI.AIJsonSchemaCreateOptions? SchemaCreateOptions { get; set; }
98+
8499
/// <summary>
85100
/// Gets or sets whether to create a new service provider scope for each handled request.
86101
/// </summary>

0 commit comments

Comments
 (0)