qbo-mcp: Command for Claude Code

.claude/commands/publish.md

publish is a command for Claude Code from shawnro/qbo-mcp. It costs 0 tokens per session (567 once invoked), scanned A, original, MIT.

A guided release command for publishing a new qbo-mcp version to npm, a JavaScript package registry, and the MCP Registry.

In plain words
What is it for?
Bumping a patch, minor, or major version, building the project, and publishing qbo-mcp.
Why use it?
It checks the repository, version, login, and build before publishing, and requires confirmation before continuing.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is shawnro/qbo-mcp's own configuration. It tells Claude Code how to work on qbo-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything qbo-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shawnro/qbo-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/shawnro/qbo-mcp/master/.claude/commands/publish.md
Clone the repo
git clone --depth 1 https://github.com/shawnro/qbo-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for publish

README.md
[![agentmods](https://agentmods.dev/badge/commands/shawnro/qbo-mcp/publish/github.svg)](https://agentmods.dev/commands/shawnro/qbo-mcp/publish)
Your own site
<a href="https://agentmods.dev/commands/shawnro/qbo-mcp/publish"><img src="https://agentmods.dev/badge/commands/shawnro/qbo-mcp/publish/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for publish

Your own site · 80×15
<a href="https://agentmods.dev/commands/shawnro/qbo-mcp/publish"><img src="https://agentmods.dev/badge/commands/shawnro/qbo-mcp/publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 567 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00567
Opus 5 $0.00000 $0.00283
Sonnet 5 $0.00000 $0.00113
Haiku 4.5 $0.00000 $0.00057

Measured 8d ago against content hash 9efeba1921a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

publish scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/publish.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Publish a new version of qbo-mcp to npm and the MCP Registry.

Arguments

$ARGUMENTS should be the version bump type: patch, minor, or major. If no argument is provided, ask the user which bump type they want (patch, minor, or major) before proceeding.

Steps

1. Pre-flight checks

  • Verify the working directory is clean (git status shows no uncommitted changes). If there are uncommitted changes, stop and ask the user to commit or stash them first.
  • Verify you are on the master branch. Warn if not.
  • Verify npm whoami succeeds (user is logged into npm).

2. Version bump

  • Read the current version from package.json.
  • Compute the new version based on the bump type argument (patch/minor/major) using semver rules.
  • Update the version field in package.json.
  • Update both the top-level version and packages[0].version fields in server.json to match.
  • Show the user: "Bumping version: {old} -> {new}" and confirm before proceeding.

3. Build verification

  • Run npm run build and verify it completes without errors.
  • If the build fails, stop and show the errors. Do not proceed with publishing.

4. Publish to npm

npm publish requires passkey authentication via browser. Do NOT run npm publish directly — it will fail waiting for interactive auth.

Instead:

  • Tell the user to run npm publish themselves in their terminal.
  • Wait for the user to confirm it succeeded before continuing.

5. Commit and tag

Only proceed after the user confirms npm publish succeeded.

  • Stage package.json, package-lock.json, and server.json.
  • Commit with message: v{new_version}
  • Create a git tag: v{new_version}

6. Push to GitHub

  • Run git push && git push --tags.

7. Publish to MCP Registry

  • Run mcp-publisher publish from the repo root.
  • If it fails with a 401/expired token, tell the user to re-authenticate and publish manually:
    mcp-publisher login github
    mcp-publisher publish
    
  • Wait for the user to confirm before continuing.

Read the full file on GitHub · 68 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 68 lines · 0 tokens per session scan A 9efeba1921a0

Subscribe to this mod's changes

publish is a command published in the GitHub repository shawnro/qbo-mcp (0 stars, last pushed 24d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 567 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.