Skip to content

Commit 84057cd

Browse files
committed
add deeplink button for cursor
1 parent 607c23d commit 84057cd

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

frontend/src/lib/components/settings/TokensTable.svelte

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,28 @@
223223

224224
{#if newMcpToken}
225225
<div
226-
class="border rounded-md mb-6 px-2 py-2 bg-green-50 dark:bg-green-200 dark:text-green-800 flex flex-row flex-wrap"
226+
class="border rounded-md mb-6 px-2 py-2 bg-green-50 dark:bg-green-200 dark:text-green-800 flex flex-col"
227227
>
228228
<p class="text-sm mb-2">New MCP URL:</p>
229229
<ClipboardPanel content={`${mcpBaseUrl}${newMcpToken}`} />
230230
<p class="pt-1 text-xs">
231231
Make sure to copy this URL now. You won't be able to see it again!
232232
</p>
233+
<div class="flex flex-row justify-end gap-2 items-center">
234+
<a
235+
href={`https://cursor.com/install-mcp?name=windmill&config=${btoa(
236+
JSON.stringify({
237+
url: `${mcpBaseUrl}${newMcpToken}`
238+
})
239+
)}`}
240+
class="pt-2"
241+
><img
242+
src="https://cursor.com/deeplink/mcp-install-dark.svg"
243+
alt="Add windmill MCP server to Cursor"
244+
height="32"
245+
/></a
246+
>
247+
</div>
233248
</div>
234249
{/if}
235250

0 commit comments

Comments
 (0)