There was an error while loading. Please reload this page.
1 parent e1c0c8e commit 6215e83Copy full SHA for 6215e83
1 file changed
packages/create-mcp-use-app/src/templates/ui/src/server.ts
@@ -22,17 +22,18 @@ server.tool({
22
required: true,
23
},
24
],
25
- fn: async () => {
26
- const uiResource = createUIResource({
27
- uri: 'ui://widget/kanban-board',
28
- content: {
29
- type: 'externalUrl',
30
- iframeUrl: 'http://localhost:3000/mcp-use/widgets/kanban-board'
31
- },
32
- encoding: 'text',
33
- })
34
- return uiResource
35
+ fn: async () => ({
+ content: [
+ createUIResource({
+ uri: 'ui://widget/kanban-board',
+ content: {
+ type: 'externalUrl',
+ iframeUrl: 'http://localhost:3000/mcp-use/widgets/kanban-board'
+ },
+ encoding: 'text',
+ })
+ ]
36
+ }),
37
})
38
39
// MCP Resource for server status
0 commit comments