Allow to define tracked branch for Cursor plugin installatation

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

We are building our own plugin including skills and commands to share internally within company. It is an approach that we want to implement to keep it consistent between AI tools (as we use plugins for Claude Code as well). We were able to define marketplace and plugin according to Plugins | Cursor Docs and successfully side load locally before publishing it on the Github (commands and skills are accessible and can be used). However, we encountered issues when installing the plugin from Github - we were able to add a Marketplace (which is our internal GH repository), then Cursor plugin was visible as an option to install (with listing of all skills/commands visible). After adding the plugin, a popup showed up:

git ls-remote did not return a resolvable commit for ref “main” (https://github.com/<our_org>/<our_repo>)

This tracks, as we are using master as HEAD ref branch and we would like to keep using it - it is default policy in our company. I checked the docs for plugin creation and installation, but nothing indicates that it’s possible to select referenced branch and it always defaults to “main”.

Steps to Reproduce

  • Define a plugin and push it to branch name other than “main”
  • Add a marketplace targetting this repository, while adding a branch name at the end (or do not add any branch at all - just have other branch than “main” as HEAD)
  • Add plugin
  • Wait up to ~10 minutes until automatic reload of plugin hits.

Expected Behavior

The plugin loads correctly

Operating System

MacOS

Version Information

Version: 3.24.12
VS Code Extension API: 1.128.0
Commit: 37b865941ccb31e2fc90c685157534efca87f960
Date: 2026-10-09T20:56:41.904Z
Layout: Agent Window
Build Type: Stable
Release Track: Default
Electron: 42.10.0
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 27.0.0

Additional Information

It’s either missing feature, or missing documentation

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @Bartlomiej_Buchala, thanks for the report and the clear steps.

You’re right: when a marketplace doesn’t have a stored branch, the plugin install currently looks up main instead of the repo’s default branch, and there’s no way yet to pick the branch when you add the marketplace (a branch at the end of the URL is ignored). This is a known issue we’re already tracking, and I’ve added your report to it.

In the meantime, you should be able to work around it by pinning the branch on the plugin’s source in marketplace.json, using the same object form Claude Code uses:

{
  "name": "your-plugin",
  "source": {
    "source": "github",
    "repo": "your-org/your-repo",
    "ref": "master"
  }
}

After pushing that to master, remove the marketplace in Cursor and add it again so it gets re-indexed, then reinstall the plugin. If that still shows the main error, let me know!

Hey @Colin

I followed source object schema you proposed (except we went for git-subdir + url) and it worked like charm. Rather than bug or missing feature, I feel this is documentation gap → Plugins Reference | Cursor Docs mentions source object with options, but does not mention what the options are. I was able to validate it with Claude Code docs Marketplace reference - Claude Code Docs after you mention that those objects are the same.

Thank you and have a nice day!