Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
435 lines (435 loc) · 16.2 KB
/
Copy pathpackage.json
File metadata and controls
435 lines (435 loc) · 16.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
{
"name": "perplexity-vscode",
"displayName": "Perplexity MCP",
"version": "0.8.61",
"publisher": "Nskha",
"private": true,
"description": "Perplexity AI search, reasoning, research, and compute — MCP server, dashboard, and multi-IDE auto-config for VS Code.",
"icon": "media/icon.png",
"license": "MIT",
"author": {
"name": "Nskha",
"url": "https://github.com/automations-Project"
},
"repository": {
"type": "git",
"url": "https://github.com/Automations-Project/VSCode-Perplexity-MCP.git"
},
"homepage": "https://github.com/Automations-Project/VSCode-Perplexity-MCP#readme",
"bugs": {
"url": "https://github.com/Automations-Project/VSCode-Perplexity-MCP/issues"
},
"qna": "https://github.com/Automations-Project/VSCode-Perplexity-MCP/discussions",
"sponsor": {
"url": "https://github.com/sponsors/automations-Project"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/automations-Project"
},
{
"type": "individual",
"url": "https://github.com/Automations-Project/VSCode-Perplexity-MCP"
}
],
"engines": {
"vscode": "^1.102.0",
"node": "^22.0.0 || ^24.0.0"
},
"categories": [
"AI",
"Other"
],
"keywords": [
"perplexity",
"mcp",
"ai",
"search",
"research"
],
"activationEvents": [
"onStartupFinished",
"onView:Perplexity.dashboard",
"onCommand:Perplexity.openDashboard",
"onCommand:Perplexity.login",
"onCommand:Perplexity.generateConfigs",
"onCommand:Perplexity.refreshDashboard",
"onCommand:Perplexity.refreshModels",
"onCommand:Perplexity.daemon.status",
"onCommand:Perplexity.daemon.rotateToken",
"onCommand:Perplexity.copyDaemonBearer",
"onCommand:Perplexity.showDaemonBearer",
"onCommand:Perplexity.daemon.enableTunnel",
"onCommand:Perplexity.daemon.disableTunnel",
"onCommand:Perplexity.openRichView",
"onCommand:Perplexity.exportHistory",
"onCommand:Perplexity.rebuildHistoryIndex",
"onCommand:Perplexity.syncCloudHistory",
"onCommand:Perplexity.logout",
"onCommand:Perplexity.switchAccount",
"onCommand:Perplexity.addAccount",
"onCommand:Perplexity.captureDiagnostics",
"onCommand:Perplexity.regenerateStaleConfigs",
"onCommand:Perplexity.resetTransportConfirmations"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "Perplexity.openDashboard",
"title": "Perplexity: Open Dashboard",
"category": "Perplexity"
},
{
"command": "Perplexity.login",
"title": "Perplexity: Login",
"category": "Perplexity"
},
{
"command": "Perplexity.generateConfigs",
"title": "Perplexity: Generate MCP Configs",
"category": "Perplexity"
},
{
"command": "Perplexity.refreshDashboard",
"title": "Perplexity: Refresh Dashboard",
"category": "Perplexity"
},
{
"command": "Perplexity.refreshModels",
"title": "Perplexity: Refresh Models (Live Fetch)",
"category": "Perplexity"
},
{
"command": "Perplexity.daemon.status",
"title": "Perplexity: Daemon Status",
"category": "Perplexity"
},
{
"command": "Perplexity.daemon.rotateToken",
"title": "Perplexity: Rotate Daemon Token",
"category": "Perplexity"
},
{
"command": "Perplexity.copyDaemonBearer",
"title": "Perplexity: Copy Daemon Bearer",
"category": "Perplexity"
},
{
"command": "Perplexity.showDaemonBearer",
"title": "Perplexity: Show Daemon Bearer (30s)",
"category": "Perplexity"
},
{
"command": "Perplexity.daemon.enableTunnel",
"title": "Perplexity: Enable Daemon Tunnel",
"category": "Perplexity"
},
{
"command": "Perplexity.daemon.disableTunnel",
"title": "Perplexity: Disable Daemon Tunnel",
"category": "Perplexity"
},
{
"command": "Perplexity.openRichView",
"title": "Perplexity: Open Rich View",
"category": "Perplexity"
},
{
"command": "Perplexity.exportHistory",
"title": "Perplexity: Export History Entry",
"category": "Perplexity"
},
{
"command": "Perplexity.rebuildHistoryIndex",
"title": "Perplexity: Rebuild History Index",
"category": "Perplexity"
},
{
"command": "Perplexity.syncCloudHistory",
"title": "Perplexity: Sync History from Cloud",
"category": "Perplexity"
},
{
"command": "Perplexity.installSpeedBoost",
"title": "Perplexity: Install Speed Boost (impit)",
"category": "Perplexity"
},
{
"command": "Perplexity.uninstallSpeedBoost",
"title": "Perplexity: Uninstall Speed Boost (impit)",
"category": "Perplexity"
},
{
"command": "Perplexity.logout",
"title": "Perplexity: Logout",
"category": "Perplexity"
},
{
"command": "Perplexity.switchAccount",
"title": "Perplexity: Switch Account",
"category": "Perplexity"
},
{
"command": "Perplexity.addAccount",
"title": "Perplexity: Add Account",
"category": "Perplexity"
},
{
"command": "Perplexity.doctor",
"title": "Perplexity: Run Doctor",
"category": "Perplexity"
},
{
"command": "Perplexity.doctorReportIssue",
"title": "Perplexity: Report Issue from Doctor",
"category": "Perplexity"
},
{
"command": "Perplexity.captureDiagnostics",
"title": "Perplexity: Capture Diagnostics Bundle",
"category": "Perplexity"
},
{
"command": "Perplexity.regenerateStaleConfigs",
"title": "Perplexity: Regenerate Stale Configs",
"category": "Perplexity"
},
{
"command": "Perplexity.resetTransportConfirmations",
"title": "Perplexity: Reset Per-IDE Transport Confirmations",
"category": "Perplexity"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "Perplexity",
"title": "Perplexity",
"icon": "media/perplexity.svg"
}
]
},
"views": {
"Perplexity": [
{
"id": "Perplexity.dashboard",
"name": "Dashboard",
"type": "webview",
"icon": "media/perplexity.svg"
}
]
},
"menus": {
"view/title": [
{
"command": "Perplexity.refreshDashboard",
"when": "view == Perplexity.dashboard",
"group": "navigation"
},
{
"command": "Perplexity.login",
"when": "view == Perplexity.dashboard",
"group": "navigation@1"
}
]
},
"configuration": {
"title": "Perplexity MCP",
"properties": {
"Perplexity.defaultSearchModel": {
"type": "string",
"default": "pplx_pro",
"description": "Default model used by the embedded MCP server for flexible ask/search tools."
},
"Perplexity.reasonModel": {
"type": "string",
"default": "claude46sonnetthinking",
"description": "Default model for the perplexity_reason tool (multi-step reasoning)."
},
"Perplexity.researchModel": {
"type": "string",
"default": "pplx_alpha",
"description": "Default model for the perplexity_research tool (deep research reports)."
},
"Perplexity.computeModel": {
"type": "string",
"default": "pplx_asi",
"description": "Default model for the perplexity_compute tool (ASI / computer mode)."
},
"Perplexity.chromePath": {
"type": "string",
"default": "",
"description": "Optional absolute path to Google Chrome. When empty the extension falls back to auto-detection. Superseded by Perplexity.browserChoice for new installs."
},
"Perplexity.browserChoice": {
"type": [
"object",
"null"
],
"default": null,
"description": "Selected browser runtime. Managed by the dashboard Browser Settings picker; edit directly at your own risk.",
"properties": {
"mode": {
"type": "string",
"enum": [
"auto",
"custom"
]
},
"channel": {
"type": "string",
"enum": [
"chrome",
"msedge",
"chromium"
]
},
"executablePath": {
"type": "string"
},
"label": {
"type": "string"
}
}
},
"Perplexity.debugMode": {
"type": "boolean",
"default": false,
"description": "Enable verbose debug logging in the Perplexity MCP output channel."
},
"Perplexity.autoConfigureCursor": {
"type": "boolean",
"default": false,
"description": "Offer and generate Cursor MCP configuration when Cursor is detected."
},
"Perplexity.autoConfigureWindsurf": {
"type": "boolean",
"default": false,
"description": "Offer and generate Windsurf MCP configuration when Windsurf is detected."
},
"Perplexity.autoConfigureWindsurfNext": {
"type": "boolean",
"default": false,
"description": "Offer and generate Windsurf Next MCP configuration when Windsurf Next is detected."
},
"Perplexity.autoConfigureClaudeDesktop": {
"type": "boolean",
"default": false,
"description": "Offer and generate Claude Desktop configuration when Claude Desktop is detected."
},
"Perplexity.autoConfigureClaudeCode": {
"type": "boolean",
"default": false,
"description": "Offer and generate Claude Code (~/.claude.json) MCP configuration."
},
"Perplexity.autoConfigureCline": {
"type": "boolean",
"default": false,
"description": "Offer and generate Cline MCP configuration."
},
"Perplexity.autoConfigureAmp": {
"type": "boolean",
"default": false,
"description": "Offer and generate Amp (Sourcegraph) MCP configuration."
},
"Perplexity.autoConfigureCodexCli": {
"type": "boolean",
"default": false,
"description": "Offer and generate OpenAI Codex CLI MCP configuration."
},
"Perplexity.autoConfigureGrok": {
"type": "boolean",
"default": false,
"description": "Offer and generate xAI Grok (~/.grok/config.toml) MCP configuration."
},
"Perplexity.autoRefreshIntervalHours": {
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 168,
"description": "Hours between automatic session health checks. 0 to disable."
},
"Perplexity.debugVerboseHttp": {
"type": "boolean",
"default": false,
"description": "Include HTTP traffic from the MCP server in debug events."
},
"Perplexity.oauthConsentCacheTtlHours": {
"type": "number",
"default": 24,
"minimum": 0,
"maximum": 720,
"description": "Hours a granted OAuth consent is remembered before re-prompting. 0 disables the cache (modal every time). Applies after the daemon is restarted."
},
"Perplexity.mcpTransportByIde": {
"type": "object",
"default": {},
"additionalProperties": {
"type": "string",
"enum": [
"stdio-in-process",
"stdio-daemon-proxy",
"http-loopback",
"http-tunnel"
]
},
"description": "Per-IDE MCP transport selection. Keys are IDE target names (e.g., 'cursor', 'claudeDesktop'); missing keys resolve to 'stdio-daemon-proxy'."
},
"Perplexity.daemonPort": {
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 65535,
"description": "Pinned loopback port for the embedded daemon. 0 = ephemeral (OS-assigned, changes on restart). Set a fixed port (1024-65535) to keep VS Code's own MCP registration and http-loopback IDE configs stable across daemon restarts. Takes effect the next time the daemon starts."
},
"Perplexity.syncFolderPatterns": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Extra regex patterns used to detect cloud-sync folders when generating http-loopback configs. Matches against the target path or any ancestor directory. Well-known patterns (iCloud, OneDrive, Dropbox, Google Drive, Syncthing, pCloud) are always detected - this setting adds user-specific ones."
},
"Perplexity.autoRegenerateStaleConfigs": {
"type": "boolean",
"default": true,
"description": "When a configured IDE's mcp.json contains a stale URL or bearer (after a daemon restart or tunnel change), automatically regenerate it with current live values. When disabled, the dashboard shows a banner and the user must click 'Regenerate all' manually."
},
"Perplexity.enableTunnels": {
"type": "boolean",
"default": false,
"description": "Enable remote access via Cloudflare or ngrok tunnels. When disabled, the dashboard shows only loopback (127.0.0.1) configuration; tunnel-related UI is hidden and http-tunnel is not offered as a transport option. Turn this on to expose the MCP server over the internet (with OAuth + WAF)."
}
}
},
"mcpServerDefinitionProviders": [
{
"id": "Perplexity.server",
"label": "Perplexity MCP"
}
]
},
"scripts": {
"clean": "rimraf dist media/webview",
"build": "npm run clean && npm run build -w @perplexity-user-mcp/shared && npm run build -w perplexity-user-mcp && npm run build:extension && npm run build:mcp && npm run build:webview && node ./scripts/emit-version.mjs && node ./scripts/prepare-webview.mjs",
"build:webview": "cd ../webview && npx vite build",
"build:extension": "tsup src/extension.ts --format cjs --platform node --target node20 --outDir dist --external vscode --external patchright --external patchright-core --external got-scraping --external got --external tough-cookie --external header-generator --external keytar --external gray-matter --external express --external @ngrok/ngrok --external helmet",
"build:mcp": "tsup ../mcp-server/src/index.ts ../mcp-server/src/manual-login-runner.js ../mcp-server/src/login-runner.js ../mcp-server/src/impit-login-runner.js ../mcp-server/src/health-check.js --format esm --platform node --target node20 --outDir dist/mcp --external patchright --external patchright-core --external got-scraping --external got --external tough-cookie --external header-generator --external keytar --external gray-matter --external express --external @ngrok/ngrok --external helmet && node -e \"require('fs').renameSync('dist/mcp/index.mjs','dist/mcp/server.mjs')\" && node -e \"require('fs').copyFileSync('../mcp-server/package.json','dist/mcp/package.json')\"",
"watch": "tsup src/extension.ts --format cjs --platform node --target node20 --outDir dist --external vscode --external patchright --external patchright-core --external got-scraping --external got --external tough-cookie --external header-generator --external keytar --external gray-matter --external express --external @ngrok/ngrok --external helmet --watch",
"prepare:package-deps": "node ./scripts/prepare-package-deps.mjs",
"typecheck": "tsc -p tsconfig.json --noEmit",
"package:vsix": "npm run build && npm run prepare:package-deps && npx @vscode/vsce package --allow-missing-repository --no-dependencies"
},
"dependencies": {},
"devDependencies": {
"@perplexity-user-mcp/shared": "*",
"@types/vscode": "^1.100.0",
"@vscode/vsce": "^3.9.1",
"jszip": "^3.10.1",
"patchright": "^1.59.4",
"perplexity-user-mcp": "*",
"tsup": "^8.5.1"
}
}