Skip to content

Publish to MCP Registry #2

Publish to MCP Registry

Publish to MCP Registry #2

name: Publish to MCP Registry
# Publishes server.json to the official MCP registry
# (registry.modelcontextprotocol.io) using GitHub Actions OIDC auth —
# the interactive device-flow login is broken in mcp-publisher 1.7.9
# (fatal `slow_down` polling error), and OIDC is headless anyway.
on:
push:
tags: ["v*"]
workflow_dispatch:
jobs:
publish-registry:
runs-on: ubuntu-latest
permissions:
id-token: write # required for GitHub OIDC authentication
contents: read
steps:
- uses: actions/checkout@v4
- name: Install mcp-publisher
run: |
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
- name: Login via GitHub OIDC
run: ./mcp-publisher login github-oidc
- name: Publish server.json
run: ./mcp-publisher publish