Audience: maintainers testing gen3 before Marketplace submit.
Gene: repo.plugins.cursor.gen3
From this repo (provided_plugins/cursor-plugin/):
node scripts/install-local.mjsCreates a link to plugins/agentstack/ (the Cursor plugin package):
| OS | Mechanism | Path |
|---|---|---|
| Windows | directory junction (no admin) | %USERPROFILE%\.cursor\plugins\local\agentstack |
| macOS / Linux | symlink | ~/.cursor/plugins/local/agentstack |
Repo root also has .cursor-plugin/marketplace.json for Add marketplace from GitHub (pluginRoot: plugins, source: agentstack). Local link tests the package itself; GitHub add uses the marketplace index.
Replace existing link:
node scripts/install-local.mjs --forceCopy platform-only agents from ../cursor-plugin-maintainer/:
node scripts/install-local.mjs --maintainerSee ../cursor-plugin-maintainer/README.md. Not published to Marketplace.
Check / uninstall:
node scripts/install-local.mjs --check
node scripts/uninstall-local.mjs- Optional offline health:
node scripts/diagnose-local.mjs(add--fixto strip staletoolson mcp entry;--seed-snapshotto pull flat catalog with current auth). - Reload: Command Palette →
Developer: Reload Window - Confirm plugin loads (rules/skills appear; or run a slash command).
- Auth:
/agentstack-init- Requires Node on PATH
- Browser →
https://agentstack.tech/activate - Prefer Device Code over a lone
X-API-Key(refresh + snapshot stay in sync). - Writes Bearer →
~/.cursor/mcp.json
- Smoke:
/agentstack-diagnosethen/agentstack-capability-matrix - Optional host:
/agentstack-host-site
Offline preflight (no Cursor UI):
node scripts/validate-plugin.mjs --strict-screenshots
node scripts/test-hooks-contract.mjs
pwsh scripts/smoke-local.ps1
# or: node scripts/smoke-local.mjsSee FLOW.md. After init you should have:
~/.cursor/mcp.json—mcpServers.agentstackBearer~/.cursor/agentstack-refresh— refresh token~/.cursor/agentstack-capabilities.json— flatactions[]snapshot
| Symptom | Fix |
|---|---|
| Plugin not listed after install | Reload Window; confirm install-local.mjs --check |
ERR_MODULE_NOT_FOUND on device-code |
Run from synced tree with lib/plugin-kernel/; re-run sync-plugin-kernel.mjs in monorepo |
| Device Code hangs then fails immediately | Ensure kernel poll handles 400 authorization_pending (0.4.14+) |
| Junction needs elevation | Use install-local (junction, not symlink); avoid copying the folder |
Local link does not remove Marketplace installs. Uninstall local with uninstall-local.mjs only.