Skip to content

Commit 834268a

Browse files
author
Nishka LLC
committed
Publish to the MCP Registry from GitHub Actions via OIDC
The interactive mcp-publisher github device login 403s for org namespaces even for org Owners with public membership (modelcontextprotocol/registry#1649, #1537). Publishing with github-oidc from this repo's workflow proves the sthan-io identity directly. Runs on release published and on manual dispatch.
1 parent 826a6bc commit 834268a

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Publishes server.json to the official MCP Registry (registry.modelcontextprotocol.io).
2+
#
3+
# Uses GitHub OIDC from inside this repo, so the registry grants the io.github.sthan-io/*
4+
# namespace from the workflow's identity. The interactive `mcp-publisher login github`
5+
# device flow 403s for org namespaces even for org Owners with public membership
6+
# (modelcontextprotocol/registry#1649, #1537).
7+
#
8+
# Runs when a GitHub release is published, or by hand from the Actions tab. The npm
9+
# packages for the version in server.json must already be on npm, because the registry
10+
# checks that the package exists.
11+
name: Publish to MCP Registry
12+
13+
on:
14+
release:
15+
types: [published]
16+
workflow_dispatch:
17+
18+
permissions:
19+
contents: read
20+
id-token: write
21+
22+
jobs:
23+
publish:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Install mcp-publisher
29+
run: curl -sL "https://github.com/modelcontextprotocol/registry/releases/download/v1.8.1/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
30+
31+
- name: Log in with GitHub OIDC
32+
run: ./mcp-publisher login github-oidc
33+
34+
- name: Publish server.json
35+
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)