Skip to content

extraKnownMarketplaces: absolute paths silently fail for directory source type #26861

@YoelDruxman

Description

@YoelDruxman

Bug Description

When using extraKnownMarketplaces with "source": "directory" and an absolute path, the marketplace is not discovered. Switching to a relative path (resolved from the project root) makes it work. There is no error message — it silently fails.

Steps to Reproduce

  1. Create a local marketplace directory at ~/.claude/marketplace/ with a valid .claude-plugin/marketplace.json
  2. Add to .claude/settings.json (project level):
{
  "extraKnownMarketplaces": {
    "my-marketplace": {
      "source": {
        "source": "directory",
        "path": "/home/user/.claude/marketplace"
      }
    }
  }
}
  1. Restart Claude Code
  2. The marketplace is not discovered — no trust dialog, no plugin available

Expected Behavior

The marketplace should be discovered using the absolute path, as documented in the Settings documentation:

{ "source": "directory", "path": "/usr/local/share/claude/acme-plugins" }

Workaround

Use a relative path from the project root instead. If the marketplace files live outside the project, create a symlink:

ln -s ~/.claude/marketplace .claude/marketplace

Then use:

{
  "extraKnownMarketplaces": {
    "my-marketplace": {
      "source": {
        "source": "directory",
        "path": "./.claude/marketplace"
      }
    }
  }
}

This works correctly.

Additional Context

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