Skip to content

Schema validation errors in marketplace.json: 15 plugins have invalid source format #1331

Description

@nazakahar

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

  1. Install Claude Code 2.0.50
  2. Run /plugin marketplace add anthropics/claude-plugins-official
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions