Add middleware and authz support for server-side handlers (#733)
This commit is contained in:
parent
0f0aad020b
commit
d344c65120
1 changed files with 2871 additions and 435 deletions
|
|
@ -83,6 +83,15 @@ public sealed class McpServerResourceCreateOptions
|
|||
/// </remarks>
|
||||
public AIJsonSchemaCreateOptions? SchemaCreateOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the metadata associated with the resource.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Metadata includes information such as attributes extracted from the method and its declaring class.
|
||||
/// If not provided, metadata will be automatically generated for methods created via reflection.
|
||||
/// </remarks>
|
||||
public IReadOnlyList<object>? Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a shallow clone of the current <see cref="McpServerResourceCreateOptions"/> instance.
|
||||
/// </summary>
|
||||
|
|
@ -97,5 +106,6 @@ public sealed class McpServerResourceCreateOptions
|
|||
MimeType = MimeType,
|
||||
SerializerOptions = SerializerOptions,
|
||||
SchemaCreateOptions = SchemaCreateOptions,
|
||||
Metadata = Metadata,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue