Skip to content

Commit 009a72a

Browse files
SpaceOceanCorpclaude
andcommitted
ci: publish to the MCP Registry via GitHub OIDC (workflow_dispatch + v* tags)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 929bfe2 commit 009a72a

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/publish-mcp.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish to MCP Registry
2+
3+
# npm is published separately; this only registers the server in the official
4+
# MCP Registry. OIDC authenticates the run as io.github.BSVKey, which owns the
5+
# io.github.BSVKey/inference-mcp namespace — no interactive login needed.
6+
on:
7+
workflow_dispatch:
8+
push:
9+
tags: ["v*"]
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write # required for GitHub OIDC auth to the registry
16+
contents: read
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5
20+
21+
- name: Install mcp-publisher
22+
run: |
23+
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
24+
25+
- name: Authenticate (GitHub OIDC)
26+
run: ./mcp-publisher login github-oidc
27+
28+
- name: Publish to MCP Registry
29+
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)