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:
parent
2b246dc707
commit
50f135dace
1 changed files with 11 additions and 1 deletions
|
|
@ -250,8 +250,18 @@ export const createMcpServer = (): McpServerWrapper => {
|
||||||
nextCursor = btoa(endIndex.toString());
|
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 {
|
return {
|
||||||
resources,
|
resources: [...resources, ...uiResources],
|
||||||
nextCursor,
|
nextCursor,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue