Skip to content

Fix plugin.json so the plugin installs on current Claude Code#21

Open
bryan-anthropic wants to merge 1 commit into
mlflow:mainfrom
bryan-anthropic:fix/plugin-manifest-install
Open

Fix plugin.json so the plugin installs on current Claude Code#21
bryan-anthropic wants to merge 1 commit into
mlflow:mainfrom
bryan-anthropic:fix/plugin-manifest-install

Conversation

@bryan-anthropic

Copy link
Copy Markdown

Summary

The plugin currently fails to install via claude plugin install on recent Claude Code releases (verified on v2.1.170) because of three plugin.json schema issues. This PR fixes them so the plugin installs and all 9 skills + the hook register.

Changes

  1. author — changed from a string to an object ({"name": "MLflow Team"}). Recent CLI versions validate author as an object and reject the string form.
  2. skills[] — added the ./ path prefix to each entry. Without it the loader rejects the entries at install time, so no skills register.
  3. hooks — replaced the bare script-path array with a reference to a new hooks/hooks.json config (added) that wires the existing mlflow-suggest-hook.py to the UserPromptSubmit event. Plugin hooks are configured via a hooks JSON file rather than a list of script paths.

Verification

Installed the patched plugin from a local marketplace on Claude Code v2.1.170:

  • Before: ✘ Failed to install … Validation errors: author …, hooks …, skills …
  • After: ✔ Successfully installedclaude plugin details mlflow reports Skills (9) and Hooks (1, UserPromptSubmit).

The plugin failed to install via `claude plugin install` on recent
Claude Code releases (verified v2.1.170) due to three plugin.json
schema issues:

- author: string -> object ({"name": "MLflow Team"}); recent CLI
  validates author as an object and rejects the string form.
- skills[]: add the "./" path prefix to each entry; without it the
  loader rejects the entries at install time and no skills register.
- hooks: replace the bare script-path array with a reference to a
  new hooks/hooks.json that wires mlflow-suggest-hook.py to the
  UserPromptSubmit event.

Verified: installs cleanly and registers all 9 skills + the hook.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant