Skip to content

fix(install): suggest a valid claude plugin scope when plugin verification fails - #591

Open
mpkrass7 wants to merge 2 commits into
databricks-solutions:mainfrom
mpkrass7:fix/claude-plugin-install-scope
Open

fix(install): suggest a valid claude plugin scope when plugin verification fails#591
mpkrass7 wants to merge 2 commits into
databricks-solutions:mainfrom
mpkrass7:fix/claude-plugin-install-scope

Conversation

@mpkrass7

@mpkrass7 mpkrass7 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What

When verify_claude_plugin() can't find the databricks@claude-plugins-official plugin after databricks aitools install, it aborts and prints a copy-paste command for the user to run manually. That command interpolated the installer's own $SCOPE value:

claude plugin install databricks@claude-plugins-official --scope global

But the claude CLI only accepts user, project, or local as scopes — global is invalid, so the suggested command fails for anyone who did a global install.

Fix

Translate the installer's scope to a valid claude scope before building the message, matching what remove_claude_plugin() already does elsewhere in this script:

  • globaluser
  • projectproject

Notes

  • This only changes the guidance text printed on the failure path. The actual claude plugin install --scope global invocation that some users hit is emitted internally by databricks aitools install --scope global (a separate binary), so that passthrough would need a fix in the Databricks CLI itself — out of scope for this repo.
  • bash -n install.sh passes.

This pull request and its description were written by Isaac but it was lovingly and carefully reviewed by me (because it's a 4 line change)

…uidance

verify_claude_plugin() printed a copy-paste command using the installer's
own SCOPE value ("global"), but the `claude` CLI only accepts user|project|local.
So a global install that failed verification handed the user an invalid
`claude plugin install ... --scope global` command.

Translate the scope the same way remove_claude_plugin() already does
(global → user, project → project) so the suggested command actually runs.

Co-authored-by: Isaac
Comment thread install.sh Outdated
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