Skip to content

fix(plugin): make Cursor plugin fully functional#4547

Merged
deshraj merged 4 commits intomem0ai:mainfrom
gabrielstein-mem0:fix/cursor-plugin-updates
Mar 26, 2026
Merged

fix(plugin): make Cursor plugin fully functional#4547
deshraj merged 4 commits intomem0ai:mainfrom
gabrielstein-mem0:fix/cursor-plugin-updates

Conversation

@gabrielstein-mem0
Copy link
Copy Markdown
Contributor

@gabrielstein-mem0 gabrielstein-mem0 commented Mar 26, 2026

Summary

The Cursor plugin (mem0-plugin/.cursor-plugin/) shipped with metadata only — skills, hooks, and MCP server were present in the directory but not declared or compatible with Cursor's format. This PR fixes all compatibility issues:

  • plugin.json: Add displayName, keywords, component declarations (skills, hooks, mcpServers); fix author.url (invalid in Cursor schema) to homepage; use ./skills/ convention
  • Cursor-specific MCP config (.cursor-mcp.json): Cursor requires ${env:MEM0_API_KEY} syntax (not ${MEM0_API_KEY}) and doesn't use a "type" field for remote servers
  • Cursor-specific hooks (hooks/cursor-hooks.json): Cursor uses camelCase event names (sessionStart, preToolUse, stop, beforeSubmitPrompt) vs Claude Code's PascalCase, a flatter structure, and ${CURSOR_PLUGIN_ROOT} paths
  • Deeplink regenerated: Removed invalid "type":"http", uses correct ${env:MEM0_API_KEY} interpolation
  • README rewritten: Added manual config option, feature comparison table showing what each install method includes, moved duplicate-tools warning before install links

- Fix plugin.json: add displayName, keywords, component declarations
  (skills, hooks, mcpServers); move author.url to homepage; fix skills
  path to ./skills/ convention
- Add .cursor-mcp.json with Cursor-compatible env var syntax
  (${env:MEM0_API_KEY} vs Claude Code's ${MEM0_API_KEY})
- Add cursor-hooks.json with camelCase events, flatter structure, and
  ${CURSOR_PLUGIN_ROOT} paths (vs Claude Code's PascalCase/nested format)
- Regenerate deeplink base64 config: remove invalid "type":"http" field,
  use correct ${env:MEM0_API_KEY} interpolation
- Rewrite README: add manual config option, feature comparison table,
  move duplicate-tools warning before install links, clarify what each
  install method includes
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Cowork (desktop app) shares the same plugin system as Claude Code (CLI).
Added Cowork install instructions and updated feature comparison table.
Remove displayName from plugin.json and version from cursor-hooks.json
— neither field exists in the official Cursor plugin reference.
Move author.url (not in spec) to homepage field, add author.email.
Aligns with the Claude Code plugin reference schema.
@deshraj deshraj merged commit 4e414e4 into mem0ai:main Mar 26, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants