@perplexity-ai/mcp-server 0.8.5 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Official Perplexity AI plugin providing real-time web search, reasoning, and research capabilities",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.9.0"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "perplexity",
|
|
14
14
|
"source": "./",
|
|
15
15
|
"description": "Real-time web search, reasoning, and research through Perplexity's API",
|
|
16
|
-
"version": "0.
|
|
16
|
+
"version": "0.9.0",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "Perplexity AI",
|
|
19
19
|
"email": "api@perplexity.ai"
|
package/dist/server.js
CHANGED
|
@@ -4,7 +4,7 @@ import { fetch as undiciFetch, ProxyAgent } from "undici";
|
|
|
4
4
|
import { ChatCompletionResponseSchema, SearchResponseSchema } from "./validation.js";
|
|
5
5
|
const PERPLEXITY_API_KEY = process.env.PERPLEXITY_API_KEY;
|
|
6
6
|
const PERPLEXITY_BASE_URL = process.env.PERPLEXITY_BASE_URL || "https://api.perplexity.ai";
|
|
7
|
-
const VERSION = "0.
|
|
7
|
+
const VERSION = "0.9.0";
|
|
8
8
|
export function getProxyUrl() {
|
|
9
9
|
return process.env.PERPLEXITY_PROXY ||
|
|
10
10
|
process.env.HTTPS_PROXY ||
|
|
@@ -59,7 +59,7 @@ async function makeApiRequest(endpoint, body, serviceOrigin) {
|
|
|
59
59
|
"Content-Type": "application/json",
|
|
60
60
|
"Authorization": `Bearer ${PERPLEXITY_API_KEY}`,
|
|
61
61
|
"User-Agent": `perplexity-mcp/${VERSION}`,
|
|
62
|
-
"X-Source": "mcp-server",
|
|
62
|
+
"X-Source": "pplx-mcp-server",
|
|
63
63
|
};
|
|
64
64
|
if (serviceOrigin) {
|
|
65
65
|
headers["X-Service"] = serviceOrigin;
|