Skip to content

Commit 79ce21c

Browse files
author
Kesku
committed
fix test, bump to 0.9
1 parent a55a930 commit 79ce21c

6 files changed

Lines changed: 14 additions & 13 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
},
77
"metadata": {
88
"description": "Official Perplexity AI plugin providing real-time web search, reasoning, and research capabilities",
9-
"version": "0.8.5"
9+
"version": "0.9.0"
1010
},
1111
"plugins": [
1212
{
1313
"name": "perplexity",
1414
"source": "./",
1515
"description": "Real-time web search, reasoning, and research through Perplexity's API",
16-
"version": "0.8.5",
16+
"version": "0.9.0",
1717
"author": {
1818
"name": "Perplexity AI",
1919
"email": "api@perplexity.ai"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@perplexity-ai/mcp-server",
3-
"version": "0.8.5",
3+
"version": "0.9.0",
44
"mcpName": "ai.perplexity/mcp-server",
55
"description": "Real-time web search, reasoning, and research through Perplexity's API",
66
"keywords": [

server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"name": "ai.perplexity/mcp-server",
44
"title": "Perplexity API Platform",
55
"description": "Real-time web search, reasoning, and research through Perplexity's API",
6-
"version": "0.8.5",
6+
"version": "0.9.0",
77
"packages": [
88
{
99
"registryType": "npm",
1010
"identifier": "@perplexity-ai/mcp-server",
11-
"version": "0.8.5",
11+
"version": "0.9.0",
1212
"transport": {
1313
"type": "stdio"
1414
}

src/index.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@ describe("Perplexity MCP Server", () => {
7979
"https://api.perplexity.ai/chat/completions",
8080
expect.objectContaining({
8181
method: "POST",
82-
headers: {
82+
headers: expect.objectContaining({
8383
"Content-Type": "application/json",
8484
Authorization: "Bearer test-api-key",
85-
},
85+
"X-Source": "pplx-mcp-server",
86+
}),
8687
body: JSON.stringify({
8788
model: "sonar-pro",
8889
messages,
@@ -200,10 +201,10 @@ describe("Perplexity MCP Server", () => {
200201
"https://api.perplexity.ai/search",
201202
expect.objectContaining({
202203
method: "POST",
203-
headers: {
204+
headers: expect.objectContaining({
204205
"Content-Type": "application/json",
205206
Authorization: "Bearer test-api-key",
206-
},
207+
}),
207208
body: JSON.stringify({
208209
query: "test query",
209210
max_results: 10,

src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ChatCompletionResponseSchema, SearchResponseSchema } from "./validation
1313

1414
const PERPLEXITY_API_KEY = process.env.PERPLEXITY_API_KEY;
1515
const PERPLEXITY_BASE_URL = process.env.PERPLEXITY_BASE_URL || "https://api.perplexity.ai";
16-
const VERSION = "0.8.5";
16+
const VERSION = "0.9.0";
1717

1818
export function getProxyUrl(): string | undefined {
1919
return process.env.PERPLEXITY_PROXY ||
@@ -83,7 +83,7 @@ async function makeApiRequest(
8383
"Content-Type": "application/json",
8484
"Authorization": `Bearer ${PERPLEXITY_API_KEY}`,
8585
"User-Agent": `perplexity-mcp/${VERSION}`,
86-
"X-Source": "mcp-server",
86+
"X-Source": "pplx-mcp-server",
8787
};
8888
if (serviceOrigin) {
8989
headers["X-Service"] = serviceOrigin;

0 commit comments

Comments
 (0)