Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions src/ModelContextProtocol/Protocol/Types/Annotated.cs

This file was deleted.

6 changes: 6 additions & 0 deletions src/ModelContextProtocol/Protocol/Types/Content.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@ public class Content
/// </summary>
[JsonPropertyName("resource")]
public ResourceContents? Resource { get; set; }

/// <summary>
/// Optional annotations for the content.
/// </summary>
[JsonPropertyName("annotations")]
public Annotations? Annotations { get; init; }
}
8 changes: 7 additions & 1 deletion src/ModelContextProtocol/Protocol/Types/Resource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace ModelContextProtocol.Protocol.Types;
/// Represents a known resource that the server is capable of reading.
/// <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">See the schema for details</see>
/// </summary>
public record Resource : Annotated
public record Resource
{
/// <summary>
/// The URI of this resource.
Expand All @@ -31,4 +31,10 @@ public record Resource : Annotated
/// </summary>
[JsonPropertyName("mimeType")]
public string? MimeType { get; init; }

/// <summary>
/// Optional annotations for the resource.
/// </summary>
[JsonPropertyName("annotations")]
public Annotations? Annotations { get; init; }
}
8 changes: 7 additions & 1 deletion src/ModelContextProtocol/Protocol/Types/ResourceTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace ModelContextProtocol.Protocol.Types;
/// Represents a known resource template that the server is capable of reading.
/// <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">See the schema for details</see>
/// </summary>
public record ResourceTemplate : Annotated
public record ResourceTemplate
{
/// <summary>
/// The URI template (according to RFC 6570) that can be used to construct resource URIs.
Expand All @@ -31,4 +31,10 @@ public record ResourceTemplate : Annotated
/// </summary>
[JsonPropertyName("mimeType")]
public string? MimeType { get; init; }

/// <summary>
/// Optional annotations for the resource template.
/// </summary>
[JsonPropertyName("annotations")]
public Annotations? Annotations { get; init; }
}