Skip to content

Commit 1bbf3b9

Browse files
narinthon-soclaude
andcommitted
Add MCP Registry publish workflow (GitHub Actions OIDC)
Device-flow login in mcp-publisher v1.7.9 fails with slow_down (modelcontextprotocol/registry#1289); OIDC from Actions avoids it. Triggered by v* tags; npm package for the tag must already be published. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent 12b2fe2 commit 1bbf3b9

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

‎.github/workflows/publish-mcp.yml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to MCP Registry
2+
3+
# npm publishing is done manually for now; this workflow only publishes
4+
# the server.json metadata to the official MCP Registry. The npm package
5+
# for the tagged version must already be live (the registry verifies the
6+
# package's mcpName field against it).
7+
8+
on:
9+
push:
10+
tags: ["v*"]
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
id-token: write # OIDC authentication with the MCP Registry
17+
contents: read
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v5
22+
23+
- name: Install mcp-publisher
24+
run: |
25+
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
26+
27+
- name: Authenticate to MCP Registry
28+
run: ./mcp-publisher login github-oidc
29+
30+
- name: Publish server to MCP Registry
31+
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)