Skip to content

Commit dcb777c

Browse files
luarssclaude
andcommitted
ci: add standalone MCP registry publish workflow
Supports both workflow_dispatch for manual testing and workflow_call for reuse from the release pipeline. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 994117f commit dcb777c

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish to MCP Registry
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: Version to publish (e.g. 0.3.0)
8+
required: true
9+
type: string
10+
workflow_call:
11+
inputs:
12+
version:
13+
description: Version to publish (e.g. 0.3.0)
14+
required: true
15+
type: string
16+
17+
jobs:
18+
publish:
19+
name: Publish to MCP Registry
20+
runs-on: ubuntu-latest
21+
permissions:
22+
id-token: write
23+
contents: read
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Install mcp-publisher
28+
run: |
29+
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
30+
31+
- name: Authenticate to MCP Registry
32+
run: ./mcp-publisher login github-oidc
33+
34+
- name: Install jq
35+
run: sudo apt-get update -qq && sudo apt-get install -qq -y jq
36+
37+
- name: Update version in server.json
38+
run: |
39+
VERSION="${{ inputs.version }}"
40+
jq --arg v "$VERSION" '.version = $v | (.packages[].version) = $v' server.json > server.json.tmp && mv server.json.tmp server.json
41+
42+
- name: Publish to MCP Registry
43+
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)