Publish to MCP Registry #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |