Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
},
"metadata": {
"description": "Official Perplexity AI plugin providing real-time web search, reasoning, and research capabilities",
"version": "0.9.0"
"version": "1.0.0"
},
"plugins": [
{
"name": "perplexity",
"source": "./",
"description": "Real-time web search, reasoning, and research through Perplexity's API",
"version": "0.9.0",
"version": "1.0.0",
"author": {
"name": "Perplexity AI",
"email": "api@perplexity.ai"
Expand Down
21 changes: 21 additions & 0 deletions .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "perplexity",
"description": "Official Perplexity AI plugin providing real-time web search, reasoning, and research capabilities",
"version": "1.0.0",
"author": {
"name": "Perplexity AI",
"email": "api@perplexity.ai"
},
"homepage": "https://docs.perplexity.ai/guides/mcp-server",
"repository": "https://github.com/perplexityai/modelcontextprotocol",
"license": "MIT",
"keywords": [
"mcp",
"search",
"web-search",
"perplexity",
"research",
"reasoning",
"ai"
]
}
13 changes: 13 additions & 0 deletions .mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"mcpServers": {
"perplexity": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@perplexity-ai/mcp-server"],
"env": {
"PERPLEXITY_API_KEY": "${PERPLEXITY_API_KEY}",
"PERPLEXITY_TIMEOUT_MS": "${PERPLEXITY_TIMEOUT_MS:-600000}"
}
}
}
}
65 changes: 20 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perplexity-ai/mcp-server",
"version": "0.9.0",
"version": "1.0.0",
"mcpName": "ai.perplexity/mcp-server",
"description": "Real-time web search, reasoning, and research through Perplexity's API",
"keywords": [
Expand Down Expand Up @@ -32,7 +32,8 @@
"!dist/*.test.js",
"!dist/vitest.config.js",
"README.md",
".claude-plugin"
".claude-plugin",
".mcp.json"
],
"scripts": {
"build": "tsc && shx chmod +x dist/*.js",
Expand Down Expand Up @@ -63,7 +64,8 @@
"shx": "^0.4.0",
"tsx": "^4.19.4",
"typescript": "^5.9.3",
"vitest": "^4.0.5"
"vitest": "^4.0.5",
"picomatch": ">=4.0.4"
},
"engines": {
"node": ">=18"
Expand Down
4 changes: 2 additions & 2 deletions server.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"name": "ai.perplexity/mcp-server",
"title": "Perplexity API Platform",
"description": "Real-time web search, reasoning, and research through Perplexity's API",
"version": "0.9.0",
"version": "1.0.0",
"packages": [
{
"registryType": "npm",
"identifier": "@perplexity-ai/mcp-server",
"version": "0.9.0",
"version": "1.0.0",
"transport": {
"type": "stdio"
}
Expand Down
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ChatCompletionResponseSchema, SearchResponseSchema } from "./validation

const PERPLEXITY_API_KEY = process.env.PERPLEXITY_API_KEY;
const PERPLEXITY_BASE_URL = process.env.PERPLEXITY_BASE_URL || "https://api.perplexity.ai";
const VERSION = "0.9.0";
const VERSION = "1.0.0";

export function getProxyUrl(): string | undefined {
return process.env.PERPLEXITY_PROXY ||
Expand Down