Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

Commit 6215e83

Browse files
committed
Fix mcp-ui template
1 parent e1c0c8e commit 6215e83

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

  • packages/create-mcp-use-app/src/templates/ui/src

packages/create-mcp-use-app/src/templates/ui/src/server.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@ server.tool({
2222
required: true,
2323
},
2424
],
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-
},
25+
fn: async () => ({
26+
content: [
27+
createUIResource({
28+
uri: 'ui://widget/kanban-board',
29+
content: {
30+
type: 'externalUrl',
31+
iframeUrl: 'http://localhost:3000/mcp-use/widgets/kanban-board'
32+
},
33+
encoding: 'text',
34+
})
35+
]
36+
}),
3637
})
3738

3839
// MCP Resource for server status

0 commit comments

Comments
 (0)