Merge pull request #25 from modelcontextprotocol/jerome/mcp-apps-list-resource
Add UI resource to ListResources response
This commit is contained in:
commit
e040655b45
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