-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbin.js
More file actions
executable file
·30 lines (28 loc) · 744 Bytes
/
Copy pathbin.js
File metadata and controls
executable file
·30 lines (28 loc) · 744 Bytes
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
#!/usr/bin/env node
// Check if PERPLEXITY_API_KEY is set
if (!process.env.PERPLEXITY_API_KEY) {
process.stderr.write('Error: PERPLEXITY_API_KEY environment variable is required\n');
process.stderr.write('Please set it in your environment or in claude_desktop_config.json:\n');
process.stderr.write(`
{
"mcpServers": {
"perplexity-mcp": {
"command": "npx",
"args": [
"-y",
"@jschuller/perplexity-mcp"
],
"env": {
"PERPLEXITY_API_KEY": "your_perplexity_api_key_here"
}
}
}
}
`);
process.exit(1);
}
// Load the transpiled server
import('./dist/index.js').catch(err => {
process.stderr.write(`Error loading the MCP server: ${err.message}\n`);
process.exit(1);
});