Description
When attempting to add the official marketplace using /plugin marketplace add anthropics/claude-plugins-official, Claude Code fails with schema validation errors for 15 plugins.
Error Message
Error: Invalid schema: plugins.2.source: Invalid input, plugins.5.source: Invalid input,
plugins.12.source: Invalid input, plugins.31.source: Invalid input, plugins.35.source: Invalid input,
plugins.52.source: Invalid input, plugins.61.source: Invalid input, plugins.67.source: Invalid input,
plugins.70.source: Invalid input, plugins.92.source: Invalid input, plugins.102.source: Invalid input,
plugins.112.source: Invalid input, plugins.120.source: Invalid input, plugins.121.source: Invalid input,
plugins.126.source: Invalid input
Environment
- Claude Code version: 2.0.50
- OS: Arch Linux
- Command:
/plugin marketplace add anthropics/claude-plugins-official
Root Cause
The marketplace.json file contains inconsistent source field formats across plugins. Claude Code's schema validation expects the source field to be an object, but some plugins use string paths instead.
Affected Plugins (0-indexed)
| Index |
Plugin Name |
Current Format |
| 2 |
ai-firstify |
git-subdir object |
| 5 |
amazon-location-service |
git-subdir object |
| 12 |
astronomer-data-agents |
url object |
| 31 |
claude-code-setup |
"./plugins/claude-code-setup" (string) |
| 35 |
coderabbit |
url object |
| 52 |
expo |
git-subdir object |
| 61 |
frontend-design |
"./plugins/frontend-design" (string) |
| 67 |
greptile |
"./external_plugins/greptile" (string) |
| 70 |
helius |
git-subdir object |
| 92 |
legalzoom |
git-subdir object |
| 102 |
neon |
git-subdir object |
| 112 |
postman |
url object |
| 120 |
railway |
git-subdir object |
| 121 |
ralph-loop |
"./plugins/ralph-loop" (string) |
| 126 |
semgrep |
git-subdir object |
Expected Schema
Valid source field format (object):
"source": {
"source": "url",
"url": "https://github.com/...",
"sha": "..."
}
Invalid Schema
Current problematic format (string):
"source": "./plugins/plugin-name"
Impact
- Users cannot install plugins from the official marketplace
- The
/plugin marketplace add command fails completely
- All 33+ plugins become unavailable even though only 15 have schema issues
Steps to Reproduce
- Install Claude Code 2.0.50
- Run
/plugin marketplace add anthropics/claude-plugins-official
- Observe schema validation error
Suggested Fix
Update all plugin entries in .claude-plugin/marketplace.json to use consistent object-based source format. For local path plugins, convert:
"source": "./plugins/claude-code-setup"
To:
"source": {
"source": "local",
"path": "./plugins/claude-code-setup"
}
Or define and document the proper schema for local plugins.
Additional Context
This issue was discovered while attempting to use the official plugin marketplace feature. The initial bootstrap clone also failed with a different error (anthropic-claude-code-plugins repository not found, should be anthropics/claude-plugins-official), suggesting the marketplace integration may need additional testing and validation.
Description
When attempting to add the official marketplace using
/plugin marketplace add anthropics/claude-plugins-official, Claude Code fails with schema validation errors for 15 plugins.Error Message
Environment
/plugin marketplace add anthropics/claude-plugins-officialRoot Cause
The
marketplace.jsonfile contains inconsistent source field formats across plugins. Claude Code's schema validation expects thesourcefield to be an object, but some plugins use string paths instead.Affected Plugins (0-indexed)
git-subdirobjectgit-subdirobjecturlobject"./plugins/claude-code-setup"(string)urlobjectgit-subdirobject"./plugins/frontend-design"(string)"./external_plugins/greptile"(string)git-subdirobjectgit-subdirobjectgit-subdirobjecturlobjectgit-subdirobject"./plugins/ralph-loop"(string)git-subdirobjectExpected Schema
Valid
sourcefield format (object):Invalid Schema
Current problematic format (string):
Impact
/plugin marketplace addcommand fails completelySteps to Reproduce
/plugin marketplace add anthropics/claude-plugins-officialSuggested Fix
Update all plugin entries in
.claude-plugin/marketplace.jsonto use consistent object-based source format. For local path plugins, convert:To:
Or define and document the proper schema for local plugins.
Additional Context
This issue was discovered while attempting to use the official plugin marketplace feature. The initial bootstrap clone also failed with a different error (
anthropic-claude-code-pluginsrepository not found, should beanthropics/claude-plugins-official), suggesting the marketplace integration may need additional testing and validation.