Skip to content

Cursor

Target id Package Ship with
cursor @oiap/exporter-cursor oiap sync (git install) or install-agent-plugin
Terminal window
npx oiap build oiap.plugin.ts --target cursor --out dist/cursor
npx install-agent-plugin <owner>/<repo> --plugin <plugin-id> --agent cursor

Cursor plugin exporter for Open Interoperable Agent Plugins.

The exporter renders a Cursor plugin directory with a required .cursor-plugin/plugin.json manifest plus native Cursor component folders:

  • rules/ for .mdc rules.
  • skills/ for Agent Skills.
  • agents/ for custom agent prompts.
  • commands/ for agent-executable commands.
  • hooks/hooks.json for command hooks backed by the OIAP generated runtime.
  • mcp.json for MCP server definitions.

The output is a bundle artifact only. It does not install the plugin into a Cursor profile, marketplace, or project.

Where install-agent-plugin and installPlugin() write the bundle, from the target profile. --out <dir> overrides them.

Scope Path
Local (default) ./.cursor/plugins/<plugin-id>
Global (--global) ~/.cursor/plugins/<plugin-id>

From the platform support matrix (see its legend).

Profile Package Rules Skills Commands Hooks Agents MCP Runtime Policy
editor Y Y Y Y Y Y Y P P

Editor plugin target. Cursor plugins use .cursor-plugin/plugin.json, .mdc rule files in rules/, Agent Skills in skills/, custom agent markdown files in agents/, command markdown files in commands/, hooks/hooks.json, and root mcp.json. OIAP emits plugin bundles for those native surfaces and records policy-specific lowering gaps in the capability report.