Fix marketplace.json source format for Claude Code install#18
Closed
rushikeshmore wants to merge 1 commit intoShopify:mainfrom
Closed
Fix marketplace.json source format for Claude Code install#18rushikeshmore wants to merge 1 commit intoShopify:mainfrom
rushikeshmore wants to merge 1 commit intoShopify:mainfrom
Conversation
The plugins[0].source field used the string "./" which fails Claude Code's plugin schema validation, causing /plugin install to error out with "Invalid input" on the source field. Replace with the documented github source object pointing at this repo. This lets Claude Code clone the plugin contents on install without requiring any change to the plugin layout (plugin.json and .claude-plugin/ remain at repo root). Validated locally with `claude plugin validate .` (passes). Reference: https://code.claude.com/docs/en/plugin-marketplaces#plugin-sources Closes Shopify#10
Contributor
|
Thanks for your interest but we don't accept pull requests. Any pull requests will be automatically closed. If you have feedback or suggestions, please share them in the Shopify Developer Community. If you are a Shopify employee, please reach out to Dev Tools: Dev Experience team at help-dev-platform. |
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
Fixes #10.
/plugin install shopify-plugin@shopify-ai-toolkitcurrently fails withInvalid inputonplugins[0].sourcebecausemarketplace.jsonsetssourceto the bare string"./", which is not a valid shape per the Claude Code plugin marketplace schema.Per the official plugin-marketplaces docs, a plugin
sourcemust be either:"./plugins/my-plugin"), orgithub,url,git-subdir, ornpm.Since
plugin.jsonand.claude-plugin/already live at the repo root here, the simplest fix that avoids any layout change is thegithubsource form. That's also the variant used by most entries in the officialanthropics/claude-plugins-officialmarketplace.Change
.claude-plugin/marketplace.json:No plugin contents moved. No other files touched.
Note: I deliberately did not adopt the
{"source": "local", "path": "./"}shape suggested in the issue body —"local"is not one of the source types in the current schema, so that would still fail validation. Thegithubform is documented and covers this case.Verification
claude plugin validate .→✔ Validation passedon this branch (fails onmain)./plugin marketplace add Shopify/Shopify-AI-Toolkitthen/plugin install shopify-plugin@shopify-ai-toolkit) should complete without schema errors, since the marketplace catalog now points Claude Code at the same repo to fetch the plugin contents.Test plan
claude plugin validate .passes/plugin marketplace add Shopify/Shopify-AI-Toolkitsucceeds/plugin install shopify-plugin@shopify-ai-toolkitsucceeds on Claude Code v2.xskills/