Skip to content

Commit 67ae528

Browse files
authored
Merge pull request #77 from perplexityai/kesku/smithery-tidy
2 parents ac919f0 + 50da902 commit 67ae528

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

smithery.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@ build:
44
dockerBuildPath: "."
55
startCommand:
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)"

src/http.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ if (!PERPLEXITY_API_KEY) {
1515

1616
const app = express();
1717
const 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
2522
app.use(cors({

0 commit comments

Comments
 (0)