claude-code - 💡(How to fix) Fix Official marketplace fails schema validation on CLI 2.1.163 (git-subdir source type)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error: Invalid schema: ...marketplace.json plugins.0.source: Invalid input, plugins.1.source: Invalid input, ...

Code Example

Error: Invalid schema: ...marketplace.json plugins.0.source: Invalid input, plugins.1.source: Invalid input, ...
RAW_BUFFERClick to expand / collapse

Bug description

Running /plugin marketplace add anthropics/claude-plugins-official on CLI version 2.1.163 fails with schema validation errors on a large number of plugin entries:

Error: Invalid schema: ...marketplace.json plugins.0.source: Invalid input, plugins.1.source: Invalid input, ...

The marketplace's marketplace.json uses "source": "git-subdir" and "source": "url" source types that the current CLI release does not recognize. Out of 212 plugins in the marketplace, dozens fail validation, preventing the marketplace from being added at all.

Steps to reproduce

  1. Install Claude Code CLI (latest: 2.1.163)
  2. Run /plugin marketplace add anthropics/claude-plugins-official
  3. Observe schema validation errors for git-subdir and url source types
  4. Marketplace is not added

claude update reports already up to date.

Expected behavior

The CLI should be able to parse all source types used by the official marketplace, or at minimum gracefully skip entries with unrecognized source types rather than rejecting the entire marketplace.

Environment

  • Claude Code CLI version: 2.1.163
  • OS: macOS (Darwin 24.6.0)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The CLI should be able to parse all source types used by the official marketplace, or at minimum gracefully skip entries with unrecognized source types rather than rejecting the entire marketplace.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING