cyanheads/git-mcp-server/release-and-publish
Claude Code and agent skill by cyanheads/git-mcp-server
- community
Checking that the SKILL.md file is still in the repository.
Ship a release end-to-end across every registry this project targets (npm, MCP Registry). Runs the final verification gate, pushes commits and tags, then publishes to each applicable destination. Assumes git wrapup (version bumps, changelog, commit, annotated tag) is already complete — this skill is the post-wrapup publish workflow. Halts and alerts the user on the first failure.
Install
npx vskill@latest install cyanheads/git-mcp-server/release-and-publishSKILL.md
The same SKILL.md was published earlier as cyanheads/git-mcp-server/release-and-publish.
Preconditions
This skill runs after git wrapup. By the time it's invoked:
package.jsonversion is bumpedserver.jsonversion is bumped (top-level + each package entry)CHANGELOG.mdhas a new entry for this version with a concrete date (never[Unreleased])- README badges and version-bearing files are in sync
- Release commit (
chore: release v<version>) exists - Annotated tag (
v<version>) exists locally - Working tree is clean
If any are missing, halt and tell the user to finish wrapup first. Do not attempt to redo wrapup work from inside this skill.
Failure Protocol
Stop on the first non-zero exit. No retries, no remediation from inside the skill. Report to the user:
- Which step failed
- The exact error output
- Which destinations already received the release (npm published? tag pushed?) so they know the partial state
The user fixes locally and re-invokes, or runs the remaining steps manually. Publishes hard-fail with "version already exists" if replayed — that's the signal the step already succeeded.
Steps
1. Sanity-check wrapup outputs
Read package.json → capture version. Read server.json → verify top-level version matches and every packages[].version matches. Then verify git state:
If working tree is dirty, HEAD isn't on v<version>, or server.json versions drift from package.json, halt.
2. Run the verification gate
All three must succeed:
Any non-zero exit → halt with the failing command's output.
devcheck runs lint + format + typecheck + bun audit. rebuild is a clean + bun build to catch build-time regressions devcheck alone can miss.
3. Push to origin
If the remote rejects either push, halt. On a fresh branch, git push may need -u origin <branch> — read the error and re-run if that's the only gap.
4. Publish to npm
bun publish uses whatever npm auth the user has configured in ~/.npmrc. If 2FA is enabled on the npm account, the command will prompt for an OTP or open a browser — that's expected; the user completes it interactively.
Friction reducers (optional, configure once):
| Option | How | |
|---|---|---|
| npm granular access token with "Bypass 2FA for publish" | Generate at npmjs.com → replace _authToken in ~/.npmrc → no OTP prompt at all | |
1Password CLI TOTP injection (requires brew install --cask 1password-cli + signed-in op) | bun publish --access public --otp="$(op item get 'npm' --otp)" |
Halt on publish error other than "version already exists" (which means this step already ran).
5. Publish to MCP Registry
This repo's publish-mcp script is defined in package.json and runs scripts/validate-mcp-publish-schema.ts before invoking mcp-publisher. Reads server.json at the repo root.
Prereqs:
- A GitHub PAT with
read:org+read:userscopes, reachable by thepublish-mcpscript (conventionally stored in Keychain under servicemcp-publisher-github-paton macOS) mcp-publisherCLI installed (npm i -g mcp-publisherorbrew install mcp-publisher)
If the Keychain entry doesn't exist:
Halt on any publisher error other than "cannot publish duplicate version".
6. Report the deployed artifacts
Print clickable URLs for every destination that succeeded:
- npm:
https://www.npmjs.com/package/@cyanheads/git-mcp-server/v/<version> - MCP Registry:
https://registry.modelcontextprotocol.io/v0/servers?search=io.github.cyanheads/git-mcp-server - GitHub release tag:
https://github.com/cyanheads/git-mcp-server/releases/tag/v<version>
Skip any destination that was skipped or failed in its step.
Optional: Create a GitHub Release
The annotated tag is enough for npm/MCP Registry. A GitHub Release adds a human-readable changelog page and optional assets. Skip unless the project publishes releases to GitHub Releases specifically.
The awk expression extracts just the current version's section from CHANGELOG.md.
Checklist
- [ ] Working tree clean; HEAD tagged
v<version> - [ ]
package.jsonandserver.jsonversions match - [ ]
bun run devcheckpasses - [ ]
bun run rebuildsucceeds - [ ]
bun testpasses - [ ]
git pushsucceeds - [ ]
git push --tagssucceeds - [ ]
bun publish --access publicsucceeds - [ ]
bun run publish-mcpsucceeds - [ ] Deployed artifact URLs reported to the user
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/release-and-publish/SKILL.md
Popularity
- Repository stars
- 225
- Repository forks
- 55
- Repository npm downloads, 7 days
- 3,946
- 7-day trend score
- 47
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 11 Jul 2026, 4 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cyanheads/git-mcp-server/release-and-publish)