claude-code - 💡(How to fix) Fix [BUG] /plugin marketplace fails to load — schema validation error on source field [1 participants]

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…
GitHub stats
anthropics/claude-code#51978Fetched 2026-04-23 07:39:49
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

Running /plugin shows this error:

Error Messages/Logs

  1. Error appears immediately — marketplace fails to load

Root Cause

Root cause: the official marketplace.json on GitHub uses a new source object format: { "source": "url", "url": "https://github.com/...", "sha": "..." } but Claude Code schema validator expects source to be a plain string.

Code Example

Failed to load marketplace "claude-plugins-official" from source (github): Failed to parse marketplace file at
  /Users/.../.claude/plugins/marketplaces/anthropics-claude-plugins-official/.claude-plugin/marketplace.json: Invalid schema:
  plugins.2.source: Invalid input, plugins.5.source: Invalid input, plugins.12.source: Invalid input, plugins.29.source: Invalid input,
  plugins.49.source: Invalid input, plugins.58.source: Invalid input, plugins.64.source: Invalid input, plugins.67.source: Invalid input,
  plugins.89.source: Invalid input, plugins.99.source: Invalid input, plugins.108.source: Invalid input, plugins.116.source: Invalid input,
  plugins.117.source: Invalid input, plugins.122.source: Invalid input
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Running /plugin shows this error:

Failed to load marketplace "claude-plugins-official" from source (github): Failed to parse marketplace file: Invalid schema: plugins.2.source: Invalid input, plugins.5.source: Invalid input, plugins.12.source: Invalid input (14 entries total)

Root cause: the official marketplace.json on GitHub uses a new source object format: { "source": "url", "url": "https://github.com/...", "sha": "..." } but Claude Code schema validator expects source to be a plain string.

What Should Happen?

The /plugin marketplace browser loads successfully and displays available plugins without schema validation errors.

Error Messages/Logs

Failed to load marketplace "claude-plugins-official" from source (github): Failed to parse marketplace file at
  /Users/.../.claude/plugins/marketplaces/anthropics-claude-plugins-official/.claude-plugin/marketplace.json: Invalid schema:
  plugins.2.source: Invalid input, plugins.5.source: Invalid input, plugins.12.source: Invalid input, plugins.29.source: Invalid input,
  plugins.49.source: Invalid input, plugins.58.source: Invalid input, plugins.64.source: Invalid input, plugins.67.source: Invalid input,
  plugins.89.source: Invalid input, plugins.99.source: Invalid input, plugins.108.source: Invalid input, plugins.116.source: Invalid input,
  plugins.117.source: Invalid input, plugins.122.source: Invalid input

Steps to Reproduce

  1. Open Claude Code
  2. Run /plugin
  3. Error appears immediately — marketplace fails to load

Note: Plugin installation via direct command still works: claude plugin install figma@claude-plugins-official

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.117

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Deleting the cached marketplace folder and restarting does not help, the file is re-downloaded from GitHub with the same new schema format that fails validation. Updating Claude Code to latest (2.1.117) did not resolve the issue.

extent analysis

TL;DR

Update the Claude Code schema validator to accept the new source object format used in the official marketplace.json file on GitHub.

Guidance

  • The error occurs because the Claude Code schema validator expects the source field to be a plain string, but the new marketplace.json file uses a source object with url and sha properties.
  • To fix this, the schema validator needs to be updated to accept the new format, which could involve changing the validation rules to allow for an object with url and sha properties.
  • As a temporary workaround, it might be possible to manually edit the cached marketplace.json file to use the old format, but this would likely be overridden when the file is re-downloaded from GitHub.
  • The fact that plugin installation via direct command still works suggests that the issue is specific to the marketplace browser and its schema validation.

Example

No code snippet is provided as the issue is related to the schema validation and not a specific code block.

Notes

The issue is a regression, meaning it worked in a previous version, and updating to the latest version (2.1.117) did not resolve the issue. The problem is likely specific to the Claude Code schema validator and its interaction with the new marketplace.json file format.

Recommendation

Apply a workaround by manually editing the schema validation rules to accept the new format, as updating to a fixed version is not currently possible. This is because the latest version (2.1.117) does not resolve the issue, and there is no indication of a newer version that fixes the problem.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] /plugin marketplace fails to load — schema validation error on source field [1 participants]