Skip to content

Commit 922a70f

Browse files
Mike Kistlerhalter73
andauthored
Apply suggestions from code review
Co-authored-by: Stephen Halter <shalter+msft@microsoft.com>
1 parent f471198 commit 922a70f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/concepts/apps/apps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ uid: apps
99

1010
[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.
1111

12-
[MCP Apps]: https://modelcontextprotocol.io/specification/draft/extensions/apps
12+
[MCP Apps]: https://modelcontextprotocol.io/extensions/apps/overview
1313

1414
> [!IMPORTANT]
1515
> MCP Apps support is experimental. All types are marked with `[Experimental("MCPEXP003")]` and require suppressing that diagnostic to use.
@@ -166,7 +166,7 @@ The MCP Apps spec defines display modes (`inline`, `fullscreen`, `pip`) that con
166166

167167
Hosts pass standardized CSS custom properties (e.g., `--color-background-primary`, `--color-text-primary`) to app iframes. Your HTML can reference these variables to automatically match the host's theme without any server-side configuration.
168168

169-
See the [MCP Apps specification](https://modelcontextprotocol.io/specification/draft/extensions/apps) for the full list of CSS variables.
169+
See the [MCP Apps specification](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx) for the full list of CSS variables.
170170

171171
## Single-file HTML bundling
172172

@@ -178,7 +178,7 @@ The <xref:ModelContextProtocol.Extensions.Apps.McpApps> class provides constants
178178

179179
| Constant | Value | Usage |
180180
| - | - | - |
181-
| `McpApps.ResourceMimeType` | `text/html;profile=mcp-app` | MIME type for UI resources |
181+
| `McpApps.HtmlMimeType` | `text/html;profile=mcp-app` | MIME type for UI resources |
182182
| `McpApps.ExtensionId` | `io.modelcontextprotocol/ui` | Key in `extensions` capability dictionary |
183183

184184
## Serialization

src/ModelContextProtocol.Extensions.Apps/Server/McpAppsBuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void PostConfigure(string? name, McpServerOptions options)
5656
options.Capabilities.Extensions ??= new Dictionary<string, object>();
5757
if (!options.Capabilities.Extensions.ContainsKey(McpApps.ExtensionId))
5858
{
59-
options.Capabilities.Extensions[McpApps.ExtensionId] = new { };
59+
options.Capabilities.Extensions[McpApps.ExtensionId] = new System.Text.Json.Nodes.JsonObject();
6060
}
6161

6262
if (options.ToolCollection is { IsEmpty: false } tools)

0 commit comments

Comments
 (0)