Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion smithery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@ build:
dockerBuildPath: "."
startCommand:
type: "http"

configSchema:
type: "object"
required:
- "PERPLEXITY_API_KEY"
properties:
PERPLEXITY_API_KEY:
type: "string"
description: "Your Perplexity API key from https://www.perplexity.ai/settings/api"
PERPLEXITY_TIMEOUT_MS:
type: "string"
description: "Request timeout in milliseconds (default: 300000)"
7 changes: 2 additions & 5 deletions src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ if (!PERPLEXITY_API_KEY) {

const app = express();
const PORT = parseInt(process.env.PORT || "8080", 10);
const BIND_ADDRESS = process.env.BIND_ADDRESS || "127.0.0.1";
const ALLOWED_ORIGINS = process.env.ALLOWED_ORIGINS?.split(",") || [
"http://localhost:3000",
"http://127.0.0.1:3000",
];
const BIND_ADDRESS = process.env.BIND_ADDRESS || "0.0.0.0";
const ALLOWED_ORIGINS = process.env.ALLOWED_ORIGINS?.split(",") || ["*"];

// CORS configuration for browser-based MCP clients
app.use(cors({
Expand Down