-
Notifications
You must be signed in to change notification settings - Fork 692
Expand file tree
/
Copy pathMcpUiClientCapabilities.cs
More file actions
30 lines (28 loc) · 1.07 KB
/
McpUiClientCapabilities.cs
File metadata and controls
30 lines (28 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;
namespace ModelContextProtocol.Server;
/// <summary>
/// Represents the MCP Apps capabilities advertised by a client.
/// </summary>
/// <remarks>
/// <para>
/// This object is the value associated with the <see cref="McpApps.ExtensionId"/> key in the
/// <see cref="Protocol.ClientCapabilities.Extensions"/> dictionary.
/// </para>
/// <para>
/// Use <see cref="McpApps.GetUiCapability"/> to read this from <see cref="Protocol.ClientCapabilities"/>.
/// </para>
/// </remarks>
[Experimental(Experimentals.Apps_DiagnosticId, UrlFormat = Experimentals.Apps_Url)]
public sealed class McpUiClientCapabilities
{
/// <summary>
/// Gets or sets the list of MIME types supported by the client for MCP App UI resources.
/// </summary>
/// <remarks>
/// A client that supports MCP Apps must include <see cref="McpApps.ResourceMimeType"/>
/// (<c>"text/html;profile=mcp-app"</c>) in this list.
/// </remarks>
[JsonPropertyName("mimeTypes")]
public IList<string>? MimeTypes { get; set; }
}