Skip to content

Commit 1f835c2

Browse files
authored
Merge pull request #63 from perplexityai/kesku/mcp-registry
2 parents d0b358a + a831eee commit 1f835c2

File tree

5 files changed

+54
-4
lines changed

5 files changed

+54
-4
lines changed

.github/workflows/publish-mcp.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish to MCP Registry
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths: ['server.json', 'package.json']
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
id-token: write
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Install MCP Publisher
21+
run: |
22+
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
23+
24+
- name: Login to MCP Registry
25+
run: ./mcp-publisher login github-oidc
26+
27+
- name: Publish to MCP Registry
28+
run: ./mcp-publisher publish
29+

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
run: npm run build
3636

3737
- name: Publish to npm
38-
run: npm publish --access public
38+
run: npm publish --access public --provenance

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@ Desktop.ini
5151
*.csv
5252
*.tsv
5353
*.jsonl
54-
:
54+
55+
# Ignore MCP registry authentication tokens
56+
.mcpregistry_*

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "@perplexity-ai/mcp-server",
3-
"version": "0.2.3",
4-
"description": "Official MCP server for Perplexity API Platform",
3+
"version": "0.3.0",
4+
"mcpName": "io.github.perplexityai/mcp-server",
5+
"description": "Real-time web search, reasoning, and research through Perplexity's API",
56
"keywords": [
67
"ai",
78
"perplexity",

server.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
3+
"name": "io.github.perplexityai/mcp-server",
4+
"title": "Perplexity API Platform",
5+
"description": "Real-time web search, reasoning, and research through Perplexity's API",
6+
"version": "0.3.0",
7+
"packages": [
8+
{
9+
"registryType": "npm",
10+
"identifier": "@perplexity-ai/mcp-server",
11+
"version": "0.3.0",
12+
"transport": {
13+
"type": "stdio"
14+
}
15+
}
16+
]
17+
}
18+

0 commit comments

Comments
 (0)