Skip to content

fix: use relative path for plugin source in marketplace.json#61

Closed
Nonillo wants to merge 1 commit intoGentleman-Programming:mainfrom
Nonillo:fix/marketplace-source-schema
Closed

fix: use relative path for plugin source in marketplace.json#61
Nonillo wants to merge 1 commit intoGentleman-Programming:mainfrom
Nonillo:fix/marketplace-source-schema

Conversation

@Nonillo
Copy link

@Nonillo Nonillo commented Mar 12, 2026

The source field in plugins[0] used "git-subdir" which is not a recognized source type in the Claude Code marketplace schema. This causes claude plugin marketplace add to fail with:

✘ Failed to add marketplace: Invalid schema: plugins.0.source: Invalid input

Since the plugin lives in this same repo under plugin/claude-code, the fix is to use a relative path string ("./plugin/claude-code") instead of the object form.

The source field used an invalid git-subdir type which is not recognized
by the Claude Code marketplace schema. Since the plugin lives in the same
repo, a relative path string is the correct format.

Co-Authored-By: Oz <oz-agent@warp.dev>
@Alan-TheGentleman
Copy link
Collaborator

Hey @Nonillo, thanks for reporting this! The git-subdir format is actually the correct one for the marketplace — it's what allows Claude Code to install the plugin directly from the repo subdirectory.

The error you're seeing happens with older Claude Code CLI versions that don't support git-subdir yet. Running claude update to get CLI >= 2.1.70 should fix it. Issue #67 tracks documenting this minimum version requirement.

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.

2 participants