fix: use explicit git-subdir source for Cowork marketplace-sync compatibility#3
Merged
Merged
Conversation
Claude Code's CLI does a full local git clone, so the relative-path
source ("./cedar-plugin") resolves fine against the checkout on disk.
Cowork's server-side marketplace sync doesn't do a full local clone —
it validates each plugin's source independently via an unauthenticated
server-side fetch, and fails on relative-path sources with a generic
"Marketplace sync failed. Check the repository URL and try again."
(matches anthropics/claude-code#61271/#28125's server-side log dump:
"Repository not found on github.com").
The docs' own troubleshooting section documents this exact failure
class ("Plugins with relative paths fail in URL-based marketplaces")
and the fix: use an explicit source object instead of a relative path.
Since this plugin lives in a subdirectory of the same repo (not at
repo root), git-subdir is the correct source type (github doesn't
support a path field).
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.jsonused the relative-path shorthand ("source": "./cedar-plugin"), which only resolves when the client does a full localgit cloneof the whole repo (what Claude Code's CLI does). Cowork's server-sideremoteMarketplaceOpssync validates each plugin'ssourceindependently via an unauthenticated server-side fetch instead of a full clone, and can't resolve a bare relative path — it reports a generic sync failure. This matches the server-side log dump quoted in anthropics/claude-code#61271 (closed as duplicate of the still-open #28125):"Repository not found on github.com. Check the URL and make sure the repository is public."Fix
Changed the
cedarplugin'ssourcefrom the relative-path shorthand to an explicitgit-subdirsource (required instead ofgithub, sincegithubhas nopathfield and our plugin lives in thecedar-plugin/subdirectory of this repo, not at the root):Test plan
claude plugin validate .passes (pre-existing description warning only, unrelated).mcp.json)/plugin marketplace removethe old entry, re-add viaCedarCopilot/cedar-plugin, confirm sync succeeds🤖 Generated with Claude Code