From 9cf701fc04d1e7430b424404e845c3cfa7c08678 Mon Sep 17 00:00:00 2001 From: centdix Date: Mon, 23 Jun 2025 10:12:57 +0200 Subject: [PATCH 1/2] add deeplink button for cursor --- .../lib/components/settings/TokensTable.svelte | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/settings/TokensTable.svelte b/frontend/src/lib/components/settings/TokensTable.svelte index d66e6c2df1aea..19c990d8bb512 100644 --- a/frontend/src/lib/components/settings/TokensTable.svelte +++ b/frontend/src/lib/components/settings/TokensTable.svelte @@ -223,13 +223,28 @@ {#if newMcpToken} New MCP URL: Make sure to copy this URL now. You won't be able to see it again! + + + {/if} From 52921383f977a6e4a2900886f9e5950a3edbe117 Mon Sep 17 00:00:00 2001 From: centdix Date: Mon, 23 Jun 2025 10:46:44 +0200 Subject: [PATCH 2/2] fix --- .../src/lib/components/settings/TokensTable.svelte | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/src/lib/components/settings/TokensTable.svelte b/frontend/src/lib/components/settings/TokensTable.svelte index 19c990d8bb512..bd42f0df10916 100644 --- a/frontend/src/lib/components/settings/TokensTable.svelte +++ b/frontend/src/lib/components/settings/TokensTable.svelte @@ -65,6 +65,11 @@ const workspaces = $derived(ensureCurrentWorkspaceIncluded($userWorkspaces, $workspaceStore)) const mcpBaseUrl = $derived(`${window.location.origin}/api/mcp/w/${newTokenWorkspace}/sse?token=`) + const cursorMcpUrl = $derived( + `cursor://anysphere.cursor-deeplink/mcp/install?name=windmill&config=${encodeURIComponent( + btoa(JSON.stringify({ url: `${mcpBaseUrl}${newMcpToken}` })) + )}` + ) const dispatch = createEventDispatcher() $effect(() => { @@ -231,13 +236,7 @@ Make sure to copy this URL now. You won't be able to see it again!
New MCP URL:
Make sure to copy this URL now. You won't be able to see it again!