Add MCP Apps extension support (typed metadata, attribute, and helpers) (#1484)

This commit is contained in:
Copilot 2026-06-17 13:28:47 -07:00 • committed by GitHub
commit f93df7e172
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,6 +50,26 @@ internal static class Experimentals
/// </summary>
public const string Extensions_Url = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp001";
/// <summary>
/// Diagnostic ID for experimental MCP Apps extension APIs.
/// </summary>
/// <remarks>
/// MCP Apps is the first official MCP extension (<c>"io.modelcontextprotocol/ui"</c>), enabling
/// servers to deliver interactive UIs inside AI clients. This uses a dedicated diagnostic ID
/// so that users can suppress it independently from other experimental APIs.
/// </remarks>
public const string Apps_DiagnosticId = "MCPEXP003";
/// <summary>
/// Message for the experimental MCP Apps extension APIs.
/// </summary>
public const string Apps_Message = "The MCP Apps extension is experimental and subject to change as the specification evolves.";
/// <summary>
/// URL for the experimental MCP Apps extension APIs.
/// </summary>
public const string Apps_Url = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp003";
/// <summary>
/// Diagnostic ID for experimental SDK APIs unrelated to the MCP specification,
/// such as subclassing <c>McpClient</c>/<c>McpServer</c> or referencing <c>RunSessionHandler</c>.