mach10 icon indicating copy to clipboard operation
mach10 copied to clipboard

Plugin marketplace registration fails silently, then 'add' fails with missing marketplace.json

Open merck-awakefield opened this issue 9 months ago • 4 comments

Problem

Unable to install the mach10 plugin via Claude Code's plugin marketplace commands. The registration command appears to complete without error, but the subsequent add command fails.

Environment

  • OS: macOS Darwin 24.6.0
  • Claude Code: CLI
  • GitHub CLI: Authenticated with access to merckgroup/mach10 (verified via gh repo view)

Steps to Reproduce

  1. Run the marketplace add command directly (before registration):

    /plugin marketplace add merckgroup/mach10
    

    Result:

    Error: Marketplace file not found at /Users/<user>/.claude/plugins/marketplaces/merckgroup-mach10/.claude-plugin/marketplace.json
    
  2. Attempt to register the marketplace first:

    /plugin marketplace register merckgroup/mach10
    

    Result: Command completes with no output (no error message, no success message)

  3. Run the add command again:

    /plugin marketplace add merckgroup/mach10
    

    Result: Same error as step 1:

    Error: Marketplace file not found at /Users/<user>/.claude/plugins/marketplaces/merckgroup-mach10/.claude-plugin/marketplace.json
    

Investigation

After the register command "completed":

  • The directory /Users/<user>/.claude/plugins/marketplaces/merckgroup-mach10/ was not created
  • The known_marketplaces.json file was not updated to include merckgroup/mach10
  • Only the default claude-plugins-official marketplace exists

Expected Behavior

  1. /plugin marketplace register merckgroup/mach10 should:

    • Clone the repository to ~/.claude/plugins/marketplaces/merckgroup-mach10/
    • Update known_marketplaces.json with the new marketplace entry
    • Provide feedback on success or failure
  2. /plugin marketplace add merckgroup/mach10 should then successfully install the plugin

Questions

  1. Does this repo have the required .claude-plugin/marketplace.json file structure?
  2. Is there a different installation method for this plugin?
  3. Should this be installed as a direct plugin rather than via marketplace?

Workaround Attempted

None successful yet. Manual cloning might work but unclear what the expected directory structure should be.

merck-awakefield avatar Feb 19 '26 17:02 merck-awakefield

Fix

Added .claude-plugin/marketplace.json in 550f49c. The repo was missing this file, which is required by Claude Code's marketplace registration system. The repo had plugin.json (plugin manifest) but no marketplace.json (marketplace catalog), so /plugin marketplace add failed looking for a file that didn't exist.

The fix adds a single-plugin marketplace catalog that points to the repo root ("source": "."), enabling the install flow documented in the README.

Testing

  1. Start a fresh Claude Code session: claude
  2. Register the marketplace:
    /plugin marketplace add merckgroup/mach10
    
    This should complete without error.
  3. Install the plugin:
    /plugin install mach10@merckgroup-mach10
    
  4. Verify the commands are available by running any mach10 command, e.g.:
    /mach10:issue-assessment 1
    

If step 2 or 3 still fails, the marketplace.json schema or "source": "." self-reference may not match Claude Code's expectations, and we'll need to adjust.

LeanAndMean avatar Feb 19 '26 18:02 LeanAndMean

The fix from 550f49c didn't work. Running /plugin marketplace add merckgroup/mach10 produces the following error:

Error: Invalid schema: /home/m324589/.claude/plugins/marketplaces/merckgroup-mach10/.claude-plugin/marketplace.json plugins.0.source: Invalid input

The marketplace catalog file is being fetched, but the "source": "." value is failing schema validation. The source field likely expects a different format (e.g., a GitHub URL or a specific path pattern) rather than a relative self-reference.

LeanAndMean avatar Feb 19 '26 18:02 LeanAndMean

Pushed a follow-up fix in 2754cf3. The source field in marketplace.json requires relative paths to start with "./" rather than bare ".". Changed "source": "." to "source": "./".

To test:

  1. Start a fresh Claude Code session
  2. Run /plugin marketplace add merckgroup/mach10
  3. Run /plugin install mach10@merckgroup-mach10

LeanAndMean avatar Feb 19 '26 18:02 LeanAndMean

Verified the latest fix works.

LeanAndMean avatar Feb 19 '26 18:02 LeanAndMean