-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
31 lines (23 loc) · 716 Bytes
/
Copy pathpublish-mcp.yml
File metadata and controls
31 lines (23 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Publish MCP Server
on:
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install mcp-publisher
run: |
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz" \
| tar xz
chmod +x mcp-publisher
- name: Validate server.json
run: ./mcp-publisher validate server.json
- name: Authenticate with MCP Registry
run: ./mcp-publisher login github-oidc
- name: Publish to MCP Registry
run: ./mcp-publisher publish server.json