diff --git a/.cursor-plugin/marketplace.json b/.cursor-plugin/marketplace.json index 3f7fd03..d9cfa8d 100644 --- a/.cursor-plugin/marketplace.json +++ b/.cursor-plugin/marketplace.json @@ -13,29 +13,7 @@ { "name": "agentstack", "source": "agentstack", - "description": "Work Graph control plane: agents.work_next (mcp_work_loop_v1) via agentstack.execute. Catalog search is fallback. Also hosting (/s/), storage, 8DNA, logic, payments, RAG.", - "version": "0.5.0", - "author": { - "name": "AgentStack", - "email": "support@agentstack.tech" - }, - "homepage": "https://agentstack.tech", - "repository": "https://github.com/agentstacktech/cursor-plugin", - "license": "MIT", - "keywords": [ - "work-graph", - "mcp", - "agents", - "hosting", - "backend", - "8dna", - "rag", - "payments", - "storage", - "agentstack" - ], - "logo": "assets/icon.png", - "category": "Productivity" + "description": "Work Graph control plane: agents.work_next (mcp_work_loop_v1) via agentstack.execute. Catalog search is fallback. Also hosting (/s/), storage, 8DNA, logic, payments, RAG." } ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index cf86fcf..f82bd06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to the AgentStack Cursor plugin are documented here. Format: ### Fixed - Plugin CI: `audit-plugin-prose-leaks` (work-graph SKILL), stale-action scan (`showcase.catalog.*`, capability matrix `bots.staff_reply` copy). +- GitHub / Add marketplace install: `.cursor-plugin/marketplace.json` plugin entries keep only Cursor schema fields (`name`, `source`, `description`). Version, logo, keywords, and related metadata stay in `plugin.json`; `category` moved there. `validate-plugin.mjs` now rejects extra marketplace entry fields. ## [0.4.27] - 2026-11-11 diff --git a/plugins/agentstack/.cursor-plugin/plugin.json b/plugins/agentstack/.cursor-plugin/plugin.json index 6fa24df..0577fbe 100644 --- a/plugins/agentstack/.cursor-plugin/plugin.json +++ b/plugins/agentstack/.cursor-plugin/plugin.json @@ -29,6 +29,7 @@ "agent", "boilerplate-free" ], + "category": "Productivity", "rules": "rules/", "skills": "skills/", "commands": "commands/", diff --git a/scripts/validate-plugin.mjs b/scripts/validate-plugin.mjs index 6d3d649..41d269e 100644 --- a/scripts/validate-plugin.mjs +++ b/scripts/validate-plugin.mjs @@ -324,13 +324,39 @@ if (fs.existsSync(marketplacePath)) { if (mp.$schema !== undefined) { fail('marketplace.json: remove "$schema" — Cursor rejects external schema URLs on marketplace manifests'); } + // Official Cursor marketplace schema (cursor/plugins schemas/marketplace.schema.json): + // root additionalProperties:false — only name, owner, metadata, plugins. + // pluginEntry additionalProperties:false — only name, source, description, minClientVersions. + // Extra fields (version, keywords, logo, category, …) make Cursor GitHub install fail. + const MP_ROOT_KEYS = new Set(['name', 'owner', 'metadata', 'plugins']); + const MP_OWNER_KEYS = new Set(['name', 'email']); + const MP_ENTRY_KEYS = new Set(['name', 'source', 'description', 'minClientVersions']); + for (const key of Object.keys(mp)) { + if (!MP_ROOT_KEYS.has(key)) { + fail(`marketplace.json: "${key}" is not in Cursor marketplace schema — allowed: name, owner, metadata, plugins`); + } + } if (!mp.name || !KEBAB_REGEX.test(mp.name)) fail('marketplace.json: name required (kebab-case)'); else ok(`marketplace.json: name=${mp.name}`); if (!mp.owner?.name) fail('marketplace.json: owner.name required'); + if (mp.owner && typeof mp.owner === 'object') { + for (const key of Object.keys(mp.owner)) { + if (!MP_OWNER_KEYS.has(key)) { + fail(`marketplace.json: owner."${key}" is not in Cursor marketplace schema — allowed: name, email`); + } + } + } if (!Array.isArray(mp.plugins) || mp.plugins.length === 0) fail('marketplace.json: plugins[] required'); else { + for (const [i, entry] of mp.plugins.entries()) { + if (!entry?.name || !entry?.source) fail(`marketplace.json: plugins[${i}] needs name + source`); + for (const key of Object.keys(entry || {})) { + if (!MP_ENTRY_KEYS.has(key)) { + fail(`marketplace.json: plugins[${i}]."${key}" is not in Cursor marketplace schema (allowed: name, source, description, minClientVersions) — move to plugins/.../plugin.json`); + } + } + } const entry = mp.plugins.find((p) => p.name === 'agentstack') || mp.plugins[0]; - if (!entry?.name || !entry?.source) fail('marketplace.json: each plugin needs name + source'); const pluginRoot = mp.metadata?.pluginRoot || ''; const sourceDir = path.join(ROOT, pluginRoot, entry.source); if (!fs.existsSync(path.join(sourceDir, '.cursor-plugin/plugin.json'))) { @@ -342,6 +368,7 @@ if (fs.existsSync(marketplacePath)) { if (String(entry.source).includes('./') || entry.source === '.') { fail('marketplace.json: use bare source dir name (e.g. "agentstack"), not "." or "./…"'); } + ok('marketplace.json: plugin entries match Cursor marketplace schema'); } if (mp.metadata?.pluginRoot !== 'plugins') { warn('marketplace.json: metadata.pluginRoot should be "plugins" (Cursor 2.6+ multi-plugin layout)');