cursor-supermemory 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursor-plugin/plugin.json +14 -0
- package/.mcp.json +8 -0
- package/README.md +40 -0
- package/commands/supermemory-config.md +21 -0
- package/commands/supermemory-logout.md +12 -0
- package/commands/supermemory-setup.md +14 -0
- package/dist/cli.js +1767 -0
- package/dist/mcp-server.js +1654 -0
- package/dist/session-end.js +1447 -0
- package/dist/session-start.js +1479 -0
- package/hooks/hooks.json +18 -0
- package/package.json +28 -0
- package/rules/supermemory.mdc +21 -0
- package/skills/memory-init/SKILL.md +13 -0
- package/skills/memory-save/SKILL.md +10 -0
- package/skills/memory-search/SKILL.md +9 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cursor-supermemory",
|
|
3
|
+
"description": "Persistent AI memory for Cursor — powered by Supermemory",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Supermemory",
|
|
7
|
+
"email": "dhravya@supermemory.com"
|
|
8
|
+
},
|
|
9
|
+
"keywords": ["memory", "supermemory", "ai", "mcp"],
|
|
10
|
+
"rules": "rules",
|
|
11
|
+
"skills": "skills",
|
|
12
|
+
"commands": "commands",
|
|
13
|
+
"mcpServers": ".mcp.json"
|
|
14
|
+
}
|
package/.mcp.json
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# cursor-supermemory
|
|
2
|
+
|
|
3
|
+
Persistent AI memory for Cursor — powered by [Supermemory](https://supermemory.ai).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Install from the [Cursor Marketplace](https://cursor.com/marketplace), then authenticate:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
bunx cursor-supermemory@latest login
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## What it does
|
|
14
|
+
|
|
15
|
+
- **MCP tools** — 5 tools available in every Cursor AI session:
|
|
16
|
+
- `supermemory_search` — search past memories
|
|
17
|
+
- `supermemory_add` — save new memories
|
|
18
|
+
- `supermemory_profile` — get your user profile
|
|
19
|
+
- `supermemory_list` — list recent memories
|
|
20
|
+
- `supermemory_forget` — delete a memory
|
|
21
|
+
- **Session hooks** — automatically injects relevant memories at session start; saves conversation highlights at session end
|
|
22
|
+
- **Always-on rule** — reminds the AI to use memory tools proactively
|
|
23
|
+
|
|
24
|
+
## Configuration
|
|
25
|
+
|
|
26
|
+
| Variable | Description |
|
|
27
|
+
|---|---|
|
|
28
|
+
| `SUPERMEMORY_API_KEY` | API key (highest priority) |
|
|
29
|
+
| `CURSOR_USER_EMAIL` | Used for user container tag |
|
|
30
|
+
| `CURSOR_PROJECT_DIR` | Used for project container tag |
|
|
31
|
+
| `SUPERMEMORY_DEBUG` | Set to `1` for debug logging |
|
|
32
|
+
|
|
33
|
+
Project config: `.cursor/.supermemory/config.json` (add to `.gitignore`)
|
|
34
|
+
|
|
35
|
+
## Development
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
bun install
|
|
39
|
+
bun run build # compiles all dist/ files
|
|
40
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: supermemory-config
|
|
3
|
+
description: Configure Supermemory settings for this project
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Create or edit `.cursor/.supermemory/config.json` at your project root:
|
|
7
|
+
|
|
8
|
+
```json
|
|
9
|
+
{
|
|
10
|
+
"apiKey": null,
|
|
11
|
+
"projectContainerTag": null,
|
|
12
|
+
"userContainerTag": null
|
|
13
|
+
}
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Settings:
|
|
17
|
+
- `apiKey`: Override the global API key for this project
|
|
18
|
+
- `projectContainerTag`: Custom tag for project memories (default: auto-generated from git root)
|
|
19
|
+
- `userContainerTag`: Custom tag for user memories (default: auto-generated from email/machine)
|
|
20
|
+
|
|
21
|
+
Add `.cursor/.supermemory/` to your `.gitignore` to keep credentials out of version control.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: supermemory-logout
|
|
3
|
+
description: Disconnect Supermemory from Cursor
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Run the following command to remove your Supermemory credentials:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
bunx cursor-supermemory@latest logout
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Your credentials will be removed from ~/.supermemory-cursor/credentials.json. Your memories in Supermemory are not deleted.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: supermemory-setup
|
|
3
|
+
description: Connect Supermemory to Cursor for persistent AI memory
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Run the following command in the terminal to authenticate:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
bunx cursor-supermemory@latest login
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
This opens your browser to connect your Supermemory account to Cursor. Once connected, the AI will have persistent memory across all your coding sessions.
|
|
13
|
+
|
|
14
|
+
If the browser doesn't open automatically, visit: https://console.supermemory.ai/auth/connect?client=cursor
|