Skip to content

Commit 142f9ea

Browse files
author
taisly
committed
Add MCP registry publish workflow
1 parent 6871494 commit 142f9ea

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish MCP Registry
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
id-token: write
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
env:
14+
MCP_PUBLISHER_VERSION: v1.7.9
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Download mcp-publisher
20+
run: |
21+
curl -fsSL "https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}/mcp-publisher_linux_amd64.tar.gz" -o /tmp/mcp-publisher.tar.gz
22+
tar -xzf /tmp/mcp-publisher.tar.gz -C /tmp
23+
chmod +x /tmp/mcp-publisher
24+
/tmp/mcp-publisher --help
25+
26+
- name: Validate server.json
27+
run: /tmp/mcp-publisher validate server.json
28+
29+
- name: Publish to Official MCP Registry
30+
run: |
31+
/tmp/mcp-publisher login github-oidc
32+
/tmp/mcp-publisher publish server.json

0 commit comments

Comments
 (0)