Skip to content

Fix plugin source path so install works on Claude Code 2.1.x#2

Open
goalkeepr wants to merge 1 commit intoserpapi:mainfrom
goalkeepr:fix/marketplace-source-relative-path
Open

Fix plugin source path so install works on Claude Code 2.1.x#2
goalkeepr wants to merge 1 commit intoserpapi:mainfrom
goalkeepr:fix/marketplace-source-relative-path

Conversation

@goalkeepr
Copy link
Copy Markdown

Summary

The plugin entry's source field was set to bare \".\", which causes Claude Code 2.1.x to silently fail or report:

Failed to install: This plugin uses a source type your Claude Code version does not support. Update Claude Code and try again.

The official marketplace docs document the same-repo relative path form as \"./\" (with trailing slash), and Claude Code's installer requires that exact form. Updating to \"./\" is a one-character fix that does not change semantics.

Test plan

Verified locally on macOS with Claude Code 2.1.121 (native install):

  • claude plugin validate ~/source/serpapi-claude-plugin → ✔ Validation passed
  • claude plugin marketplace add ~/source/serpapi-claude-plugin → ✔ Successfully added
  • claude plugin install serpapi@serpapi-plugins → ✔ Successfully installed plugin
  • claude plugin list shows serpapi@serpapi-plugins enabled
  • bash test.sh → 13 passed, 0 failed

Before the fix, the install step failed with the source-type error above.

🤖 Generated with Claude Code

Bare "." in the plugin source field causes Claude Code 2.1.x to reject
the install with "This plugin uses a source type your Claude Code
version does not support." The official marketplace schema documents
relative same-repo plugin paths as starting with "./", and Claude
Code's installer requires that exact form.

Verified locally on Claude Code 2.1.121:
- claude plugin validate ~/source/serpapi-claude-plugin → passes
- claude plugin install serpapi@serpapi-plugins → succeeds
- claude plugin list → shows serpapi@serpapi-plugins enabled
- bash test.sh → 13 passed, 0 failed
Copilot AI review requested due to automatic review settings April 28, 2026 17:23
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Claude Code plugin marketplace definition so the plugin can be installed on Claude Code 2.1.x, aligning the source field with the documented same-repo relative path format.

Changes:

  • Change plugin source from "." to "./" in the marketplace entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants