Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/publish-mcp-registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Publish to MCP Registry

# Lists the CourseCode MCP server (server.json) in the MCP Registry. The registry
# checks mcpName on the published npm package, so push the release tag after
# `npm publish`. GitHub OIDC proves the course-code-framework namespace; no
# secrets are needed.
on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
# Update deliberately; the download is verified against this release's signature.
MCP_PUBLISHER_VERSION: v1.8.6
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check the npm package is published
run: |
version=$(jq -r '.packages[0].version' server.json)
npm view "coursecode@${version}" mcpName | grep -qx "$(jq -r .name server.json)"

- name: Install cosign
uses: sigstore/cosign-installer@v4.1.2

- name: Install mcp-publisher
run: |
archive="mcp-publisher_linux_amd64.tar.gz"
base="https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}"
curl -fsSLO "${base}/${archive}"
curl -fsSLO "${base}/${archive}.sigstore.json"
cosign verify-blob "${archive}" \
--bundle "${archive}.sigstore.json" \
--certificate-identity "https://github.com/modelcontextprotocol/registry/.github/workflows/release.yml@refs/tags/${MCP_PUBLISHER_VERSION}" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com"
tar -xzf "${archive}" mcp-publisher
rm "${archive}" "${archive}.sigstore.json"

- name: Log in with GitHub OIDC
run: ./mcp-publisher login github-oidc

- name: Publish
run: ./mcp-publisher publish
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Use npm (CI runs `npm ci`). Node 22.15+.

Before merging responsive/layout changes, also run `npm run smoke:responsive -- --profile=expanded`.

A release bumps the version in `package.json`, `package-lock.json`, `framework/version.json`, both plugin manifests, the launcher's `FALLBACK_VERSION`, and both versions in `server.json` (`tests/lib/plugin-manifests.test.js` checks they match). After `npm publish`, run `mcp-publisher publish` to update the [MCP Registry](https://registry.modelcontextprotocol.io) listing; the registry reads `mcpName` from the published package, so publish to npm first.
A release bumps the version in `package.json`, `package-lock.json`, `framework/version.json`, both plugin manifests, the launcher's `FALLBACK_VERSION`, and both versions in `server.json` (`tests/lib/plugin-manifests.test.js` checks they match). After `npm publish`, push the `vX.Y.Z` tag: `.github/workflows/publish-mcp-registry.yml` then updates the [MCP Registry](https://registry.modelcontextprotocol.io) listing through GitHub OIDC. The registry reads `mcpName` from the published package, so the tag must come after `npm publish`. A local `mcp-publisher login github` can't publish under the organization namespace.

## Repo Layout: Two Contexts

Expand Down
Loading