Skip to content

marketplace.json: plugin source path is invalid (leading slash rejected by schema) #4

@PJ-Zetier

Description

@PJ-Zetier

Problem

claude plugin marketplace add scitrera/memorylayer fails with:

✘ Failed to add marketplace: Failed to parse marketplace file at
  .../scitrera-memorylayer/.claude-plugin/marketplace.json:
  Invalid schema: ... plugins.0.source: Invalid input

Cause

In .claude-plugin/marketplace.json, the plugin source is:

"source": "/memorylayer-cc-plugin"

The Claude Code marketplace schema rejects absolute paths for inline plugin sources. String source values must be relative (e.g. ./memorylayer-cc-plugin) or an object form like {"source": "github", "repo": "..."}.

Fix

Change:

- "source": "/memorylayer-cc-plugin"
+ "source": "./memorylayer-cc-plugin"

Workaround

Until this is patched, users can clone the repo, edit the path locally, and add it as a local marketplace:

git clone https://github.com/scitrera/memorylayer ~/src/memorylayer
# edit .claude-plugin/marketplace.json: "source": "./memorylayer-cc-plugin"
claude plugin marketplace add ~/src/memorylayer

Environment

  • Claude Code CLI
  • Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions