From bb32d0ee20ca998082f67d8e566f161348498714 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 31 Mar 2026 19:46:21 +0000
Subject: [PATCH 1/3] Initial plan
From 35e7e59607a51774e90eb701c831d945f72c69d6 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 31 Mar 2026 20:36:14 +0000
Subject: [PATCH 2/3] feat: Add MCP Apps extension support (F1-F3, F6, F7)
Agent-Logs-Url: https://github.com/modelcontextprotocol/csharp-sdk/sessions/5ec8e2cd-39e5-4b4c-a18e-182ccaaa7637
Co-authored-by: mikekistler <85643503+mikekistler@users.noreply.github.com>
---
docs/list-of-diagnostics.md | 2 +-
src/Common/Experimentals.cs | 19 +
.../McpJsonUtilities.cs | 7 +
.../Server/AIFunctionMcpServerTool.cs | 39 +-
.../Server/McpAppUiAttribute.cs | 56 +++
.../Server/McpApps.cs | 113 +++++
.../Server/McpServerToolCreateOptions.cs | 31 ++
.../Server/McpUiClientCapabilities.cs | 30 ++
.../Server/McpUiResourceCsp.cs | 49 +++
.../Server/McpUiResourceMeta.cs | 50 +++
.../Server/McpUiResourcePermissions.cs | 27 ++
.../Server/McpUiToolMeta.cs | 45 ++
.../Server/McpUiToolVisibility.cs | 26 ++
.../Server/McpAppsTests.cs | 403 ++++++++++++++++++
14 files changed, 893 insertions(+), 4 deletions(-)
create mode 100644 src/ModelContextProtocol.Core/Server/McpAppUiAttribute.cs
create mode 100644 src/ModelContextProtocol.Core/Server/McpApps.cs
create mode 100644 src/ModelContextProtocol.Core/Server/McpUiClientCapabilities.cs
create mode 100644 src/ModelContextProtocol.Core/Server/McpUiResourceCsp.cs
create mode 100644 src/ModelContextProtocol.Core/Server/McpUiResourceMeta.cs
create mode 100644 src/ModelContextProtocol.Core/Server/McpUiResourcePermissions.cs
create mode 100644 src/ModelContextProtocol.Core/Server/McpUiToolMeta.cs
create mode 100644 src/ModelContextProtocol.Core/Server/McpUiToolVisibility.cs
create mode 100644 tests/ModelContextProtocol.Tests/Server/McpAppsTests.cs
diff --git a/docs/list-of-diagnostics.md b/docs/list-of-diagnostics.md
index 515472817..ebbad5907 100644
--- a/docs/list-of-diagnostics.md
+++ b/docs/list-of-diagnostics.md
@@ -23,7 +23,7 @@ If you use experimental APIs, you will get one of the diagnostics shown below. T
| Diagnostic ID | Description |
| :------------ | :---------- |
-| `MCPEXP001` | Experimental APIs for features in the MCP specification itself, including Tasks and Extensions. Tasks provide a mechanism for asynchronous long-running operations that can be polled for status and results (see [MCP Tasks specification](https://modelcontextprotocol.io/specification/draft/basic/utilities/tasks)). Extensions provide a framework for extending the Model Context Protocol while maintaining interoperability (see [SEP-2133](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2133)). |
+| `MCPEXP001` | Experimental APIs for features in the MCP specification itself, including Tasks, Extensions, and the MCP Apps extension. Tasks provide a mechanism for asynchronous long-running operations that can be polled for status and results (see [MCP Tasks specification](https://modelcontextprotocol.io/specification/draft/basic/utilities/tasks)). Extensions provide a framework for extending the Model Context Protocol while maintaining interoperability (see [SEP-2133](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2133)). MCP Apps is the first official MCP extension, enabling servers to deliver interactive UIs inside AI clients (see [MCP Apps specification](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx)). |
| `MCPEXP002` | Experimental SDK APIs unrelated to the MCP specification itself, including subclassing `McpClient`/`McpServer` (see [#1363](https://github.com/modelcontextprotocol/csharp-sdk/pull/1363)) and `RunSessionHandler`, which may be removed or change signatures in a future release (consider using `ConfigureSessionOptions` instead). |
## Obsolete APIs
diff --git a/src/Common/Experimentals.cs b/src/Common/Experimentals.cs
index 7e7e969bb..54904db2a 100644
--- a/src/Common/Experimentals.cs
+++ b/src/Common/Experimentals.cs
@@ -71,6 +71,25 @@ internal static class Experimentals
///
public const string Extensions_Url = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp001";
+ ///
+ /// Diagnostic ID for experimental MCP Apps extension APIs.
+ ///
+ ///
+ /// This uses the same diagnostic ID as because
+ /// MCP Apps is implemented as an MCP extension ("io.modelcontextprotocol/ui").
+ ///
+ public const string Apps_DiagnosticId = "MCPEXP001";
+
+ ///
+ /// Message for the experimental MCP Apps extension APIs.
+ ///
+ public const string Apps_Message = "The MCP Apps extension is experimental and subject to change as the specification evolves.";
+
+ ///
+ /// URL for the experimental MCP Apps extension APIs.
+ ///
+ public const string Apps_Url = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp001";
+
///
/// Diagnostic ID for experimental SDK APIs unrelated to the MCP specification,
/// such as subclassing McpClient/McpServer or referencing RunSessionHandler.
diff --git a/src/ModelContextProtocol.Core/McpJsonUtilities.cs b/src/ModelContextProtocol.Core/McpJsonUtilities.cs
index abb6d29df..13a935311 100644
--- a/src/ModelContextProtocol.Core/McpJsonUtilities.cs
+++ b/src/ModelContextProtocol.Core/McpJsonUtilities.cs
@@ -187,6 +187,13 @@ internal static bool IsValidMcpToolSchema(JsonElement element)
[JsonSerializable(typeof(DynamicClientRegistrationRequest))]
[JsonSerializable(typeof(DynamicClientRegistrationResponse))]
+ // MCP Apps extension types
+ [JsonSerializable(typeof(Server.McpUiToolMeta))]
+ [JsonSerializable(typeof(Server.McpUiClientCapabilities))]
+ [JsonSerializable(typeof(Server.McpUiResourceMeta))]
+ [JsonSerializable(typeof(Server.McpUiResourceCsp))]
+ [JsonSerializable(typeof(Server.McpUiResourcePermissions))]
+
// Primitive types for use in consuming AIFunctions
[JsonSerializable(typeof(string))]
[JsonSerializable(typeof(byte))]
diff --git a/src/ModelContextProtocol.Core/Server/AIFunctionMcpServerTool.cs b/src/ModelContextProtocol.Core/Server/AIFunctionMcpServerTool.cs
index 700d9d26d..a83dd33ae 100644
--- a/src/ModelContextProtocol.Core/Server/AIFunctionMcpServerTool.cs
+++ b/src/ModelContextProtocol.Core/Server/AIFunctionMcpServerTool.cs
@@ -144,10 +144,21 @@ options.OpenWorld is not null ||
};
}
- // Populate Meta from options and/or McpMetaAttribute instances if a MethodInfo is available
+ // Populate Meta from options and/or McpMetaAttribute instances if a MethodInfo is available.
+ // Priority order (highest to lowest):
+ // 1. Explicit options.Meta entries
+ // 2. AppUi metadata (from McpAppUiAttribute or McpServerToolCreateOptions.AppUi)
+ // 3. McpMetaAttribute entries on the method
+ JsonObject? seededMeta = options.Meta;
+ if (options.AppUi is { } appUi)
+ {
+ seededMeta = seededMeta is not null ? CloneJsonObject(seededMeta) : new JsonObject();
+ McpApps.ApplyUiToolMetaToJsonObject(appUi, seededMeta);
+ }
+
tool.Meta = function.UnderlyingMethod is not null ?
- CreateMetaFromAttributes(function.UnderlyingMethod, options.Meta) :
- options.Meta;
+ CreateMetaFromAttributes(function.UnderlyingMethod, seededMeta) :
+ seededMeta;
// Apply user-specified Execution settings if provided
if (options.Execution is not null)
@@ -225,6 +236,16 @@ private static McpServerToolCreateOptions DeriveOptions(MethodInfo method, McpSe
newOptions.Description ??= descAttr.Description;
}
+ // Process McpAppUiAttribute — takes precedence over options.AppUi set via constructor.
+ if (method.GetCustomAttribute() is { } appUiAttr)
+ {
+ newOptions.AppUi = new McpUiToolMeta
+ {
+ ResourceUri = appUiAttr.ResourceUri,
+ Visibility = appUiAttr.Visibility,
+ };
+ }
+
// Set metadata if not already provided
newOptions.Metadata ??= CreateMetadata(method);
@@ -405,6 +426,18 @@ internal static IReadOnlyList
///
///
-/// Apply this attribute alongside to associate a tool with a
-/// UI resource in the MCP Apps extension. When processed, it populates both the structured
-/// _meta.ui object and the legacy _meta["ui/resourceUri"] flat key in the tool's
-/// metadata for backward compatibility with older MCP hosts.
+/// Apply this attribute alongside to associate an MCP Apps
+/// UI resource with the tool. When processed, it populates the structured _meta.ui object
+/// in the tool's metadata.
///
///
/// This attribute takes precedence over any raw [McpMeta("ui", ...)] attribute on the
diff --git a/src/ModelContextProtocol.Core/Server/McpApps.cs b/src/ModelContextProtocol.Core/Server/McpApps.cs
index 4f5292849..25077aeb6 100644
--- a/src/ModelContextProtocol.Core/Server/McpApps.cs
+++ b/src/ModelContextProtocol.Core/Server/McpApps.cs
@@ -5,90 +5,14 @@
namespace ModelContextProtocol.Server;
///
-/// Provides constants and helper methods for building MCP Apps-enabled servers.
+/// Internal helper methods for MCP Apps integration within the Core package.
+/// The public MCP Apps API surface is in the ModelContextProtocol.ExtApps package.
///
-///
-///
-/// MCP Apps is an extension to the Model Context Protocol that enables MCP servers to deliver
-/// interactive user interfaces — dashboards, forms, visualizations, and more — directly inside
-/// conversational AI clients.
-///
-///
-/// Use the constants in this class when populating the extensions capability and the
-/// _meta field of tools and resources. Use to check whether
-/// the connected client supports the MCP Apps extension.
-///
-///
-public static class McpApps
+internal static class McpAppsInternal
{
///
- /// The MIME type used for MCP App HTML resources.
- ///
- ///
- /// This MIME type should be used when registering UI resources with
- /// text/html;profile=mcp-app to indicate they are MCP App resources.
- ///
- public const string ResourceMimeType = "text/html;profile=mcp-app";
-
- ///
- /// The extension identifier used for MCP Apps capability negotiation.
- ///
- ///
- /// This key is used in the and
- /// dictionaries to advertise support for
- /// the MCP Apps extension.
- ///
- public const string ExtensionId = "io.modelcontextprotocol/ui";
-
- ///
- /// The legacy flat _meta key for the UI resource URI.
- ///
- ///
- ///
- /// This key is used for backward compatibility with older MCP hosts that do not support
- /// the nested _meta.ui object. When populating UI metadata, both this key and the
- /// ui object should be set to the same resource URI value.
- ///
- ///
- /// This key is considered legacy; prefer for new implementations.
- ///
- ///
- public const string ResourceUriMetaKey = "ui/resourceUri";
-
- ///
- /// Gets the MCP Apps client capability, if advertised by the connected client.
- ///
- /// The client capabilities received during the MCP initialize handshake.
- ///
- /// A instance if the client advertises support for the MCP Apps extension;
- /// otherwise, .
- ///
- ///
- /// Use this method to determine whether the connected client supports the MCP Apps extension
- /// and to read the client's supported MIME types.
- ///
- [Experimental(Experimentals.Apps_DiagnosticId, UrlFormat = Experimentals.Apps_Url)]
- public static McpUiClientCapabilities? GetUiCapability(ClientCapabilities? capabilities)
- {
- if (capabilities?.Extensions is not { } extensions ||
- !extensions.TryGetValue(ExtensionId, out var value))
- {
- return null;
- }
-
- if (value is JsonElement element)
- {
- return element.ValueKind == JsonValueKind.Null ? null :
- JsonSerializer.Deserialize(element, McpJsonUtilities.JsonContext.Default.McpUiClientCapabilities);
- }
-
- return null;
- }
-
- ///
- /// Applies UI tool metadata to a , setting both the
- /// ui object key and the legacy ui/resourceUri flat key for backward compatibility.
- /// Keys already present in are not overwritten.
+ /// Applies UI tool metadata to a , setting the
+ /// ui object key if not already present.
///
/// The UI tool metadata to apply.
/// The to populate.
@@ -103,11 +27,5 @@ internal static void ApplyUiToolMetaToJsonObject(McpUiToolMeta appUi, System.Tex
meta["ui"] = uiNode;
}
}
-
- // Populate the legacy flat "ui/resourceUri" key if not already present.
- if (!meta.ContainsKey(ResourceUriMetaKey) && appUi.ResourceUri is not null)
- {
- meta[ResourceUriMetaKey] = appUi.ResourceUri;
- }
}
}
diff --git a/src/ModelContextProtocol.Core/Server/McpServerToolCreateOptions.cs b/src/ModelContextProtocol.Core/Server/McpServerToolCreateOptions.cs
index 33c5b1c82..ac2d39c76 100644
--- a/src/ModelContextProtocol.Core/Server/McpServerToolCreateOptions.cs
+++ b/src/ModelContextProtocol.Core/Server/McpServerToolCreateOptions.cs
@@ -203,8 +203,7 @@ public sealed class McpServerToolCreateOptions
///
///
/// When set, this metadata is merged into during tool creation, populating
- /// both the structured _meta.ui object and the legacy _meta["ui/resourceUri"]
- /// flat key for backward compatibility with older MCP hosts.
+ /// the structured _meta.ui object.
///
///
/// Explicit entries already present in take precedence over values from
diff --git a/src/ModelContextProtocol.Core/Server/McpUiClientCapabilities.cs b/src/ModelContextProtocol.Core/Server/McpUiClientCapabilities.cs
index 91e649d59..55e4df3ac 100644
--- a/src/ModelContextProtocol.Core/Server/McpUiClientCapabilities.cs
+++ b/src/ModelContextProtocol.Core/Server/McpUiClientCapabilities.cs
@@ -8,12 +8,9 @@ namespace ModelContextProtocol.Server;
///
///
///
-/// This object is the value associated with the key in the
+/// This object is the value associated with the "io.modelcontextprotocol/ui" key in the
/// dictionary.
///
-///
-/// Use to read this from .
-///
///
[Experimental(Experimentals.Apps_DiagnosticId, UrlFormat = Experimentals.Apps_Url)]
public sealed class McpUiClientCapabilities
@@ -22,8 +19,7 @@ public sealed class McpUiClientCapabilities
/// Gets or sets the list of MIME types supported by the client for MCP App UI resources.
///
///
- /// A client that supports MCP Apps must include
- /// ("text/html;profile=mcp-app") in this list.
+ /// A client that supports MCP Apps must include "text/html;profile=mcp-app" in this list.
///
[JsonPropertyName("mimeTypes")]
public IList? MimeTypes { get; set; }
diff --git a/src/ModelContextProtocol.Core/Server/McpUiToolMeta.cs b/src/ModelContextProtocol.Core/Server/McpUiToolMeta.cs
index f56396e29..464061086 100644
--- a/src/ModelContextProtocol.Core/Server/McpUiToolMeta.cs
+++ b/src/ModelContextProtocol.Core/Server/McpUiToolMeta.cs
@@ -12,10 +12,6 @@ namespace ModelContextProtocol.Server;
/// It associates the tool with a UI resource (identified by a ui:// URI) and optionally
/// controls which principals (model, app) can call the tool.
///
-///
-/// When this metadata is applied, both the structured _meta.ui object and the legacy
-/// _meta["ui/resourceUri"] flat key are populated for backward compatibility with older hosts.
-///
///
[Experimental(Experimentals.Apps_DiagnosticId, UrlFormat = Experimentals.Apps_Url)]
public sealed class McpUiToolMeta
diff --git a/src/ModelContextProtocol.ExtApps/ModelContextProtocol.ExtApps.csproj b/src/ModelContextProtocol.ExtApps/ModelContextProtocol.ExtApps.csproj
new file mode 100644
index 000000000..bcea236ca
--- /dev/null
+++ b/src/ModelContextProtocol.ExtApps/ModelContextProtocol.ExtApps.csproj
@@ -0,0 +1,44 @@
+
+
+
+ net10.0;net9.0;net8.0;netstandard2.0
+ true
+ true
+ ModelContextProtocol.ExtApps
+ MCP Apps extension for the .NET Model Context Protocol (MCP) SDK
+ README.md
+
+ $(NoWarn);MCPEXP001
+
+ false
+
+
+
+ true
+
+
+
+
+ $(NoWarn);CS0436
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/ModelContextProtocol.ExtApps/Server/McpApps.cs b/src/ModelContextProtocol.ExtApps/Server/McpApps.cs
new file mode 100644
index 000000000..ed58c28eb
--- /dev/null
+++ b/src/ModelContextProtocol.ExtApps/Server/McpApps.cs
@@ -0,0 +1,75 @@
+using ModelContextProtocol.Protocol;
+using System.Diagnostics.CodeAnalysis;
+using System.Text.Json;
+using System.Text.Json.Serialization.Metadata;
+
+namespace ModelContextProtocol.Server;
+
+///
+/// Provides constants and helper methods for building MCP Apps-enabled servers.
+///
+///
+///
+/// MCP Apps is an extension to the Model Context Protocol that enables MCP servers to deliver
+/// interactive user interfaces — dashboards, forms, visualizations, and more — directly inside
+/// conversational AI clients.
+///
+///
+/// Use the constants in this class when populating the extensions capability and the
+/// _meta field of tools and resources. Use to check whether
+/// the connected client supports the MCP Apps extension.
+///
+///
+public static class McpApps
+{
+ ///
+ /// The MIME type used for MCP App HTML resources.
+ ///
+ ///
+ /// This MIME type should be used when registering UI resources with
+ /// text/html;profile=mcp-app to indicate they are MCP App resources.
+ ///
+ public const string ResourceMimeType = "text/html;profile=mcp-app";
+
+ ///
+ /// The extension identifier used for MCP Apps capability negotiation.
+ ///
+ ///
+ /// This key is used in the and
+ /// dictionaries to advertise support for
+ /// the MCP Apps extension.
+ ///
+ public const string ExtensionId = "io.modelcontextprotocol/ui";
+
+ ///
+ /// Gets the MCP Apps client capability, if advertised by the connected client.
+ ///
+ /// The client capabilities received during the MCP initialize handshake.
+ ///
+ /// A instance if the client advertises support for the MCP Apps extension;
+ /// otherwise, .
+ ///
+ ///
+ /// Use this method to determine whether the connected client supports the MCP Apps extension
+ /// and to read the client's supported MIME types.
+ ///
+ [Experimental(Experimentals.Apps_DiagnosticId, UrlFormat = Experimentals.Apps_Url)]
+ public static McpUiClientCapabilities? GetUiCapability(ClientCapabilities? capabilities)
+ {
+ if (capabilities?.Extensions is not { } extensions ||
+ !extensions.TryGetValue(ExtensionId, out var value))
+ {
+ return null;
+ }
+
+ if (value is JsonElement element)
+ {
+ return element.ValueKind == JsonValueKind.Null ? null :
+ (McpUiClientCapabilities?)JsonSerializer.Deserialize(
+ element,
+ (JsonTypeInfo)McpJsonUtilities.DefaultOptions.GetTypeInfo(typeof(McpUiClientCapabilities)));
+ }
+
+ return null;
+ }
+}
diff --git a/tests/ModelContextProtocol.Tests/ModelContextProtocol.Tests.csproj b/tests/ModelContextProtocol.Tests/ModelContextProtocol.Tests.csproj
index 0985f4cd7..dc905e6e6 100644
--- a/tests/ModelContextProtocol.Tests/ModelContextProtocol.Tests.csproj
+++ b/tests/ModelContextProtocol.Tests/ModelContextProtocol.Tests.csproj
@@ -85,6 +85,7 @@
+
diff --git a/tests/ModelContextProtocol.Tests/Server/McpAppsTests.cs b/tests/ModelContextProtocol.Tests/Server/McpAppsTests.cs
index f0d76def5..d7b2f2170 100644
--- a/tests/ModelContextProtocol.Tests/Server/McpAppsTests.cs
+++ b/tests/ModelContextProtocol.Tests/Server/McpAppsTests.cs
@@ -22,7 +22,6 @@ public void McpApps_Constants_HaveExpectedValues()
{
Assert.Equal("text/html;profile=mcp-app", McpApps.ResourceMimeType);
Assert.Equal("io.modelcontextprotocol/ui", McpApps.ExtensionId);
- Assert.Equal("ui/resourceUri", McpApps.ResourceUriMetaKey);
}
[Fact]
@@ -212,9 +211,6 @@ public void McpAppUiAttribute_PopulatesBothUiObjectAndLegacyKey()
var uiNode = meta["ui"]?.AsObject();
Assert.NotNull(uiNode);
Assert.Equal("ui://weather/view.html", uiNode["resourceUri"]?.GetValue());
-
- // Legacy flat key
- Assert.Equal("ui://weather/view.html", meta[McpApps.ResourceUriMetaKey]?.GetValue());
}
[Fact]
@@ -248,9 +244,6 @@ public void McpAppUiAttribute_TakesPrecedenceOver_McpMetaAttribute()
Assert.NotNull(uiNode);
Assert.Equal("ui://app-ui/view.html", uiNode["resourceUri"]?.GetValue());
- // The legacy key should be from McpAppUiAttribute
- Assert.Equal("ui://app-ui/view.html", meta[McpApps.ResourceUriMetaKey]?.GetValue());
-
// Other McpMeta attributes should still be present
Assert.Equal("extra-value", meta["extraKey"]?.GetValue());
}
@@ -263,14 +256,12 @@ public void McpAppUiAttribute_ExplicitOptionsMeta_TakesPrecedenceOver_Attribute(
var explicitMeta = new JsonObject
{
["ui"] = new JsonObject { ["resourceUri"] = "ui://explicit/override.html" },
- [McpApps.ResourceUriMetaKey] = "ui://explicit/override.html",
};
var tool = McpServerTool.Create(method, target: null, new McpServerToolCreateOptions { Meta = explicitMeta });
var uiNode = tool.ProtocolTool.Meta?["ui"]?.AsObject();
Assert.Equal("ui://explicit/override.html", uiNode?["resourceUri"]?.GetValue());
- Assert.Equal("ui://explicit/override.html", tool.ProtocolTool.Meta?[McpApps.ResourceUriMetaKey]?.GetValue());
}
#endregion
@@ -294,7 +285,6 @@ public void AppUi_PopulatesBothUiObjectAndLegacyKey()
var uiNode = meta["ui"]?.AsObject();
Assert.NotNull(uiNode);
Assert.Equal("ui://weather/view.html", uiNode["resourceUri"]?.GetValue());
- Assert.Equal("ui://weather/view.html", meta[McpApps.ResourceUriMetaKey]?.GetValue());
}
[Fact]
@@ -343,9 +333,8 @@ public void AppUi_ExplicitMeta_TakesPrecedenceOver_AppUi()
}
[Fact]
- public void AppUi_NullResourceUri_DoesNotPopulateLegacyKey()
+ public void AppUi_NullResourceUri_ProducesUiObjectWithoutResourceUri()
{
- // AppUi with no ResourceUri should not add the legacy flat key
var tool = McpServerTool.Create(
(string location) => $"Weather for {location}",
new McpServerToolCreateOptions
@@ -354,7 +343,9 @@ public void AppUi_NullResourceUri_DoesNotPopulateLegacyKey()
AppUi = new McpUiToolMeta { Visibility = [McpUiToolVisibility.App] },
});
- Assert.Null(tool.ProtocolTool.Meta?[McpApps.ResourceUriMetaKey]);
+ var uiNode = tool.ProtocolTool.Meta?["ui"]?.AsObject();
+ Assert.NotNull(uiNode);
+ Assert.Null(uiNode["resourceUri"]);
}
[Fact]
@@ -373,7 +364,6 @@ public void AppUi_IsPreservedWhenOptionsAreClonedInDeriveOptions()
var meta = tool.ProtocolTool.Meta;
Assert.NotNull(meta);
Assert.NotNull(meta["ui"]);
- Assert.NotNull(meta[McpApps.ResourceUriMetaKey]);
}
#endregion