From 50f135dace1c2e9108d692a8597dbfe3ff6c9458 Mon Sep 17 00:00:00 2001 From: Jerome Swannack Date: Sun, 7 Dec 2025 18:21:10 +0000 Subject: [PATCH] Add UI resource to ListResources response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Include the MCP Apps UI resource in the resources list so clients can discover it via resources/list. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/modules/mcp/services/mcp.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/modules/mcp/services/mcp.ts b/src/modules/mcp/services/mcp.ts index ffef4b6..b697f7d 100644 --- a/src/modules/mcp/services/mcp.ts +++ b/src/modules/mcp/services/mcp.ts @@ -250,8 +250,18 @@ export const createMcpServer = (): McpServerWrapper => { nextCursor = btoa(endIndex.toString()); } + // Add MCP Apps UI resources + const uiResources: Resource[] = [ + { + uri: HELLO_WORLD_APP_URI, + name: "Hello World MCP App", + description: "Interactive UI for the mcp_apps_hello_world tool", + mimeType: "text/html;profile=mcp-app", + }, + ]; + return { - resources, + resources: [...resources, ...uiResources], nextCursor, }; });