Skip to content

ci: publish @snowmead/oxcode-mcp + MCP Registry entry on release - #27

Merged
snowmead merged 1 commit into
mainfrom
mcp-registry-publishing
Jun 16, 2026
Merged

ci: publish @snowmead/oxcode-mcp + MCP Registry entry on release#27
snowmead merged 1 commit into
mainfrom
mcp-registry-publishing

Conversation

@snowmead

Copy link
Copy Markdown
Contributor

What

Automates publishing the oxcode MCP server to npm + the official MCP Registry on every release tag.

  • npm/ — thin launcher @snowmead/oxcode-mcp that execs oxcode mcp (no binary bundling; requires the self-updating oxcode on PATH).
  • server.json — registry manifest io.github.snowmead/oxcode (stdio → the npm package).
  • .github/workflows/publish-npm.yml — cargo-dist custom publish job: stamps the version from crates/oxcode-cli/Cargo.toml, publishes to npm via OIDC trusted publishing (no token, auto-provenance), then registers via mcp-publisher (GitHub PAT).
  • dist-workspace.toml / release.yml — wire the new job into the release pipeline (regenerated via dist generate; no hand-edits).

One-time setup (already done)

  • npm Trusted Publisher configured: GitHub Actions, oxgraph/oxcode, workflow release.yml (the caller — npm validates the caller's filename for reusable workflows).
  • MCP_GITHUB_TOKEN repo secret (classic PAT, read:org + read:user) — grants the io.github.snowmead/* namespace from inside the oxgraph repo, where OIDC can't.
  • @snowmead/oxcode-mcp@0.2.0 + the registry entry were published manually to bootstrap.

Note

The next release must bump oxcode-cli above 0.2.0 (0.2.0 is already on npm). The workflow stamps that single crate version into both the npm package and server.json.

🤖 Generated with Claude Code

Add a thin npm launcher (npm/) that execs `oxcode mcp`, a server.json registry manifest (io.github.snowmead/oxcode), and a cargo-dist custom publish job (publish-npm.yml). On each release tag it publishes the npm package via OIDC trusted publishing and the registry entry via mcp-publisher (GitHub PAT). Versions are stamped from the oxcode-cli crate version.
@snowmead
snowmead merged commit 5799c79 into main Jun 16, 2026
5 checks passed
@snowmead
snowmead deleted the mcp-registry-publishing branch June 16, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant