diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml new file mode 100644 index 0000000..66c716c --- /dev/null +++ b/.github/workflows/publish-mcp.yml @@ -0,0 +1,29 @@ +name: Publish to MCP Registry + +on: + push: + branches: [main] + paths: ['server.json', 'package.json'] + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install MCP Publisher + run: | + 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 + + - name: Login to MCP Registry + run: ./mcp-publisher login github-oidc + + - name: Publish to MCP Registry + run: ./mcp-publisher publish + diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 77f3ff1..bc0714f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,4 +35,4 @@ jobs: run: npm run build - name: Publish to npm - run: npm publish --access public + run: npm publish --access public --provenance diff --git a/.gitignore b/.gitignore index 00c3763..7c3379c 100644 --- a/.gitignore +++ b/.gitignore @@ -51,4 +51,6 @@ Desktop.ini *.csv *.tsv *.jsonl -: + +# Ignore MCP registry authentication tokens +.mcpregistry_* diff --git a/package.json b/package.json index 6bc0ed3..9dfc933 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "name": "@perplexity-ai/mcp-server", - "version": "0.2.3", - "description": "Official MCP server for Perplexity API Platform", + "version": "0.3.0", + "mcpName": "io.github.perplexityai/mcp-server", + "description": "Real-time web search, reasoning, and research through Perplexity's API", "keywords": [ "ai", "perplexity", diff --git a/server.json b/server.json new file mode 100644 index 0000000..856eac0 --- /dev/null +++ b/server.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json", + "name": "io.github.perplexityai/mcp-server", + "title": "Perplexity API Platform", + "description": "Real-time web search, reasoning, and research through Perplexity's API", + "version": "0.3.0", + "packages": [ + { + "registryType": "npm", + "identifier": "@perplexity-ai/mcp-server", + "version": "0.3.0", + "transport": { + "type": "stdio" + } + } + ] +} +