Plugin marketplace registration fails silently, then 'add' fails with missing marketplace.json
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
-
Run the marketplace add command directly (before registration):
/plugin marketplace add merckgroup/mach10Result:
Error: Marketplace file not found at /Users/<user>/.claude/plugins/marketplaces/merckgroup-mach10/.claude-plugin/marketplace.json -
Attempt to register the marketplace first:
/plugin marketplace register merckgroup/mach10Result: Command completes with no output (no error message, no success message)
-
Run the add command again:
/plugin marketplace add merckgroup/mach10Result: 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.jsonfile was not updated to include merckgroup/mach10 - Only the default
claude-plugins-officialmarketplace exists
Expected Behavior
-
/plugin marketplace register merckgroup/mach10should:- Clone the repository to
~/.claude/plugins/marketplaces/merckgroup-mach10/ - Update
known_marketplaces.jsonwith the new marketplace entry - Provide feedback on success or failure
- Clone the repository to
-
/plugin marketplace add merckgroup/mach10should then successfully install the plugin
Questions
- Does this repo have the required
.claude-plugin/marketplace.jsonfile structure? - Is there a different installation method for this plugin?
- 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.
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
- Start a fresh Claude Code session:
claude - Register the marketplace:
This should complete without error./plugin marketplace add merckgroup/mach10 - Install the plugin:
/plugin install mach10@merckgroup-mach10 - 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.
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.
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:
- Start a fresh Claude Code session
- Run
/plugin marketplace add merckgroup/mach10 - Run
/plugin install mach10@merckgroup-mach10
Verified the latest fix works.