Skip to content

Commit c61ac2a

Browse files
authored
Merge pull request #67 from perplexityai/kesku/claude-plugin
2 parents c0ba8d7 + b357a5c commit c61ac2a

File tree

6 files changed

+121
-6
lines changed

6 files changed

+121
-6
lines changed

.claude-plugin/marketplace.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "perplexity-mcp-server",
3+
"owner": {
4+
"name": "Perplexity AI",
5+
"email": "api@perplexity.ai"
6+
},
7+
"metadata": {
8+
"description": "Official Perplexity AI plugin providing real-time web search, reasoning, and research capabilities",
9+
"version": "0.4.0"
10+
},
11+
"plugins": [
12+
{
13+
"name": "perplexity",
14+
"source": "./",
15+
"description": "Real-time web search, reasoning, and research through Perplexity's API",
16+
"version": "0.4.0",
17+
"author": {
18+
"name": "Perplexity AI",
19+
"email": "api@perplexity.ai"
20+
},
21+
"homepage": "https://docs.perplexity.ai/guides/mcp-server",
22+
"repository": "https://github.com/perplexityai/modelcontextprotocol",
23+
"license": "MIT",
24+
"keywords": [
25+
"mcp",
26+
"search",
27+
"web-search",
28+
"perplexity",
29+
"research",
30+
"reasoning",
31+
"ai"
32+
],
33+
"category": "productivity",
34+
"strict": false,
35+
"mcpServers": {
36+
"perplexity": {
37+
"type": "stdio",
38+
"command": "npx",
39+
"args": ["-y", "@perplexity-ai/mcp-server"],
40+
"env": {
41+
"PERPLEXITY_API_KEY": "${PERPLEXITY_API_KEY}",
42+
"PERPLEXITY_TIMEOUT_MS": "${PERPLEXITY_TIMEOUT_MS:-600000}"
43+
}
44+
}
45+
}
46+
}
47+
]
48+
}
49+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Validate Plugin Configuration
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.claude-plugin/**'
7+
- 'package.json'
8+
push:
9+
branches: [main]
10+
paths:
11+
- '.claude-plugin/**'
12+
- 'package.json'
13+
14+
jobs:
15+
validate:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
27+
- name: Install Claude CLI
28+
run: npm install -g @anthropic-ai/claude-code
29+
30+
- name: Validate Plugin Configuration
31+
run: claude plugin validate .
32+
33+
- name: Check Plugin Files Exist
34+
run: |
35+
if [ ! -f ".claude-plugin/marketplace.json" ]; then
36+
echo "Error: .claude-plugin/marketplace.json not found"
37+
exit 1
38+
fi
39+
echo "✓ Marketplace file exists"
40+
41+
- name: Validate JSON Syntax
42+
run: |
43+
echo "Validating marketplace.json syntax..."
44+
cat .claude-plugin/marketplace.json | jq empty
45+
echo "✓ JSON syntax is valid"
46+

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,25 @@ Advanced reasoning and problem-solving using the `sonar-reasoning-pro` model. Pe
3232

3333
### Claude Code
3434

35+
#### Option 1: Install via Plugin (Recommended)
36+
37+
The easiest way to get started with Perplexity in Claude Code:
38+
39+
```bash
40+
# Add the Perplexity marketplace
41+
/plugin marketplace add perplexityai/modelcontextprotocol
42+
43+
# Install the plugin
44+
/plugin install perplexity
45+
```
46+
47+
Then set your API key:
48+
```bash
49+
export PERPLEXITY_API_KEY="your_key_here"
50+
```
51+
52+
#### Option 2: Manual Configuration
53+
3554
Run in your terminal:
3655

3756
```bash

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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@perplexity-ai/mcp-server",
3-
"version": "0.3.1",
3+
"version": "0.4.0",
44
"mcpName": "io.github.perplexityai/mcp-server",
55
"description": "Real-time web search, reasoning, and research through Perplexity's API",
66
"keywords": [
@@ -29,7 +29,8 @@
2929
},
3030
"files": [
3131
"dist",
32-
"README.md"
32+
"README.md",
33+
".claude-plugin"
3334
],
3435
"scripts": {
3536
"build": "tsc && shx chmod +x dist/*.js",

server.json

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

0 commit comments

Comments
 (0)