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 registry.modelcontextprotocol.io. | |
| # Runs after a GitHub Release, or on demand. Auth is GitHub OIDC (no token): | |
| # the workflow's identity proves ownership of the io.github.Perseus-Computing-LLC | |
| # namespace. Package ownership is proven by the OCI label on the GHCR image | |
| # (io.modelcontextprotocol.server.name in the Dockerfile), so publish after the | |
| # docker.yml image push for a release has completed. | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install mcp-publisher | |
| run: | | |
| curl -fsSL "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_amd64.tar.gz" \ | |
| | tar -xz mcp-publisher | |
| - name: Authenticate (GitHub OIDC) | |
| run: ./mcp-publisher login github-oidc | |
| - name: Publish server.json | |
| run: ./mcp-publisher publish |