Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .cursor-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
},
"metadata": {
"description": "Cursor plugins for Shopware development",
"version": "1.1.0",
"pluginRoot": "./plugins"
"version": "1.1.0"
},
"plugins": [
{
Expand Down
7 changes: 7 additions & 0 deletions .github/scripts/validate-cursor-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# Validates the Cursor-only marketplace:
# - .cursor-plugin/marketplace.json exists and lists plugins
# - metadata.pluginRoot is unset (sources are already repo-relative)
# - each plugin has .cursor-plugin/plugin.json
# - no Claude Code marketplace or plugin manifests remain
# - MCP plugins ship mcp.json (default discovery) with CURSOR_PLUGIN_ROOT
Expand Down Expand Up @@ -52,6 +53,12 @@ if ! jq -e '.name and .owner.name and .plugins' "$CURSOR_MARKETPLACE" >/dev/null
exit 1
fi

plugin_root=$(jq -r '.metadata.pluginRoot // empty' "$CURSOR_MARKETPLACE")
if [ -n "$plugin_root" ]; then
log_error "marketplace.json must not set metadata.pluginRoot (${plugin_root}). Each source is already repo-relative (./plugins/<name>); Cursor prefixes pluginRoot onto every source and looks up plugins/plugins/<name>."
failed=$((failed + 1))
fi

while IFS= read -r plugin_name; do
[ -z "$plugin_name" ] && continue
source_path=$(jq -r --arg name "$plugin_name" '.plugins[] | select(.name == $name) | .source // empty' "$CURSOR_MARKETPLACE")
Expand Down
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ plugins/
- `owner` — Object with at least `name`
- `plugins` — Array of `{ "name", "source" }` (`source` is a relative path starting with `./`)

Omit `metadata.pluginRoot`. Each `source` is already a repo-relative path such as `./plugins/<name>`. Cursor prefixes `pluginRoot` onto every `source`, so setting both looks up `plugins/plugins/<name>` and the plugin fails to load.

### plugin.json Schema

```json
Expand Down
Loading