@t0ken.ai/memoryx-mcp-server 2.0.2 → 2.0.3

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.
Files changed (2) hide show
  1. package/README.md +77 -53
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,44 +1,28 @@
1
- # MemoryX MCP Server
1
+ # 🧠 MemoryX MCP Server
2
2
 
3
- MemoryX MCP Server for Cursor, VS Code, Claude Desktop and other MCP clients.
3
+ [![NPM version](https://badge.fury.io/js/@t0ken%2Fai%2Fmemoryx-mcp-server.svg)](https://www.npmjs.com/package/@t0ken.ai/memoryx-mcp-server)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
5
 
5
- Powered by **@t0ken.ai/memoryx-sdk**
6
+ **Give your AI assistants long-term memory via Model Context Protocol.**
6
7
 
7
- ## Features
8
+ MemoryX MCP Server enables Cursor, VS Code, Claude Desktop, and other MCP clients to store and retrieve memories across conversations.
8
9
 
9
- - **save_memory**: Save important information to memory system
10
- - **search_memory**: Search historical memories
11
- - **get_account_info**: Get account information
10
+ ## ✨ Features
12
11
 
13
- ## Characteristics
12
+ - 🚀 **Zero Config** - Auto-registers on first use, no API key needed
13
+ - 🔍 **save_memory** - Store important information with automatic categorization
14
+ - 🔎 **search_memory** - Semantic search across all historical memories
15
+ - â„šī¸ **get_account_info** - Check connection status and agent info
14
16
 
15
- - Based on @t0ken.ai/memoryx-sdk
16
- - MCP mode: LLM summarizes and sends single memory additions
17
- - Server extracts entities directly without LLM summarization
18
- - Trigger: 20k tokens or 1 minute idle
19
- - Automatic retry mechanism
20
- - Offline support
17
+ ## 🚀 Quick Start
21
18
 
22
- ## Installation
23
-
24
- ### Option 1: NPM Install
19
+ ### Install
25
20
 
26
21
  ```bash
27
22
  npm install -g @t0ken.ai/memoryx-mcp-server
28
23
  ```
29
24
 
30
- ### Option 2: Install from Source
31
-
32
- ```bash
33
- cd plugins/memoryx-mcp-server
34
- npm install
35
- npm run build
36
- npm link
37
- ```
38
-
39
- ## Configuration
40
-
41
- ### Cursor / VS Code
25
+ ### Configure Cursor / VS Code
42
26
 
43
27
  Add to `~/.cursor/mcp.json` or VS Code MCP config:
44
28
 
@@ -46,61 +30,101 @@ Add to `~/.cursor/mcp.json` or VS Code MCP config:
46
30
  {
47
31
  "mcpServers": {
48
32
  "memoryx": {
49
- "command": "memoryx-mcp-server",
50
- "env": {
51
- "MEMORYX_API_KEY": "your_api_key_here",
52
- "MEMORYX_URL": "https://t0ken.ai/api"
53
- }
33
+ "command": "memoryx-mcp-server"
54
34
  }
55
35
  }
56
36
  }
57
37
  ```
58
38
 
59
- ### Claude Desktop
39
+ **That's it!** The server auto-registers on first use - no additional configuration needed.
60
40
 
61
- Add to Claude Desktop config file:
41
+ ### Configure Claude Desktop
62
42
 
63
43
  **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
44
+
64
45
  **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
65
46
 
66
47
  ```json
67
48
  {
68
49
  "mcpServers": {
69
50
  "memoryx": {
70
- "command": "memoryx-mcp-server",
71
- "env": {
72
- "MEMORYX_API_KEY": "your_api_key_here"
73
- }
51
+ "command": "memoryx-mcp-server"
74
52
  }
75
53
  }
76
54
  }
77
55
  ```
78
56
 
79
- ## Usage
57
+ ## 📖 Tools
80
58
 
81
- ### Auto Registration
59
+ ### save_memory
82
60
 
83
- If no API Key is provided, MCP Server will auto-register and generate one.
61
+ Save information to long-term memory.
84
62
 
85
- ### Manual Binding
63
+ **When to call (automatic triggers):**
64
+ 1. User explicitly says "remember", "note this", "don't forget"
65
+ 2. User corrects your error (store the correct version)
66
+ 3. User expresses preferences (I like/hate/usually...)
67
+ 4. User mentions important experiences or future plans
68
+ 5. End of conversation - generate a 100-word summary
86
69
 
87
- 1. Visit https://t0ken.ai/portal
88
- 2. Login and copy API Key
89
- 3. Configure environment variable `MEMORYX_API_KEY`
70
+ **Categories (use in metadata.category):**
71
+ - `semantic` - facts, knowledge, user preferences
72
+ - `episodic` - specific events, experiences
73
+ - `procedural` - skills, methods, how-to steps
74
+ - `emotional` - feelings, emotional states
75
+ - `reflective` - insights, patterns, lessons learned
90
76
 
91
- ## Local Storage
77
+ **Example:**
78
+ ```json
79
+ {
80
+ "content": "User prefers dark theme in VS Code",
81
+ "metadata": {
82
+ "category": "semantic",
83
+ "tags": ["preference", "editor"]
84
+ }
85
+ }
86
+ ```
87
+
88
+ ### search_memory
89
+
90
+ Search historical memories before responding.
91
+
92
+ **Always call BEFORE:**
93
+ - Answering questions about user preferences/history
94
+ - Topics that might relate to past conversations
95
+ - Any personalized response needed
96
+
97
+ **Workflow:** `search` → `review results` → `generate informed response`
92
98
 
93
- Data is stored in `~/.memoryx/mcp-server/` directory.
99
+ ### get_account_info
94
100
 
95
- ## MCP Mode vs OpenClaw Conversation Mode
101
+ Get current connection status including:
102
+ - API Key (masked)
103
+ - Agent ID
104
+ - Queue length
105
+
106
+ ## 📁 Local Storage
107
+
108
+ Data stored in `~/.memoryx/sdk/` (managed by SDK):
109
+ - `memoryx.db` - SQLite database with agent info, queue, and cached data
110
+
111
+ ## 🔄 MCP Mode vs OpenClaw Mode
96
112
 
97
113
  | Feature | MCP Server | OpenClaw Plugin |
98
114
  |---------|------------|-----------------|
99
115
  | Data Source | LLM summarized single additions | Bidirectional conversation flow |
100
116
  | Server Processing | Direct entity extraction | LLM summarization then extraction |
101
- | Trigger Mechanism | 20k tokens / 1 min idle | 30k tokens / 5 min idle |
117
+ | Trigger | 20k tokens / 1 min idle | 30k tokens / 5 min idle |
102
118
  | Use Case | Cursor/Claude Desktop | OpenClaw Gateway |
103
119
 
104
- ## License
120
+ ## 📚 More Resources
121
+
122
+ - [MemoryX Platform](https://t0ken.ai)
123
+ - [Documentation](https://docs.t0ken.ai)
124
+ - [Node.js SDK](https://www.npmjs.com/package/@t0ken.ai/memoryx-sdk)
125
+ - [Python SDK](https://pypi.org/project/t0ken-memoryx/)
126
+ - [GitHub](https://github.com/t0ken-ai/MemoryX)
127
+
128
+ ## 📄 License
105
129
 
106
- MIT
130
+ MIT Š MemoryX Team
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t0ken.ai/memoryx-mcp-server",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "MemoryX MCP Server for Cursor/VS Code/Claude Desktop (powered by @t0ken.ai/memoryx-sdk)",
5
5
  "main": "dist/index.js",
6
6
  "bin": {