Skip to content

Add a plugin marketplace manifest and put the plugin version in release lockstep - #720

Merged
anshss merged 1 commit into
mainfrom
fix/plugin-marketplace-distribution
Aug 13, 2026
Merged

anshss merged 1 commit into
mainfrom
fix/plugin-marketplace-distribution

Conversation

@anshss

@anshss anshss commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

What

  1. Make the repo its own plugin marketplace. Adds .claude-plugin/marketplace.json at the repo root, per the plugin marketplace docs, with a relative-path plugin entry pointing at plugin/. This makes /plugin marketplace add Metabuilder-Labs/tokenjam resolve and offer the tokenjam plugin.

  2. Put the plugin manifest in the release lockstep. scripts/release.sh now bumps plugin/.claude-plugin/plugin.json alongside pyproject.toml, sdk-ts/package.json, and npm-wrapper/package.json. CI's version-lockstep job gets a second check comparing the plugin manifest's version against pyproject.toml, so a drifted plugin version fails the build instead of shipping silently stale.

  3. README. Adds the /plugin marketplace add Metabuilder-Labs/tokenjam line ahead of the existing /plugin install tokenjam line.

Why the root .claude-plugin/ doesn't collide with CLAUDE.md this time

An earlier commit moved plugin.json out of the repo root into plugin/.claude-plugin/plugin.json because claude plugin validate --strict treated the repo root as the plugin's root and flagged the repo's own CLAUDE.md as unrecognized plugin content. A marketplace manifest is a different validation path (claude plugin validate <path> auto-detects manifest vs. marketplace) that doesn't scan the rest of the directory as plugin content, so adding .claude-plugin/marketplace.json at the root does not reproduce that collision — confirmed below.

Verification

Marketplace + plugin manifests both validate clean:

$ claude plugin validate . --strict
Validating marketplace manifest: .../tokenjam/.claude-plugin/marketplace.json
✔ Validation passed

$ claude plugin validate ./plugin --strict
Validating plugin manifest: .../tokenjam/plugin/.claude-plugin/plugin.json
✔ Validation passed

Local marketplace round trip (add -> list -> install -> details -> uninstall -> remove), confirming CLAUDE.md is not flagged and the plugin resolves with its 5 commands and 0 hooks/MCP servers:

$ claude plugin marketplace add "$(pwd)"
Adding marketplace…✔ Successfully added marketplace: tokenjam (declared in user settings)

$ claude plugin marketplace list
  ...
  ❯ tokenjam
    Source: Directory (/.../plugin-marketplace/tokenjam)

$ claude plugin install tokenjam@tokenjam -y
Installing plugin "tokenjam@tokenjam"...✔ Successfully installed plugin: tokenjam@tokenjam (scope: user)

$ claude plugin details tokenjam@tokenjam
TokenJam (tokenjam) 0.6.9
  Component inventory
  Skills (5)  doctor, onboard, optimize, status, uninstall
  Agents (0)  Hooks (0)  MCP servers (0)  LSP servers (0)

$ claude plugin uninstall tokenjam@tokenjam -s user
✔ Successfully uninstalled plugin: tokenjam (scope: user)

$ claude plugin marketplace remove tokenjam
✔ Successfully removed marketplace: tokenjam

Confirmed no leftover state: claude plugin marketplace list and claude plugin list no longer show tokenjam afterward.

scripts/release.sh now touches all four files (dry run for a throwaway version, then reverted, no version bump committed here):

$ bash scripts/release.sh 0.6.10
Bumping to 0.6.10 (pyproject.toml was 0.6.9)
  updated pyproject.toml
  updated sdk-ts/package.json
  updated npm-wrapper/package.json
  updated plugin/.claude-plugin/plugin.json

Checking for stragglers still referencing 0.6.9...
no stragglers found.

Then git checkout -- pyproject.toml sdk-ts/package.json npm-wrapper/package.json plugin/.claude-plugin/plugin.json to revert the version churn (a real release is a separate, human-run step).

New CI lockstep assertion actually fails on a mismatch (ran the exact step body against a deliberately skewed plugin manifest, then restored it):

# baseline (0.6.9 == 0.6.9): exit 0
# skewed plugin.json to 9.9.9: OBSERVED EXIT CODE: 1, with the ::error:: message

Not run: the repo's pytest suite has no tests covering scripts/release.sh, the marketplace manifest, or the CI workflow YAML (grep for release.sh/marketplace/plugin manifest across tests/ came back empty), so there was nothing applicable to run there — the shell/CLI verification above is the coverage for this change.

…t in release lockstep

Adds .claude-plugin/marketplace.json at the repo root so `/plugin marketplace
add Metabuilder-Labs/tokenjam` resolves and offers the tokenjam plugin via a
relative-path source pointing at plugin/. Verified locally: `claude plugin
validate . --strict` and `claude plugin validate ./plugin --strict` both pass,
and a local marketplace add -> install -> details -> uninstall -> remove round
trip resolves the plugin with its five commands and zero hooks/MCP servers, as
intended. No collision with the repo's own CLAUDE.md — that only affected a
plugin.json at repo root, which this repo no longer has.

Also extends scripts/release.sh to bump plugin/.claude-plugin/plugin.json
alongside pyproject.toml, sdk-ts/package.json, and npm-wrapper/package.json,
and adds a matching version-lockstep job step in CI so a build fails if the
plugin manifest's version drifts from pyproject.toml.

Adds the marketplace-add line to the root README beside the existing plugin
install instructions.

Co-Authored-By: Claude <[email protected]>
@anshss
anshss requested a review from anilmurty as a code owner August 13, 2026 20:01
@greptile-apps

greptile-apps Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds a repository-hosted Claude Code plugin marketplace and keeps the plugin manifest version synchronized with releases.

  • Adds a root marketplace manifest pointing to the existing plugin/ directory.
  • Extends release automation and CI version-lockstep checks to the plugin manifest.
  • Documents marketplace registration before plugin installation.

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified.

The marketplace source matches the repository’s plugin layout, and the release and CI changes consistently enforce the intended version lockstep without breaking the existing manifest update behavior.

Important Files Changed

Filename Overview
.claude-plugin/marketplace.json Defines a valid self-hosted marketplace entry whose relative source matches the existing plugin layout.
.github/workflows/ci.yml Adds a CI assertion that the plugin manifest and Python package versions remain synchronized.
README.md Documents registering the repository marketplace before installing the plugin.
scripts/release.sh Adds the plugin manifest to the existing version-bump loop and staging instructions.

Reviews (1): Last reviewed commit: "Make the repo its own plugin marketplace..." | Re-trigger Greptile

@anshss
anshss merged commit 0f6e940 into main Aug 13, 2026
7 checks passed
@anilmurty
anilmurty deleted the fix/plugin-marketplace-distribution branch September 18, 2026 21: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