Skip to content

Commit 8636e94

Browse files
generate deep links
1 parent 23d5cba commit 8636e94

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ This MCP server is a tool that allows IDEs (Cursor, Windsurf, Claude Code, etc.)
99

1010
### Cursor
1111

12-
Aadd the following to your global Cursor MCP configuration file (`~/.cursor/mcp.json`):
12+
<strong><a href="https://tinyurl.com/appwrite-docs-mcp-cursor">Click here to add the Appwrite Docs MCP Server to Cursor</a></strong>
1313

14-
<strong><a href="https://tinyurl.com/appwrite-docs-mcp">Click here to add the Appwrite Docs MCP Server to Cursor</a></strong>
14+
### VSCode
15+
16+
<strong><a href="https://tinyurl.com/appwrite-docs-mcp-vscode">Click here to add the Appwrite Docs MCP Server to Cursor</a></strong>
1517

1618
### Claude Code
1719

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"mcp-inspect": "mcp-inspector --transport http --server-url http://localhost:1234",
1010
"download-content": "bun run scripts/download-content.js",
1111
"init-vector-store": "rimraf tmp && mkdir tmp && bun run scripts/init-vector-store.ts",
12-
"init": "bun run download-content && bun run init-vector-store"
12+
"init": "bun run download-content && bun run init-vector-store",
13+
"generate-deeplinks": "bun run scripts/generate-deeplinks.ts"
1314
},
1415
"keywords": [],
1516
"author": "",

scripts/generate-deeplinks.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
const url = "http://localhost:1234"
2+
3+
function generateDeeplinks() {
4+
const cursor = generateCursorDeeplink()
5+
const vscode = generateVSCodeDeeplink()
6+
7+
console.log({
8+
cursor,
9+
vscode
10+
})
11+
}
12+
13+
function generateCursorDeeplink() {
14+
const base64 = Buffer.from(JSON.stringify({
15+
url
16+
})).toString("base64")
17+
18+
const deeplink = `cursor://anysphere.cursor-deeplink/mcp/install?name=appwrite-docs-mcp&config=${base64}`
19+
return deeplink
20+
}
21+
22+
function generateVSCodeDeeplink() {
23+
const deeplink = `vscode:mcp/install?${encodeURIComponent(JSON.stringify({
24+
name: "appwrite-docs-mcp",
25+
url,
26+
}))}`
27+
28+
return deeplink
29+
}
30+
31+
generateDeeplinks()

0 commit comments

Comments
 (0)