fix: marketplace.json plugin source schema for Claude Code#77
Open
avirgili-eclub wants to merge 1 commit intoGentleman-Programming:mainfrom
Open
fix: marketplace.json plugin source schema for Claude Code#77avirgili-eclub wants to merge 1 commit intoGentleman-Programming:mainfrom
avirgili-eclub wants to merge 1 commit intoGentleman-Programming:mainfrom
Conversation
The marketplace.json used an object format with `"type": "git-subdir"` for the plugin source field. This does not conform to the Claude Code marketplace schema, which expects either: - A relative path string (for plugins within the same marketplace repo) - An object with `"source"` as the discriminator key (for external repos) Since the engram plugin lives inside this same repository at `plugin/claude-code/`, the correct format is a relative path string: `"./plugin/claude-code"`. This caused `claude plugin marketplace add` and `engram setup claude-code` to fail with: "Invalid schema: plugins.0.source: Invalid input" Tested locally: marketplace add + plugin install both succeed after fix.
|
I ran into this exact issue on Windows 11 and can confirm the problem. The I tested the fix locally by replacing the entire "source": "./plugin/claude-code"After that change, the marketplace loads correctly and the plugin installs without issues. Hope this helps get the PR merged! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
marketplace.jsonplugin source field to use a relative path string instead of an object with"type": "git-subdir"Problem
Running
claude plugin marketplace add Gentleman-Programming/engramorengram setup claude-codefails with:The
sourcefield in.claude-plugin/marketplace.jsonused an object format:The Claude Code marketplace schema expects:
"./plugin/claude-code")"source"discriminator for external repos (e.g.,{ "source": "url", "url": "..." })Since the engram plugin lives inside this same repository at
plugin/claude-code/, it should use the relative path format.Fix
Tested
claude plugin marketplace add— succeedsclaude plugin install engram— succeedsNote
This also impacts
engram setup claude-codesince it internally callsclaude plugin marketplace add. Thesetupcommand will work after this fix.