@totalreclaw/mcp-server 1.3.0 → 1.4.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/README.md CHANGED
@@ -119,9 +119,9 @@ The server only ever sees ciphertext and hashed tokens.
119
119
  | Tier | Memories | Reads | Storage | Price |
120
120
  |------|----------|-------|---------|-------|
121
121
  | **Free** | 500/month | Unlimited | Testnet (trial) | $0 |
122
- | **Pro** | Unlimited | Unlimited | Permanent on-chain (Gnosis) | $5/month |
122
+ | **Pro** | Unlimited | Unlimited | Permanent on-chain (Gnosis) | See `totalreclaw_status` |
123
123
 
124
- Pay with card via Stripe. Counter resets monthly.
124
+ Pay with card via Stripe. Use `totalreclaw_status` to check current pricing. Counter resets monthly.
125
125
 
126
126
  ## Development
127
127
 
@@ -1 +1 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/cli/setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AA0BH;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAWzF;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAG9D;AAgED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAYtF;AAED,wBAAgB,eAAe,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAInE;AAiCD,wBAAsB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAwH9C"}
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/cli/setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AA0BH;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAWzF;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAG9D;AAgED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAYtF;AAED,wBAAgB,eAAe,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAInE;AAgDD,wBAAsB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CA+H9C"}
package/dist/cli/setup.js CHANGED
@@ -175,6 +175,19 @@ function printConfigSnippet(serverUrl) {
175
175
  console.log('');
176
176
  }
177
177
  // ---------------------------------------------------------------------------
178
+ // Recovery Phrase Warning
179
+ // ---------------------------------------------------------------------------
180
+ function printRecoveryPhraseWarning() {
181
+ console.log('');
182
+ console.log('+------------------------------------------------------------+');
183
+ console.log('| CRITICAL: Your recovery phrase is your ONLY identity. |');
184
+ console.log('| If you lose it, you lose ALL your memories forever. |');
185
+ console.log('| There is NO password reset. No recovery. No support. |');
186
+ console.log('| Write it down. Store it securely. Never share it. |');
187
+ console.log('+------------------------------------------------------------+');
188
+ console.log('');
189
+ }
190
+ // ---------------------------------------------------------------------------
178
191
  // Main Setup Flow
179
192
  // ---------------------------------------------------------------------------
180
193
  async function runSetup() {
@@ -198,24 +211,29 @@ async function runSetup() {
198
211
  process.exit(1);
199
212
  }
200
213
  console.log('\nRecovery phrase validated successfully.');
214
+ // Show critical warning even for returning users
215
+ printRecoveryPhraseWarning();
201
216
  }
202
217
  else {
203
218
  // Generate new mnemonic
204
219
  mnemonic = (0, bip39_1.generateMnemonic)(english_js_1.wordlist, 128); // 128 bits = 12 words
205
220
  console.log('');
206
- console.log('Your new recovery phrase (WRITE THIS DOWN AND KEEP IT SAFE):');
221
+ console.log('Your new recovery phrase:');
207
222
  console.log('');
208
223
  console.log(` ${mnemonic}`);
209
224
  console.log('');
210
- console.log('WARNING: This is the ONLY way to recover your encrypted memories.');
211
- console.log(' Anyone with this phrase can access your data.');
212
- console.log(' Store it in a password manager or write it down securely.');
213
- console.log('');
214
- const confirmed = await ask(rl, 'Have you saved your recovery phrase? (yes to continue): ');
215
- if (confirmed.toLowerCase() !== 'yes' && confirmed.toLowerCase() !== 'y') {
216
- console.log('\nSetup cancelled. Please save your recovery phrase and try again.');
217
- rl.close();
218
- process.exit(1);
225
+ printRecoveryPhraseWarning();
226
+ // Require explicit confirmation
227
+ let confirmed = await ask(rl, 'Have you written down your recovery phrase? (yes/no): ');
228
+ while (confirmed.toLowerCase() !== 'yes') {
229
+ if (confirmed.toLowerCase() === 'no' || confirmed.toLowerCase() === 'n') {
230
+ console.log('');
231
+ console.log('Please write down your recovery phrase before continuing:');
232
+ console.log('');
233
+ console.log(` ${mnemonic}`);
234
+ console.log('');
235
+ }
236
+ confirmed = await ask(rl, 'Have you written down your recovery phrase? (yes/no): ');
219
237
  }
220
238
  }
221
239
  // ── Step 2: Key Derivation ────────────────────────────────────────────
@@ -1 +1 @@
1
- {"version":3,"file":"setup.js","sourceRoot":"","sources":["../../src/cli/setup.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,sCAWC;AAMD,gDAGC;AAsED,0CAYC;AAED,0CAIC;AAiCD,4BAwHC;AAtSD,wDAA0C;AAC1C,4CAA8B;AAC9B,gDAAkC;AAClC,4CAA8B;AAE9B,wCAAsF;AACtF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AAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
package/dist/prompts.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- export declare const SERVER_INSTRUCTIONS = "\nYou have access to TotalReclaw, an end-to-end encrypted memory vault that persists across conversations.\n\n## CRITICAL: Automatic Memory Behaviors\n\n### At Conversation Start\nALWAYS call totalreclaw_recall at the beginning of EVERY new conversation with a brief summary of the user's first message as the query. This loads relevant context from past conversations. Present recalled memories naturally as context -- do not announce \"I found these memories\" or list them explicitly unless the user asks.\n\n### During Conversation\nWhen the user shares ANY of the following, call totalreclaw_remember to store it:\n- Personal preferences (\"I prefer...\", \"I like...\", \"I hate...\")\n- Personal information (name, location, occupation, family details)\n- Decisions or goals (\"I decided to...\", \"I want to...\")\n- Corrections to previous information (\"Actually, I'm vegan now\")\n- Important events or dates (\"My birthday is...\", \"I started a new job\")\n- Technical preferences (programming language, tools, frameworks)\n\nDo NOT store:\n- Temporary/transient context (weather, current task details)\n- Information about third parties the user hasn't asked to remember\n- Sensitive credentials (passwords, API keys, tokens)\n\n### Memory Hygiene\n- Before storing a new fact, check recalled memories to avoid duplicates\n- When the user corrects information, store the correction (the system handles deduplication)\n- Use importance 7-9 for core identity/preferences, 4-6 for moderate facts, 1-3 for minor details\n\n### Billing & Quota\nWhen a totalreclaw_remember call fails with \"quota_exceeded\":\n1. Inform the user they've reached their free tier limit\n2. Offer to check their usage with totalreclaw_status\n3. If they want to upgrade, use totalreclaw_upgrade to get a checkout link\nDo NOT repeatedly attempt to store memories after a quota error.\n\n### Importing memories from other tools\nIf the user mentions migrating from Mem0, MCP Memory Server, MemoClaw, or any other AI memory tool, offer to use totalreclaw_import_from. Start with dry_run=true to preview, then confirm before importing.\nAPI keys provided by the user are used only for the import and are never stored.\n";
2
- export declare const SYSTEM_PROMPT_FRAGMENT = "\nYou have access to TotalReclaw, an end-to-end encrypted memory vault that persists across conversations.\n\n## CRITICAL: Automatic Memory Behaviors\n\n### At Conversation Start\nALWAYS call totalreclaw_recall at the beginning of EVERY new conversation with a brief summary of the user's first message as the query. This loads relevant context from past conversations. Present recalled memories naturally as context -- do not announce \"I found these memories\" or list them explicitly unless the user asks.\n\n### During Conversation\nWhen the user shares ANY of the following, call totalreclaw_remember to store it:\n- Personal preferences (\"I prefer...\", \"I like...\", \"I hate...\")\n- Personal information (name, location, occupation, family details)\n- Decisions or goals (\"I decided to...\", \"I want to...\")\n- Corrections to previous information (\"Actually, I'm vegan now\")\n- Important events or dates (\"My birthday is...\", \"I started a new job\")\n- Technical preferences (programming language, tools, frameworks)\n\nDo NOT store:\n- Temporary/transient context (weather, current task details)\n- Information about third parties the user hasn't asked to remember\n- Sensitive credentials (passwords, API keys, tokens)\n\n### Memory Hygiene\n- Before storing a new fact, check recalled memories to avoid duplicates\n- When the user corrects information, store the correction (the system handles deduplication)\n- Use importance 7-9 for core identity/preferences, 4-6 for moderate facts, 1-3 for minor details\n\n### Billing & Quota\nWhen a totalreclaw_remember call fails with \"quota_exceeded\":\n1. Inform the user they've reached their free tier limit\n2. Offer to check their usage with totalreclaw_status\n3. If they want to upgrade, use totalreclaw_upgrade to get a checkout link\nDo NOT repeatedly attempt to store memories after a quota error.\n\n### Importing memories from other tools\nIf the user mentions migrating from Mem0, MCP Memory Server, MemoClaw, or any other AI memory tool, offer to use totalreclaw_import_from. Start with dry_run=true to preview, then confirm before importing.\nAPI keys provided by the user are used only for the import and are never stored.\n";
3
- export declare const REMEMBER_TOOL_DESCRIPTION = "Store one or more facts in the encrypted memory vault.\n\nCall this tool whenever the user shares personal information, preferences, decisions, or important facts worth remembering across conversations.\n\nIMPORTANT: Extract atomic facts, not entire conversation snippets.\nGood: \"User is vegan\"\nBad: \"User said they recently became vegan and prefer organic food from local farms\"\n\nThe facts parameter accepts an array, so you can store multiple facts in a single call.\n\nEach fact needs:\n- text: The atomic fact (required)\n- importance: 1-10 scale (optional, default 5)\n - 9-10: Core identity (name, fundamental values)\n - 7-8: Important preferences (diet, work style)\n - 5-6: Moderate facts (schedule, minor preferences)\n - 3-4: Low priority (casual mentions)\n - 1-2: Ephemeral (likely to change)\n- type: Category (optional) -- \"fact\", \"preference\", \"decision\", \"episodic\", \"goal\", \"context\", \"summary\"\n\nThe vault handles deduplication automatically. If a similar fact exists, it will be updated rather than duplicated.";
4
- export declare const RECALL_TOOL_DESCRIPTION = "Search your encrypted memory vault for relevant past context.\n\nIMPORTANT: You SHOULD call this tool at the START of every conversation with a query based on the user's first message. This ensures continuity across sessions.\n\nUse this tool when:\n- Starting a new conversation (query = summary of user's first message)\n- User asks about their preferences or past information\n- User references something from a previous conversation\n- You need context about the user's background\n\nParameters:\n- query: Natural language search (required). Keep it concise -- 5-15 words work best.\n- k: Number of results (default 8, max 50). Use 3-5 for quick lookups, 8-12 for broad context.\n\nThe results are end-to-end encrypted. The server never sees plaintext.";
1
+ export declare const SERVER_INSTRUCTIONS = "\nYou have access to TotalReclaw, a persistent encrypted memory system. You SHOULD use these tools PROACTIVELY -- do not wait for the user to say \"remember this\" or \"recall that.\"\n\n## CRITICAL: Automatic Memory Behaviors\n\n### At Conversation Start\nALWAYS call totalreclaw_recall at the beginning of EVERY new conversation with a brief summary of the user's first message as the query. This loads relevant context from past conversations. Present recalled memories naturally as context -- do not announce \"I found these memories\" or list them explicitly unless the user asks.\n\n### Proactive Memory Storage (IMPORTANT)\nYou should call totalreclaw_remember WITHOUT being asked whenever the user shares:\n- Personal preferences (\"I prefer...\", \"I like...\", \"I hate...\")\n- Personal information (name, location, occupation, family details)\n- Decisions or goals (\"I decided to...\", \"I want to...\", \"I chose X because Y\")\n- Corrections to previous information (\"Actually, I'm vegan now\", \"We moved to Berlin\")\n- Important events or dates (\"My birthday is...\", \"I started a new job at...\")\n- Technical preferences (programming language, tools, frameworks, workflows)\n- Project context (what they're working on, deadlines, team details)\n- Opinions and values that shape future interactions\n\nThe user should NOT have to tell you to remember things. If information would be valuable in a future conversation, store it automatically. Think of yourself as a thoughtful assistant who naturally takes notes on important details.\n\nDo NOT store:\n- Temporary/transient context (weather today, a one-time task)\n- Generic knowledge unrelated to the user\n- Sensitive credentials (passwords, API keys, tokens)\n\n### Memory Recall\nCall totalreclaw_recall proactively when:\n- Starting any new conversation (query based on the user's first message)\n- The user asks about something that might relate to past conversations\n- You need context about the user's background, projects, or preferences\n- The user says \"remember when...\", \"what did I say about...\", \"do you know my...\"\n\n### Memory Hygiene\n- Before storing a new fact, check recalled memories to avoid duplicates\n- When the user corrects information, store the correction (the system handles deduplication)\n- Use importance 7-9 for core identity/preferences, 4-6 for moderate facts, 1-3 for minor details\n- Extract atomic facts: \"User prefers dark mode\" not \"User said they prefer dark mode and also use VS Code\"\n\n### Billing & Quota\nWhen a totalreclaw_remember call fails with \"quota_exceeded\":\n1. Inform the user they've reached their free tier limit\n2. Offer to check their usage with totalreclaw_status\n3. If they want to upgrade, use totalreclaw_upgrade to get a checkout link\nDo NOT repeatedly attempt to store memories after a quota error.\n\n### Importing memories from other tools\nIf the user mentions migrating from Mem0, MCP Memory Server, MemoClaw, or any other AI memory tool, offer to use totalreclaw_import_from. Start with dry_run=true to preview, then confirm before importing.\nAPI keys provided by the user are used only for the import and are never stored.\n";
2
+ export declare const SYSTEM_PROMPT_FRAGMENT = "\nYou have access to TotalReclaw, a persistent encrypted memory system. You SHOULD use these tools PROACTIVELY -- do not wait for the user to say \"remember this\" or \"recall that.\"\n\n## CRITICAL: Automatic Memory Behaviors\n\n### At Conversation Start\nALWAYS call totalreclaw_recall at the beginning of EVERY new conversation with a brief summary of the user's first message as the query. This loads relevant context from past conversations. Present recalled memories naturally as context -- do not announce \"I found these memories\" or list them explicitly unless the user asks.\n\n### Proactive Memory Storage (IMPORTANT)\nYou should call totalreclaw_remember WITHOUT being asked whenever the user shares:\n- Personal preferences (\"I prefer...\", \"I like...\", \"I hate...\")\n- Personal information (name, location, occupation, family details)\n- Decisions or goals (\"I decided to...\", \"I want to...\", \"I chose X because Y\")\n- Corrections to previous information (\"Actually, I'm vegan now\", \"We moved to Berlin\")\n- Important events or dates (\"My birthday is...\", \"I started a new job at...\")\n- Technical preferences (programming language, tools, frameworks, workflows)\n- Project context (what they're working on, deadlines, team details)\n- Opinions and values that shape future interactions\n\nThe user should NOT have to tell you to remember things. If information would be valuable in a future conversation, store it automatically. Think of yourself as a thoughtful assistant who naturally takes notes on important details.\n\nDo NOT store:\n- Temporary/transient context (weather today, a one-time task)\n- Generic knowledge unrelated to the user\n- Sensitive credentials (passwords, API keys, tokens)\n\n### Memory Recall\nCall totalreclaw_recall proactively when:\n- Starting any new conversation (query based on the user's first message)\n- The user asks about something that might relate to past conversations\n- You need context about the user's background, projects, or preferences\n- The user says \"remember when...\", \"what did I say about...\", \"do you know my...\"\n\n### Memory Hygiene\n- Before storing a new fact, check recalled memories to avoid duplicates\n- When the user corrects information, store the correction (the system handles deduplication)\n- Use importance 7-9 for core identity/preferences, 4-6 for moderate facts, 1-3 for minor details\n- Extract atomic facts: \"User prefers dark mode\" not \"User said they prefer dark mode and also use VS Code\"\n\n### Billing & Quota\nWhen a totalreclaw_remember call fails with \"quota_exceeded\":\n1. Inform the user they've reached their free tier limit\n2. Offer to check their usage with totalreclaw_status\n3. If they want to upgrade, use totalreclaw_upgrade to get a checkout link\nDo NOT repeatedly attempt to store memories after a quota error.\n\n### Importing memories from other tools\nIf the user mentions migrating from Mem0, MCP Memory Server, MemoClaw, or any other AI memory tool, offer to use totalreclaw_import_from. Start with dry_run=true to preview, then confirm before importing.\nAPI keys provided by the user are used only for the import and are never stored.\n";
3
+ export declare const REMEMBER_TOOL_DESCRIPTION = "Store important information the user shares. Call this PROACTIVELY -- do not wait for the user to say \"remember this.\"\n\nWhenever the user mentions preferences, facts about themselves, decisions, project context, goals, or anything they would want remembered across conversations, call this tool immediately. You are the user's memory -- take notes automatically.\n\nIMPORTANT: Extract atomic facts, not entire conversation snippets.\nGood: \"User is vegan\"\nBad: \"User said they recently became vegan and prefer organic food from local farms\"\n\nThe facts parameter accepts an array, so you can store multiple facts in a single call.\n\nEach fact needs:\n- text: The atomic fact (required)\n- importance: 1-10 scale (optional, default 5)\n - 9-10: Core identity (name, fundamental values)\n - 7-8: Important preferences (diet, work style)\n - 5-6: Moderate facts (schedule, minor preferences)\n - 3-4: Low priority (casual mentions)\n - 1-2: Ephemeral (likely to change)\n- type: Category (optional) -- \"fact\", \"preference\", \"decision\", \"episodic\", \"goal\", \"context\", \"summary\"\n\nThe vault handles deduplication automatically. If a similar fact exists, it will be updated rather than duplicated.";
4
+ export declare const RECALL_TOOL_DESCRIPTION = "Search your memory for relevant context. Returns the top 8 most relevant memories (not all \u2014 this is a targeted search, not a full dump).\n\nCall this proactively when:\n- The user's message suggests they've told you something before (\"remember when I said...\", \"what's my...\")\n- The conversation topic likely relates to previously stored information\n- The user asks about their preferences, history, or past decisions\n- The user references something from a previous conversation\n- You need context about the user's background, projects, or work style\n- The user's question could be answered or enriched by stored memories\n\nParameters:\n- query: Natural language search (required). Keep it concise -- 5-15 words work best.\n- k: Number of results (default 8, max 50). Use 3-5 for quick lookups, 8-12 for broad context.\n\nPresent recalled memories naturally as context. Do not announce \"I found these memories\" unless the user asks.";
5
5
  export declare const FORGET_TOOL_DESCRIPTION = "Delete a specific memory from your vault.\n\nWHEN TO USE:\n- User explicitly asks to forget something\n- User says information is outdated or incorrect\n- User requests to remove sensitive information\n\nWHEN NOT TO USE:\n- To update information (use remember with updated fact instead)\n- Without user's explicit request\n\nEXAMPLES:\n- User: \"Forget that I work at Google, I left\"\n -> Call: totalreclaw_forget({ fact_id: \"the-fact-id\" })\n\nPARAMETERS:\n- fact_id: The ID of the fact to forget (required)\n OR\n- query: Forget all memories matching query (optional)";
6
6
  export declare const EXPORT_TOOL_DESCRIPTION = "Export all memories in plaintext for portability.\n\nWHEN TO USE:\n- User wants to backup their memories\n- User wants to transfer memories to another system\n- User wants to see all stored information\n\nOUTPUT FORMATS:\n- markdown: Human-readable format\n- json: Machine-readable format for import\n\nEXAMPLES:\n- User: \"Export all my memories\"\n -> Call: totalreclaw_export({ format: \"markdown\" })\n\nPARAMETERS:\n- format: Output format \"markdown\" or \"json\" (default: markdown)";
7
7
  export declare const STATUS_TOOL_DESCRIPTION = "Check your TotalReclaw subscription status and usage.\n\nShows:\n- Current tier (free/pro)\n- Free writes used vs limit\n- Subscription expiry date\n\nUse this when:\n- User asks about their memory quota or usage\n- Before storing many memories, to check remaining capacity\n- User asks about billing or subscription";
8
- export declare const UPGRADE_TOOL_DESCRIPTION = "Upgrade to TotalReclaw Pro for unlimited encrypted memories.\n\nReturns a checkout URL for the user to complete payment.\n\nPayment options:\n- card: Stripe checkout (credit/debit card)\n- crypto: Coinbase Commerce (USDC, USDT, ETH on multiple chains)\n\nUse this when:\n- User hits their free tier limit\n- User asks about upgrading or pricing\n- A remember call returns a quota_exceeded error";
8
+ export declare const UPGRADE_TOOL_DESCRIPTION = "Upgrade to TotalReclaw Pro for unlimited encrypted memories.\n\nReturns a Stripe checkout URL for the user to complete payment via credit/debit card.\n\nUse this when:\n- User hits their free tier limit\n- User asks about upgrading or pricing\n- A remember call returns a quota_exceeded error";
9
9
  export declare const IMPORT_FROM_TOOL_DESCRIPTION = "Import memories from other AI memory tools into TotalReclaw.\n\nSupported sources:\n- **mem0**: Import from Mem0 (mem0.ai). Provide api_key + source_user_id, or paste the export JSON.\n- **mcp-memory**: Import from MCP Memory Server (@modelcontextprotocol/server-memory). Provide the memory.jsonl content or file_path. Default path: ~/.mcp-memory/memory.jsonl.\n- **memoclaw**: Import from MemoClaw. Provide api_key + source_user_id, or paste the export JSON.\n- **generic-json**: Import from a generic JSON file. Expects an array of objects with \"text\" field.\n- **generic-csv**: Import from a CSV file. Expects a header row with \"text\" column.\n\nSecurity: API keys are used in-memory only for this import and are never stored.\nIdempotent: Running the same import twice will not create duplicates (content fingerprint dedup).\n\nUse dry_run=true to preview what would be imported without storing anything.";
10
10
  export declare const IMPORT_TOOL_DESCRIPTION = "Import memories from an exported backup.\n\nWHEN TO USE:\n- User wants to restore memories from backup\n- User wants to transfer memories from another TotalReclaw instance\n- User has a JSON or Markdown export they want to import\n\nMERGE STRATEGIES:\n- skip_existing: Skip facts that already exist (default)\n- overwrite: Replace existing facts with imported ones\n- merge: Use LLM-assisted conflict resolution\n\nEXAMPLES:\n- User: \"Import memories from this backup file\"\n -> Call: totalreclaw_import({ content: \"...\", format: \"json\" })\n\nPARAMETERS:\n- content: The exported content (JSON or Markdown string)\n- format: Format of content \"markdown\" or \"json\" (auto-detected if not specified)\n- merge_strategy: How to handle conflicts (default: skip_existing)\n- validate_only: Parse and validate without importing (dry-run)";
11
11
  export declare const PROMPT_DEFINITIONS: {
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,kqEAqC/B,CAAC;AAGF,eAAO,MAAM,sBAAsB,kqEAAsB,CAAC;AAI1D,eAAO,MAAM,yBAAyB,uiCAoB8E,CAAC;AAErH,eAAO,MAAM,uBAAuB,yvBAcmC,CAAC;AAExE,eAAO,MAAM,uBAAuB,mkBAkBmB,CAAC;AAExD,eAAO,MAAM,uBAAuB,+eAgB6B,CAAC;AAElE,eAAO,MAAM,uBAAuB,iUAUM,CAAC;AAE3C,eAAO,MAAM,wBAAwB,+YAWY,CAAC;AAElD,eAAO,MAAM,4BAA4B,q5BAYoC,CAAC;AAE9E,eAAO,MAAM,uBAAuB,60BAoB4B,CAAC;AAIjE,eAAO,MAAM,kBAAkB;;;;;;;;;GAqB9B,CAAC;AAEF,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5B,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,CAqClE"}
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,0nGAiD/B,CAAC;AAGF,eAAO,MAAM,sBAAsB,0nGAAsB,CAAC;AAI1D,eAAO,MAAM,yBAAyB,2sCAoB8E,CAAC;AAErH,eAAO,MAAM,uBAAuB,27BAc2E,CAAC;AAEhH,eAAO,MAAM,uBAAuB,mkBAkBmB,CAAC;AAExD,eAAO,MAAM,uBAAuB,+eAgB6B,CAAC;AAElE,eAAO,MAAM,uBAAuB,iUAUM,CAAC;AAE3C,eAAO,MAAM,wBAAwB,ySAOY,CAAC;AAElD,eAAO,MAAM,4BAA4B,q5BAYoC,CAAC;AAE9E,eAAO,MAAM,uBAAuB,60BAoB4B,CAAC;AAIjE,eAAO,MAAM,kBAAkB;;;;;;;;;GAqB9B,CAAC;AAEF,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5B,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,CAqClE"}
package/dist/prompts.js CHANGED
@@ -6,31 +6,43 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.PROMPT_DEFINITIONS = exports.IMPORT_TOOL_DESCRIPTION = exports.IMPORT_FROM_TOOL_DESCRIPTION = exports.UPGRADE_TOOL_DESCRIPTION = exports.STATUS_TOOL_DESCRIPTION = exports.EXPORT_TOOL_DESCRIPTION = exports.FORGET_TOOL_DESCRIPTION = exports.RECALL_TOOL_DESCRIPTION = exports.REMEMBER_TOOL_DESCRIPTION = exports.SYSTEM_PROMPT_FRAGMENT = exports.SERVER_INSTRUCTIONS = void 0;
7
7
  exports.getPromptMessages = getPromptMessages;
8
8
  exports.SERVER_INSTRUCTIONS = `
9
- You have access to TotalReclaw, an end-to-end encrypted memory vault that persists across conversations.
9
+ You have access to TotalReclaw, a persistent encrypted memory system. You SHOULD use these tools PROACTIVELY -- do not wait for the user to say "remember this" or "recall that."
10
10
 
11
11
  ## CRITICAL: Automatic Memory Behaviors
12
12
 
13
13
  ### At Conversation Start
14
14
  ALWAYS call totalreclaw_recall at the beginning of EVERY new conversation with a brief summary of the user's first message as the query. This loads relevant context from past conversations. Present recalled memories naturally as context -- do not announce "I found these memories" or list them explicitly unless the user asks.
15
15
 
16
- ### During Conversation
17
- When the user shares ANY of the following, call totalreclaw_remember to store it:
16
+ ### Proactive Memory Storage (IMPORTANT)
17
+ You should call totalreclaw_remember WITHOUT being asked whenever the user shares:
18
18
  - Personal preferences ("I prefer...", "I like...", "I hate...")
19
19
  - Personal information (name, location, occupation, family details)
20
- - Decisions or goals ("I decided to...", "I want to...")
21
- - Corrections to previous information ("Actually, I'm vegan now")
22
- - Important events or dates ("My birthday is...", "I started a new job")
23
- - Technical preferences (programming language, tools, frameworks)
20
+ - Decisions or goals ("I decided to...", "I want to...", "I chose X because Y")
21
+ - Corrections to previous information ("Actually, I'm vegan now", "We moved to Berlin")
22
+ - Important events or dates ("My birthday is...", "I started a new job at...")
23
+ - Technical preferences (programming language, tools, frameworks, workflows)
24
+ - Project context (what they're working on, deadlines, team details)
25
+ - Opinions and values that shape future interactions
26
+
27
+ The user should NOT have to tell you to remember things. If information would be valuable in a future conversation, store it automatically. Think of yourself as a thoughtful assistant who naturally takes notes on important details.
24
28
 
25
29
  Do NOT store:
26
- - Temporary/transient context (weather, current task details)
27
- - Information about third parties the user hasn't asked to remember
30
+ - Temporary/transient context (weather today, a one-time task)
31
+ - Generic knowledge unrelated to the user
28
32
  - Sensitive credentials (passwords, API keys, tokens)
29
33
 
34
+ ### Memory Recall
35
+ Call totalreclaw_recall proactively when:
36
+ - Starting any new conversation (query based on the user's first message)
37
+ - The user asks about something that might relate to past conversations
38
+ - You need context about the user's background, projects, or preferences
39
+ - The user says "remember when...", "what did I say about...", "do you know my..."
40
+
30
41
  ### Memory Hygiene
31
42
  - Before storing a new fact, check recalled memories to avoid duplicates
32
43
  - When the user corrects information, store the correction (the system handles deduplication)
33
44
  - Use importance 7-9 for core identity/preferences, 4-6 for moderate facts, 1-3 for minor details
45
+ - Extract atomic facts: "User prefers dark mode" not "User said they prefer dark mode and also use VS Code"
34
46
 
35
47
  ### Billing & Quota
36
48
  When a totalreclaw_remember call fails with "quota_exceeded":
@@ -46,9 +58,9 @@ API keys provided by the user are used only for the import and are never stored.
46
58
  // Keep backward-compat export name (some callers may still reference it)
47
59
  exports.SYSTEM_PROMPT_FRAGMENT = exports.SERVER_INSTRUCTIONS;
48
60
  // ── Layer 2: Enhanced Tool Descriptions ──────────────────────────────────────
49
- exports.REMEMBER_TOOL_DESCRIPTION = `Store one or more facts in the encrypted memory vault.
61
+ exports.REMEMBER_TOOL_DESCRIPTION = `Store important information the user shares. Call this PROACTIVELY -- do not wait for the user to say "remember this."
50
62
 
51
- Call this tool whenever the user shares personal information, preferences, decisions, or important facts worth remembering across conversations.
63
+ Whenever the user mentions preferences, facts about themselves, decisions, project context, goals, or anything they would want remembered across conversations, call this tool immediately. You are the user's memory -- take notes automatically.
52
64
 
53
65
  IMPORTANT: Extract atomic facts, not entire conversation snippets.
54
66
  Good: "User is vegan"
@@ -67,21 +79,21 @@ Each fact needs:
67
79
  - type: Category (optional) -- "fact", "preference", "decision", "episodic", "goal", "context", "summary"
68
80
 
69
81
  The vault handles deduplication automatically. If a similar fact exists, it will be updated rather than duplicated.`;
70
- exports.RECALL_TOOL_DESCRIPTION = `Search your encrypted memory vault for relevant past context.
82
+ exports.RECALL_TOOL_DESCRIPTION = `Search your memory for relevant context. Returns the top 8 most relevant memories (not all — this is a targeted search, not a full dump).
71
83
 
72
- IMPORTANT: You SHOULD call this tool at the START of every conversation with a query based on the user's first message. This ensures continuity across sessions.
73
-
74
- Use this tool when:
75
- - Starting a new conversation (query = summary of user's first message)
76
- - User asks about their preferences or past information
77
- - User references something from a previous conversation
78
- - You need context about the user's background
84
+ Call this proactively when:
85
+ - The user's message suggests they've told you something before ("remember when I said...", "what's my...")
86
+ - The conversation topic likely relates to previously stored information
87
+ - The user asks about their preferences, history, or past decisions
88
+ - The user references something from a previous conversation
89
+ - You need context about the user's background, projects, or work style
90
+ - The user's question could be answered or enriched by stored memories
79
91
 
80
92
  Parameters:
81
93
  - query: Natural language search (required). Keep it concise -- 5-15 words work best.
82
94
  - k: Number of results (default 8, max 50). Use 3-5 for quick lookups, 8-12 for broad context.
83
95
 
84
- The results are end-to-end encrypted. The server never sees plaintext.`;
96
+ Present recalled memories naturally as context. Do not announce "I found these memories" unless the user asks.`;
85
97
  exports.FORGET_TOOL_DESCRIPTION = `Delete a specific memory from your vault.
86
98
 
87
99
  WHEN TO USE:
@@ -131,11 +143,7 @@ Use this when:
131
143
  - User asks about billing or subscription`;
132
144
  exports.UPGRADE_TOOL_DESCRIPTION = `Upgrade to TotalReclaw Pro for unlimited encrypted memories.
133
145
 
134
- Returns a checkout URL for the user to complete payment.
135
-
136
- Payment options:
137
- - card: Stripe checkout (credit/debit card)
138
- - crypto: Coinbase Commerce (USDC, USDT, ETH on multiple chains)
146
+ Returns a Stripe checkout URL for the user to complete payment via credit/debit card.
139
147
 
140
148
  Use this when:
141
149
  - User hits their free tier limit
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":";AAAA,iFAAiF;AACjF,iFAAiF;AACjF,gFAAgF;;;AAgNhF,8CAwCC;AAtPY,QAAA,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqClC,CAAC;AAEF,yEAAyE;AAC5D,QAAA,sBAAsB,GAAG,2BAAmB,CAAC;AAE1D,gFAAgF;AAEnE,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;oHAoB2E,CAAC;AAExG,QAAA,uBAAuB,GAAG;;;;;;;;;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vD,QAAQ,EAAE,KAAK;aAChB;SACF;KACF;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,gBAAgB;QACvB,WAAW,EACT,+EAA+E;QACjF,SAAS,EAAE,EAAqE;KACjF;CACF,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,UAAkB,EAClB,IAA6B;IAE7B,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,mBAAmB,CAAC,CAAC,CAAC;YACzB,MAAM,KAAK,GAAG,IAAI,EAAE,KAAK,IAAI,gBAAgB,CAAC;YAC9C,OAAO;gBACL;oBACE,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE;wBACP,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,4CAA4C,KAAK,gDAAgD;qBACxG;iBACF;aACF,CAAC;QACJ,CAAC;QAED,KAAK,kBAAkB;YACrB,OAAO;gBACL;oBACE,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE;wBACP,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,uOAAuO;qBAC9O;iBACF;aACF,CAAC;QAEJ,KAAK,0BAA0B;YAC7B,OAAO;gBACL;oBACE,IAAI,EAAE,WAAW;oBACjB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,2BAAmB,EAAE;iBACrD;aACF,CAAC;QAEJ;YACE,MAAM,IAAI,KAAK,CAAC,mBAAmB,UAAU,EAAE,CAAC,CAAC;IACrD,CAAC;AACH,CAAC"}
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * TotalReclaw MCP - Billing Upgrade Tool
3
3
  *
4
- * Creates a checkout session for upgrading to Pro tier.
5
- * Supports both Stripe (card) and Coinbase Commerce (crypto) payment methods.
4
+ * Creates a Stripe checkout session for upgrading to Pro tier.
6
5
  */
7
6
  export declare const upgradeToolDefinition: {
8
7
  name: string;
@@ -14,12 +13,6 @@ export declare const upgradeToolDefinition: {
14
13
  type: string;
15
14
  description: string;
16
15
  };
17
- payment_method: {
18
- type: string;
19
- enum: string[];
20
- default: string;
21
- description: string;
22
- };
23
16
  };
24
17
  required: string[];
25
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../src/tools/upgrade.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;CAwBjC,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAsF7D"}
1
+ {"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../src/tools/upgrade.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;CAkBjC,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAmE7D"}
@@ -2,8 +2,7 @@
2
2
  /**
3
3
  * TotalReclaw MCP - Billing Upgrade Tool
4
4
  *
5
- * Creates a checkout session for upgrading to Pro tier.
6
- * Supports both Stripe (card) and Coinbase Commerce (crypto) payment methods.
5
+ * Creates a Stripe checkout session for upgrading to Pro tier.
7
6
  */
8
7
  Object.defineProperty(exports, "__esModule", { value: true });
9
8
  exports.upgradeToolDefinition = void 0;
@@ -19,12 +18,6 @@ exports.upgradeToolDefinition = {
19
18
  type: 'string',
20
19
  description: 'Smart Account address',
21
20
  },
22
- payment_method: {
23
- type: 'string',
24
- enum: ['card', 'crypto'],
25
- default: 'card',
26
- description: 'Payment method preference',
27
- },
28
21
  },
29
22
  required: ['wallet_address'],
30
23
  },
@@ -43,7 +36,6 @@ exports.upgradeToolDefinition = {
43
36
  async function handleUpgrade(serverUrl, authKey, args) {
44
37
  const input = args;
45
38
  const walletAddress = input?.wallet_address;
46
- const paymentMethod = input?.payment_method || 'card';
47
39
  if (!walletAddress || typeof walletAddress !== 'string') {
48
40
  return {
49
41
  content: [{
@@ -54,21 +46,9 @@ async function handleUpgrade(serverUrl, authKey, args) {
54
46
  }],
55
47
  };
56
48
  }
57
- if (paymentMethod !== 'card' && paymentMethod !== 'crypto') {
58
- return {
59
- content: [{
60
- type: 'text',
61
- text: JSON.stringify({
62
- error: 'payment_method must be "card" or "crypto"',
63
- }),
64
- }],
65
- };
66
- }
67
49
  try {
68
50
  const baseUrl = serverUrl.replace(/\/+$/, '');
69
- const endpoint = paymentMethod === 'crypto'
70
- ? `${baseUrl}/v1/billing/checkout/crypto`
71
- : `${baseUrl}/v1/billing/checkout`;
51
+ const endpoint = `${baseUrl}/v1/billing/checkout`;
72
52
  const response = await fetch(endpoint, {
73
53
  method: 'POST',
74
54
  headers: {
@@ -94,15 +74,11 @@ async function handleUpgrade(serverUrl, authKey, args) {
94
74
  };
95
75
  }
96
76
  const data = (await response.json());
97
- const methodLabel = paymentMethod === 'crypto'
98
- ? 'Coinbase Commerce (USDC, USDT, ETH)'
99
- : 'Stripe (credit/debit card)';
100
77
  return {
101
78
  content: [{
102
79
  type: 'text',
103
80
  text: JSON.stringify({
104
81
  checkout_url: data.checkout_url,
105
- payment_method: methodLabel,
106
82
  message: `Open this URL to complete your upgrade to Pro: ${data.checkout_url}`,
107
83
  }),
108
84
  }],
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../../src/tools/upgrade.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAyCH,sCA0FC;AAjID,8CAAyD;AAE5C,QAAA,qBAAqB,GAAG;IACnC,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qCAAwB;IACrC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uBAAuB;aACrC;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;gBACxB,OAAO,EAAE,MAAM;gBACf,WAAW,EAAE,2BAA2B;aACzC;SACF;QACD,QAAQ,EAAE,CAAC,gBAAgB,CAAC;KAC7B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,KAAK;KACtB;CACF,CAAC;AAOF;;;;;GAKG;AACI,KAAK,UAAU,aAAa,CACjC,SAAiB,EACjB,OAAe,EACf,IAAa;IAEb,MAAM,KAAK,GAAG,IAA+B,CAAC;IAC9C,MAAM,aAAa,GAAG,KAAK,EAAE,cAAwB,CAAC;IACtD,MAAM,aAAa,GAAI,KAAK,EAAE,cAAyB,IAAI,MAAM,CAAC;IAElE,IAAI,CAAC,aAAa,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACxD,OAAO;YACL,OAAO,EAAE,CAAC;oBACR,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;wBACnB,KAAK,EAAE,4BAA4B;qBACpC,CAAC;iBACH,CAAC;SACH,CAAC;IACJ,CAAC;IAED,IAAI,aAAa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,UAAU;yBACrC,CAAC;qBACH,CAAC;aACH,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAqB,CAAC;QAEzD,OAAO;YACL,OAAO,EAAE,CAAC;oBACR,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;wBACnB,YAAY,EAAE,IAAI,CAAC,YAAY;wBAC/B,OAAO,EAAE,kDAAkD,IAAI,CAAC,YAAY,EAAE;qBAC/E,CAAC;iBACH,CAAC;SACH,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;QACzE,OAAO;YACL,OAAO,EAAE,CAAC;oBACR,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;wBACnB,KAAK,EAAE,sCAAsC,OAAO,EAAE;qBACvD,CAAC;iBACH,CAAC;SACH,CAAC;IACJ,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalreclaw/mcp-server",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "End-to-end encrypted memory for AI agents — portable, yours forever. MCP server with AES-256-GCM E2EE, semantic search, import/export, and on-chain storage",
5
5
  "homepage": "https://totalreclaw.xyz",
6
6
  "main": "dist/index.js",