Marketplace install fails: unsupported `git-subdir` source type causes schema validation error
Bug Report
Claude Code version: 2.1.78
OS: macOS 25.2.0 (Darwin)
Description
Installing from the official Claude marketplace fails with a schema validation error because marketplace.json in anthropics/claude-plugins-official now contains plugins that use a "git-subdir" source type, which is not supported by the current Zod schema in Claude Code.
Error Message
Failed to parse marketplace file at /Users/.../.claude/plugins/marketplaces/temp_XXXX/.claude-plugin/marketplace.json:
Invalid schema: plugins.56.source: Invalid input, plugins.63.source: Invalid input,
plugins.67.source: Invalid input, plugins.71.source: Invalid input,
plugins.72.source: Invalid input, plugins.73.source: Invalid input,
plugins.74.source: Invalid input, plugins.75.source: Invalid input,
plugins.81.source: Invalid input
Root Cause
The official marketplace has 9 plugins that use a new "git-subdir" source type:
{"source": "git-subdir", "url": "zapier/zapier-mcp", "path": "plugins/zapier", "ref": "main", "sha": "..."}
Claude Code 2.1.78 only recognises these source types in its Zod schema: github, npm, pip, url, local. Any plugin with source: "git-subdir" fails validation, which causes the entire marketplace to be rejected — even plugins that use valid source types cannot be browsed or installed.
Affected Plugins (indices in marketplace.json)
| Index | Plugin |
|-------|--------|
| 56 | semgrep (via mcp-marketplace) |
| 63 | railway |
| 67 | legalzoom |
| 71 | amazon-location-service |
| 72 | aws-serverless |
| 73 | migration-to-aws |
| 74 | deploy-on-aws |
| 75 | zapier |
| 81 | neon-postgres |
Steps to Reproduce
- Run
/plugin installor open the marketplace in any Claude Code session - Claude Code fetches
anthropics/claude-plugins-officialand tries to parsemarketplace.json - Zod validation fails on any plugin entry with
"source": "git-subdir" - The entire marketplace is rejected — no plugins can be browsed or installed
Expected Behaviour
The git-subdir source type should be supported (fetching a plugin from a subdirectory of a Git repo), or plugins with unrecognised source types should be skipped/warned about gracefully rather than causing the whole marketplace to fail.
Workaround
Individual plugins with supported source types can still be installed by full ID, e.g.:
/plugin install frontend-design@claude-plugins-official
But any plugin using git-subdir cannot be installed until the CLI is updated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗