Skip to content

Commit 7f52a2b

Browse files
committed
fix: use embed for mcp-ui embed
1 parent 4eecd75 commit 7f52a2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/mcp-server/src/mcp/handlers/tools/playground-link.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ export function playground_link(server: SvelteMcp) {
101101
url: playground_base.toString(),
102102
};
103103

104+
// use the embed path to have a cleaner UI for mcp-ui
105+
playground_base.pathname = '/playground/embed';
106+
104107
return {
105108
content: [
106109
{
@@ -111,7 +114,7 @@ export function playground_link(server: SvelteMcp) {
111114
uri: 'ui://svelte/playground-link',
112115
content: {
113116
type: 'externalUrl',
114-
iframeUrl: content.url,
117+
iframeUrl: playground_base.toString(),
115118
},
116119
encoding: 'text',
117120
}),

0 commit comments

Comments
 (0)