Merge pull request #25 from modelcontextprotocol/jerome/mcp-apps-list-resource

Add UI resource to ListResources response
This commit is contained in:
Jerome 2025-12-07 18:23:13 +00:00 • committed by GitHub
commit e040655b45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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