Skip to content

feat: Set up npm publishing for the OTF MCP server - #179

Open
thekidnamedkd wants to merge 1 commit into
mainfrom
otf-mcp-npm-publish
Open

feat: Set up npm publishing for the OTF MCP server#179
thekidnamedkd wants to merge 1 commit into
mainfrom
otf-mcp-npm-publish

Conversation

@thekidnamedkd

Copy link
Copy Markdown
Contributor

Sets up automated npm publishing for the read-only MCP server (mcp/, package otf-mcp-server) and rewrites its docs to be public-facing, so the one-paste npx -y otf-mcp-server install actually resolves once DevOps provisions a token.

Why

claude mcp add … npx -y otf-mcp-server currently registers but fails to launch — the package is not on npm. This makes the zero-install path real.

Changes

  • .github/workflows/publish-mcp.yml — publishes on a mcp-v<version> tag (or manual dispatch, dry-run by default). Runs npm ci → build → the 23 tests, verifies the tag equals package.json version, then npm publish with provenance via GitHub OIDC (id-token: write). Actions SHA-pinned to match ci.yml.
  • mcp/package.json — adds repository/homepage/bugs/keywords and publishConfig (access: public, provenance: true). Dry-run pack is clean: 5 files (dist + README).
  • mcp/README.md — rewritten public-facing: leads with the zero-install npx quick start (OTF_API_BASE=https://otf.aragon.org) for Claude / Cursor / Codex; source-build moved to a contributors section.
  • mcp/PUBLISHING.md — DevOps handoff + release runbook.

DevOps handoff (the one remaining gate)

The workflow needs exactly one secret: NPM_TOKEN (an npm Automation token for an account/org that owns the otf-mcp-server name — currently unclaimed on npm). Provenance uses OIDC, so no other credential is required. Full steps in mcp/PUBLISHING.md.

Release, once the token is set

Bump mcp/package.json, then git tag mcp-v0.1.0 && git push origin mcp-v0.1.0 — or Actions → Publish MCP → Run workflow.

Verification

  • npm publish --dry-run → 5 files, dist + README only.
  • node --test test/*.test.mjs → 23/23 pass.
  • Workflow validated as YAML.

@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ownership-token-framework Ready Ready Preview, Comment Jul 3, 2026 9:37am

Request Review

@thekidnamedkd thekidnamedkd changed the title Set up npm publishing for the OTF MCP server feat: Set up npm publishing for the OTF MCP server Jul 3, 2026
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