Add UI resource to ListResources response

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 <noreply@anthropic.com>
This commit is contained in:
Jerome Swannack 2025-12-07 18:21:10 +00:00
commit 50f135dace
No known key found for this signature in database

View file

@ -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,
};
});