You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5001ff9
Browse filesBrowse the repository at this point in the historyBrowse files
echo "MCP registry auth: using GitHub OIDC (no MCP registry secret). If this namespace is not covered by repo OIDC, configure secret MCP_REGISTRY_GITHUB_TOKEN."
102
+
/tmp/mcp-publisher login github-oidc
103
+
fi
94
104
/tmp/mcp-publisher publish
95
-
echo "MCP registry publish completed for @coreguard/agent-commerce@$PKG_VERSION"
105
+
echo "MCP registry publish completed for @coreguard/agent-commerce@$PKG_VERSION ($SERVER_NAME)"
**Rule.** Authenticate to the registry with the **GitHub device flow** (`mcp-publisher login github`) or, in CI, with **GitHub OIDC**. If a token is genuinely unavoidable, use a **fine-grained PAT** scoped to this single task — profile read only, no repository or organization permissions, shortest practical expiry — and treat it as disposable.
54
54
55
-
**Release workflow automation (exact secret name).**`.github/workflows/release.yml` now publishes the MCP registry entry after a successful npm publish. It uses **GitHub OIDC** (`permissions: id-token: write`) and verifies the `mcp-publisher` Sigstore bundle before publishing. **Exact secret name required for MCP registry publishing: none.**The only repository/environment secret required by that workflow is **`NPM_TOKEN`** (npm publish). Do not add an MCP registry PAT unless you intentionally switch away from OIDC; if that ever happens, use a dedicated least-privilege secret name such as `MCP_REGISTRY_GITHUB_TOKEN` and keep it separate from `NPM_TOKEN`.
55
+
**Release workflow automation (exact secret name).**`.github/workflows/release.yml` now publishes the MCP registry entry after a successful npm publish. It verifies the `mcp-publisher` Sigstore bundle before publishing. **Exact secret name required for MCP registry publishing:****`MCP_REGISTRY_GITHUB_TOKEN`** only when GitHub OIDC cannot publish the server namespace in `packages/agent-commerce/server.json`; otherwise **none** (GitHub OIDC, `permissions: id-token: write`). The only always-required repository/environment secret in that workflow is **`NPM_TOKEN`** (npm publish). Keep `MCP_REGISTRY_GITHUB_TOKEN` separate from `NPM_TOKEN`, least-privilege, and use it only for the MCP registry namespace that needs it.
56
56
57
57
**Why this note exists.** The 0.1.3 republication on 2026-11-22 exchanged a **classic** personal access token through `POST /v0/auth/github-at`. That token carried broad scopes, including `admin:org`, `delete_repo`, `repo` and `workflow`. It was transmitted only over HTTPS to `registry.modelcontextprotocol.io` and was never written into the repository, a log file, or this document — but a credential with that blast radius should not authorize a directory write. A classic token is also the wrong shape for the registry: it cannot be limited to "publish this one server".
Copy file name to clipboardExpand all lines: docs/releases/0.1.5.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,8 @@
3
3
## What changed
4
4
5
5
-**Published tarball now includes `server.json`**. The MCP registry manifest is part of the npm package files, and `scripts/publish-check.mjs` fails closed if `server.json` is missing, malformed, or version-mismatched with `package.json`.
6
-
-**MCP registry publishing is automated in the release workflow**. After a successful npm publish, `.github/workflows/release.yml` verifies the published npm version, downloads and Sigstore-verifies `mcp-publisher`, authenticates with GitHub OIDC, and publishes `packages/agent-commerce/server.json`.
7
-
-**No new MCP registry secret is required.** The workflow uses GitHub OIDC (`id-token: write`). The only repository/environment secret required by the release workflow remains `NPM_TOKEN`.
6
+
-**MCP registry publishing is automated in the release workflow**. After a successful npm publish, `.github/workflows/release.yml` verifies the published npm version, downloads and Sigstore-verifies `mcp-publisher`, authenticates with GitHub OIDC (preferred) or `MCP_REGISTRY_GITHUB_TOKEN` when OIDC cannot publish the configured namespace, and publishes `packages/agent-commerce/server.json`.
7
+
-**Exact MCP registry secret name:****`MCP_REGISTRY_GITHUB_TOKEN`** only when the server namespace in `server.json` is not publishable via repo GitHub OIDC; otherwise none. The only always-required repository/environment secret in the release workflow remains **`NPM_TOKEN`**.
0 commit comments