[BUG] Official marketplace fails to load due to unsupported "git-subdir" source type in semgrep plugin

Resolved 💬 2 comments Opened Mar 11, 2026 by d0ttir Closed Apr 29, 2026

Version: 2.1.72

Describe the bug

Running /plugin produces:

Failed to load all marketplaces. Errors: claude-plugins-official: Failed to parse marketplace file at ...marketplace.json: Invalid schema: plugins.56.source: Invalid input

Root cause

marketplace.json entry #56 (semgrep) uses a git-subdir source type that Claude Code's Zod schema does not accept:

{
  "name": "semgrep",
  "source": {
    "source": "git-subdir",
    "url": "https://github.com/semgrep/mcp-marketplace.git",
    "path": "plugin"
  }
}

The schema only accepts url, github, and relative path strings. git-subdir is not a recognized type, causing the entire marketplace to fail validation — making /plugin unusable.

Workaround

Manually remove the semgrep entry from the cached marketplace.json:

~/.claude/plugins/marketplaces/claude-plugins-official/.claude-plugin/marketplace.json

Note: this is overwritten on each fetch.

Expected behavior

Either the marketplace should not ship a source type the client doesn't support, or Claude Code should skip invalid entries with a warning instead of rejecting the entire marketplace.

Related: #30593 (feature request to support subdirectory paths)

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗