Skip to content

Commit 876a4b5

Browse files
committed
feat: publish to MCP Registry on release
Add mcp-publisher steps to the release workflow to automatically publish to the MCP Registry after npm publish. Uses OIDC auth (no additional secrets needed).
1 parent 1949803 commit 876a4b5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,13 @@ jobs:
5858
run: npm publish --access public --provenance
5959
env:
6060
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61+
62+
- name: Install mcp-publisher
63+
run: |
64+
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
65+
66+
- name: Authenticate to MCP Registry
67+
run: ./mcp-publisher login github-oidc
68+
69+
- name: Publish to MCP Registry
70+
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)