Skip to content

Commit b9f661c

Browse files
committed
feat: add MCP server publishing workflow and manifest
1 parent 57e867a commit b9f661c

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed

.github/workflows/publish-mcp.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Publish MCP Server
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
permissions:
9+
contents: read
10+
id-token: write
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
registry-url: 'https://registry.npmjs.org'
25+
26+
- name: Setup pnpm
27+
uses: pnpm/action-setup@v4
28+
with:
29+
version: 10.12.1
30+
31+
- name: Install dependencies
32+
run: pnpm install
33+
34+
- name: Run linter
35+
run: pnpm run lint
36+
37+
- name: Build project
38+
run: pnpm run build
39+
40+
- name: Publish to npm
41+
run: pnpm publish --no-git-checks
42+
env:
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
45+
- name: Install MCP Publisher CLI
46+
run: npm install -g @modelcontextprotocol/publisher
47+
48+
- name: Login to MCP Registry
49+
run: mcp-publisher login github-oidc
50+
51+
- name: Publish to MCP Registry
52+
run: mcp-publisher publish

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"pageindex",
3232
"document-processing"
3333
],
34+
"mcpName": "io.github.vectifyai/pageindex-mcp",
3435
"author": "VectifyAI",
3536
"license": "MIT",
3637
"dependencies": {

server.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
3+
"name": "io.github.vectifyai/pageindex-mcp",
4+
"title": "PageIndex MCP",
5+
"description": "MCP server for PageIndex - a reasoning-based RAG system for chatting with long PDFs. Supports local and online PDFs with unlimited conversations and free 1000 pages.",
6+
"version": "1.5.0",
7+
"homepage": "https://pageindex.ai/mcp",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/VectifyAI/pageindex-mcp"
11+
},
12+
"license": "MIT",
13+
"packages": [
14+
{
15+
"registryType": "npm",
16+
"identifier": "pageindex-mcp",
17+
"version": "1.5.0",
18+
"transport": {
19+
"type": "stdio"
20+
}
21+
}
22+
],
23+
"remotes": [
24+
{
25+
"type": "streamable-http",
26+
"url": "https://mcp.pageindex.ai/mcp"
27+
}
28+
]
29+
}

0 commit comments

Comments
 (0)