File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 44 dockerBuildPath : " ."
55startCommand :
66 type : " http"
7-
7+ configSchema :
8+ type : " object"
9+ required :
10+ - " PERPLEXITY_API_KEY"
11+ properties :
12+ PERPLEXITY_API_KEY :
13+ type : " string"
14+ description : " Your Perplexity API key from https://www.perplexity.ai/settings/api"
15+ PERPLEXITY_TIMEOUT_MS :
16+ type : " string"
17+ description : " Request timeout in milliseconds (default: 300000)"
Original file line number Diff line number Diff line change @@ -15,11 +15,8 @@ if (!PERPLEXITY_API_KEY) {
1515
1616const app = express ( ) ;
1717const PORT = parseInt ( process . env . PORT || "8080" , 10 ) ;
18- const BIND_ADDRESS = process . env . BIND_ADDRESS || "127.0.0.1" ;
19- const ALLOWED_ORIGINS = process . env . ALLOWED_ORIGINS ?. split ( "," ) || [
20- "http://localhost:3000" ,
21- "http://127.0.0.1:3000" ,
22- ] ;
18+ const BIND_ADDRESS = process . env . BIND_ADDRESS || "0.0.0.0" ;
19+ const ALLOWED_ORIGINS = process . env . ALLOWED_ORIGINS ?. split ( "," ) || [ "*" ] ;
2320
2421// CORS configuration for browser-based MCP clients
2522app . use ( cors ( {
You can’t perform that action at this time.
0 commit comments